public final class FirewallAction extends com.google.protobuf.GeneratedMessageV3 implements FirewallActionOrBuilder
An individual action. Each action represents what to do if a policy matches.Protobuf type
google.cloud.recaptchaenterprise.v1.FirewallAction| Modifier and Type | Class and Description |
|---|---|
static class |
FirewallAction.AllowAction
An allow action continues processing a request unimpeded.
|
static interface |
FirewallAction.AllowActionOrBuilder |
static class |
FirewallAction.BlockAction
A block action serves an HTTP error code a prevents the request from
hitting the backend.
|
static interface |
FirewallAction.BlockActionOrBuilder |
static class |
FirewallAction.Builder
An individual action.
|
static class |
FirewallAction.FirewallActionOneofCase |
static class |
FirewallAction.IncludeRecaptchaScriptAction
An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
code into the HTML returned by the site backend.
|
static interface |
FirewallAction.IncludeRecaptchaScriptActionOrBuilder |
static class |
FirewallAction.RedirectAction
A redirect action returns a 307 (temporary redirect) response, pointing
the user to a reCAPTCHA interstitial page to attach a token.
|
static interface |
FirewallAction.RedirectActionOrBuilder |
static class |
FirewallAction.SetHeaderAction
A set header action sets a header and forwards the request to the
backend.
|
static interface |
FirewallAction.SetHeaderActionOrBuilder |
static class |
FirewallAction.SubstituteAction
A substitute action transparently serves a different page than the one
requested.
|
static interface |
FirewallAction.SubstituteActionOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_FIELD_NUMBER |
static int |
BLOCK_FIELD_NUMBER |
static int |
INCLUDE_RECAPTCHA_SCRIPT_FIELD_NUMBER |
static int |
REDIRECT_FIELD_NUMBER |
static int |
SET_HEADER_FIELD_NUMBER |
static int |
SUBSTITUTE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FirewallAction.AllowAction |
getAllow()
The user request did not match any policy and should be allowed
access to the requested resource.
|
FirewallAction.AllowActionOrBuilder |
getAllowOrBuilder()
The user request did not match any policy and should be allowed
access to the requested resource.
|
FirewallAction.BlockAction |
getBlock()
This action denies access to a given page.
|
FirewallAction.BlockActionOrBuilder |
getBlockOrBuilder()
This action denies access to a given page.
|
static FirewallAction |
getDefaultInstance() |
FirewallAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FirewallAction.FirewallActionOneofCase |
getFirewallActionOneofCase() |
FirewallAction.IncludeRecaptchaScriptAction |
getIncludeRecaptchaScript()
This action injects reCAPTCHA JavaScript code into the HTML page
returned by the site backend.
|
FirewallAction.IncludeRecaptchaScriptActionOrBuilder |
getIncludeRecaptchaScriptOrBuilder()
This action injects reCAPTCHA JavaScript code into the HTML page
returned by the site backend.
|
com.google.protobuf.Parser<FirewallAction> |
getParserForType() |
FirewallAction.RedirectAction |
getRedirect()
This action redirects the request to a reCAPTCHA interstitial to
attach a token.
|
FirewallAction.RedirectActionOrBuilder |
getRedirectOrBuilder()
This action redirects the request to a reCAPTCHA interstitial to
attach a token.
|
int |
getSerializedSize() |
FirewallAction.SetHeaderAction |
getSetHeader()
This action sets a custom header but allow the request to continue
to the customer backend.
|
FirewallAction.SetHeaderActionOrBuilder |
getSetHeaderOrBuilder()
This action sets a custom header but allow the request to continue
to the customer backend.
|
FirewallAction.SubstituteAction |
getSubstitute()
This action transparently serves a different page to an offending
user.
|
FirewallAction.SubstituteActionOrBuilder |
getSubstituteOrBuilder()
This action transparently serves a different page to an offending
user.
|
boolean |
hasAllow()
The user request did not match any policy and should be allowed
access to the requested resource.
|
boolean |
hasBlock()
This action denies access to a given page.
|
int |
hashCode() |
boolean |
hasIncludeRecaptchaScript()
This action injects reCAPTCHA JavaScript code into the HTML page
returned by the site backend.
|
boolean |
hasRedirect()
This action redirects the request to a reCAPTCHA interstitial to
attach a token.
|
boolean |
hasSetHeader()
This action sets a custom header but allow the request to continue
to the customer backend.
|
boolean |
hasSubstitute()
This action transparently serves a different page to an offending
user.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static FirewallAction.Builder |
newBuilder() |
static FirewallAction.Builder |
newBuilder(FirewallAction prototype) |
FirewallAction.Builder |
newBuilderForType() |
protected FirewallAction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FirewallAction |
parseDelimitedFrom(InputStream input) |
static FirewallAction |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FirewallAction |
parseFrom(byte[] data) |
static FirewallAction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FirewallAction |
parseFrom(ByteBuffer data) |
static FirewallAction |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FirewallAction |
parseFrom(com.google.protobuf.ByteString data) |
static FirewallAction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FirewallAction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FirewallAction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FirewallAction |
parseFrom(InputStream input) |
static FirewallAction |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FirewallAction> |
parser() |
FirewallAction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ALLOW_FIELD_NUMBER
public static final int BLOCK_FIELD_NUMBER
public static final int INCLUDE_RECAPTCHA_SCRIPT_FIELD_NUMBER
public static final int REDIRECT_FIELD_NUMBER
public static final int SUBSTITUTE_FIELD_NUMBER
public static final int SET_HEADER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 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 FirewallAction.FirewallActionOneofCase getFirewallActionOneofCase()
getFirewallActionOneofCase in interface FirewallActionOrBuilderpublic boolean hasAllow()
The user request did not match any policy and should be allowed access to the requested resource.
.google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;hasAllow in interface FirewallActionOrBuilderpublic FirewallAction.AllowAction getAllow()
The user request did not match any policy and should be allowed access to the requested resource.
.google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;getAllow in interface FirewallActionOrBuilderpublic FirewallAction.AllowActionOrBuilder getAllowOrBuilder()
The user request did not match any policy and should be allowed access to the requested resource.
.google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;getAllowOrBuilder in interface FirewallActionOrBuilderpublic boolean hasBlock()
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;hasBlock in interface FirewallActionOrBuilderpublic FirewallAction.BlockAction getBlock()
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;getBlock in interface FirewallActionOrBuilderpublic FirewallAction.BlockActionOrBuilder getBlockOrBuilder()
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;getBlockOrBuilder in interface FirewallActionOrBuilderpublic boolean hasIncludeRecaptchaScript()
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6;
hasIncludeRecaptchaScript in interface FirewallActionOrBuilderpublic FirewallAction.IncludeRecaptchaScriptAction getIncludeRecaptchaScript()
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6;
getIncludeRecaptchaScript in interface FirewallActionOrBuilderpublic FirewallAction.IncludeRecaptchaScriptActionOrBuilder getIncludeRecaptchaScriptOrBuilder()
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6;
getIncludeRecaptchaScriptOrBuilder in interface FirewallActionOrBuilderpublic boolean hasRedirect()
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;hasRedirect in interface FirewallActionOrBuilderpublic FirewallAction.RedirectAction getRedirect()
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;getRedirect in interface FirewallActionOrBuilderpublic FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder()
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;getRedirectOrBuilder in interface FirewallActionOrBuilderpublic boolean hasSubstitute()
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;
hasSubstitute in interface FirewallActionOrBuilderpublic FirewallAction.SubstituteAction getSubstitute()
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;
getSubstitute in interface FirewallActionOrBuilderpublic FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder()
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;
getSubstituteOrBuilder in interface FirewallActionOrBuilderpublic boolean hasSetHeader()
This action sets a custom header but allow the request to continue to the customer backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;
hasSetHeader in interface FirewallActionOrBuilderpublic FirewallAction.SetHeaderAction getSetHeader()
This action sets a custom header but allow the request to continue to the customer backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;
getSetHeader in interface FirewallActionOrBuilderpublic FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder()
This action sets a custom header but allow the request to continue to the customer backend.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;
getSetHeaderOrBuilder in interface FirewallActionOrBuilderpublic 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 FirewallAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FirewallAction parseFrom(InputStream input) throws IOException
IOExceptionpublic static FirewallAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FirewallAction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FirewallAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FirewallAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FirewallAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FirewallAction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FirewallAction.Builder newBuilder()
public static FirewallAction.Builder newBuilder(FirewallAction prototype)
public FirewallAction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FirewallAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FirewallAction getDefaultInstance()
public static com.google.protobuf.Parser<FirewallAction> parser()
public com.google.protobuf.Parser<FirewallAction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FirewallAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.