Class FirewallAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FirewallAction.Builder>
com.google.recaptchaenterprise.v1.FirewallAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FirewallActionOrBuilder,Cloneable
- Enclosing class:
- FirewallAction
public static final class FirewallAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FirewallAction.Builder>
implements FirewallActionOrBuilder
An individual action. Each action represents what to do if a policy matches.Protobuf type
google.cloud.recaptchaenterprise.v1.FirewallAction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The user request did not match any policy and should be allowed access to the requested resource.This action denies access to a given page.This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action redirects the request to a reCAPTCHA interstitial to attach a token.This action sets a custom header but allow the request to continue to the customer backend.This action transparently serves a different page to an offending user.getAllow()The user request did not match any policy and should be allowed access to the requested resource.The user request did not match any policy and should be allowed access to the requested resource.The user request did not match any policy and should be allowed access to the requested resource.getBlock()This action denies access to a given page.This action denies access to a given page.This action denies access to a given page.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action redirects the request to a reCAPTCHA interstitial to attach a token.This action redirects the request to a reCAPTCHA interstitial to attach a token.This action redirects the request to a reCAPTCHA interstitial to attach a token.This action sets a custom header but allow the request to continue to the customer backend.This action sets a custom header but allow the request to continue to the customer backend.This action sets a custom header but allow the request to continue to the customer backend.This action transparently serves a different page to an offending user.This action transparently serves a different page to an offending user.This action transparently serves a different page to an offending user.booleanhasAllow()The user request did not match any policy and should be allowed access to the requested resource.booleanhasBlock()This action denies access to a given page.booleanThis action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.booleanThis action redirects the request to a reCAPTCHA interstitial to attach a token.booleanThis action sets a custom header but allow the request to continue to the customer backend.booleanThis action transparently serves a different page to an offending user.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe user request did not match any policy and should be allowed access to the requested resource.This action denies access to a given page.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FirewallAction other) This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action redirects the request to a reCAPTCHA interstitial to attach a token.This action sets a custom header but allow the request to continue to the customer backend.This action transparently serves a different page to an offending user.The user request did not match any policy and should be allowed access to the requested resource.setAllow(FirewallAction.AllowAction.Builder builderForValue) The user request did not match any policy and should be allowed access to the requested resource.This action denies access to a given page.setBlock(FirewallAction.BlockAction.Builder builderForValue) This action denies access to a given page.This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.This action redirects the request to a reCAPTCHA interstitial to attach a token.setRedirect(FirewallAction.RedirectAction.Builder builderForValue) This action redirects the request to a reCAPTCHA interstitial to attach a token.This action sets a custom header but allow the request to continue to the customer backend.setSetHeader(FirewallAction.SetHeaderAction.Builder builderForValue) This action sets a custom header but allow the request to continue to the customer backend.This action transparently serves a different page to an offending user.setSubstitute(FirewallAction.SubstituteAction.Builder builderForValue) This action transparently serves a different page to an offending user.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FirewallAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FirewallAction.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.GeneratedMessage.Builder<FirewallAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FirewallAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FirewallAction.Builder>
-
mergeFrom
public FirewallAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FirewallAction.Builder>- Throws:
IOException
-
getFirewallActionOneofCase
- Specified by:
getFirewallActionOneofCasein interfaceFirewallActionOrBuilder
-
clearFirewallActionOneof
-
hasAllow
public 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;- Specified by:
hasAllowin interfaceFirewallActionOrBuilder- Returns:
- Whether the allow field is set.
-
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;- Specified by:
getAllowin interfaceFirewallActionOrBuilder- Returns:
- The allow.
-
setAllow
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; -
setAllow
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; -
mergeAllow
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; -
clearAllow
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; -
getAllowBuilder
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
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;- Specified by:
getAllowOrBuilderin interfaceFirewallActionOrBuilder
-
hasBlock
public 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;- Specified by:
hasBlockin interfaceFirewallActionOrBuilder- Returns:
- Whether the block field is set.
-
getBlock
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;- Specified by:
getBlockin interfaceFirewallActionOrBuilder- Returns:
- The block.
-
setBlock
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; -
setBlock
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; -
mergeBlock
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; -
clearBlock
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; -
getBlockBuilder
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; -
getBlockOrBuilder
This action denies access to a given page. The user gets an HTTP error code.
.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;- Specified by:
getBlockOrBuilderin interfaceFirewallActionOrBuilder
-
hasIncludeRecaptchaScript
public 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;- Specified by:
hasIncludeRecaptchaScriptin interfaceFirewallActionOrBuilder- Returns:
- Whether the includeRecaptchaScript field is set.
-
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;- Specified by:
getIncludeRecaptchaScriptin interfaceFirewallActionOrBuilder- Returns:
- The includeRecaptchaScript.
-
setIncludeRecaptchaScript
public FirewallAction.Builder setIncludeRecaptchaScript(FirewallAction.IncludeRecaptchaScriptAction value) 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; -
setIncludeRecaptchaScript
public FirewallAction.Builder setIncludeRecaptchaScript(FirewallAction.IncludeRecaptchaScriptAction.Builder builderForValue) 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; -
mergeIncludeRecaptchaScript
public FirewallAction.Builder mergeIncludeRecaptchaScript(FirewallAction.IncludeRecaptchaScriptAction value) 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; -
clearIncludeRecaptchaScript
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; -
getIncludeRecaptchaScriptBuilder
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
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;- Specified by:
getIncludeRecaptchaScriptOrBuilderin interfaceFirewallActionOrBuilder
-
hasRedirect
public boolean hasRedirect()This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;- Specified by:
hasRedirectin interfaceFirewallActionOrBuilder- Returns:
- Whether the redirect field is set.
-
getRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;- Specified by:
getRedirectin interfaceFirewallActionOrBuilder- Returns:
- The redirect.
-
setRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; -
setRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; -
mergeRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; -
clearRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; -
getRedirectBuilder
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; -
getRedirectOrBuilder
This action redirects the request to a reCAPTCHA interstitial to attach a token.
.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;- Specified by:
getRedirectOrBuilderin interfaceFirewallActionOrBuilder
-
hasSubstitute
public boolean hasSubstitute()This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;- Specified by:
hasSubstitutein interfaceFirewallActionOrBuilder- Returns:
- Whether the substitute field is set.
-
getSubstitute
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;- Specified by:
getSubstitutein interfaceFirewallActionOrBuilder- Returns:
- The substitute.
-
setSubstitute
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; -
setSubstitute
public FirewallAction.Builder setSubstitute(FirewallAction.SubstituteAction.Builder builderForValue) This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; -
mergeSubstitute
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; -
clearSubstitute
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; -
getSubstituteBuilder
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; -
getSubstituteOrBuilder
This action transparently serves a different page to an offending user.
.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;- Specified by:
getSubstituteOrBuilderin interfaceFirewallActionOrBuilder
-
hasSetHeader
public 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;- Specified by:
hasSetHeaderin interfaceFirewallActionOrBuilder- Returns:
- Whether the setHeader field is set.
-
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;- Specified by:
getSetHeaderin interfaceFirewallActionOrBuilder- Returns:
- The setHeader.
-
setSetHeader
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; -
setSetHeader
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; -
mergeSetHeader
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; -
clearSetHeader
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; -
getSetHeaderBuilder
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
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;- Specified by:
getSetHeaderOrBuilderin interfaceFirewallActionOrBuilder
-