Class FirewallAction.Builder (3.27.0)

public static final class FirewallAction.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FirewallAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FirewallAction.Builder
Overrides

build()

public FirewallAction build()
Returns
TypeDescription
FirewallAction

buildPartial()

public FirewallAction buildPartial()
Returns
TypeDescription
FirewallAction

clear()

public FirewallAction.Builder clear()
Returns
TypeDescription
FirewallAction.Builder
Overrides

clearAllow()

public FirewallAction.Builder 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;

Returns
TypeDescription
FirewallAction.Builder

clearBlock()

public FirewallAction.Builder clearBlock()

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Returns
TypeDescription
FirewallAction.Builder

clearField(Descriptors.FieldDescriptor field)

public FirewallAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FirewallAction.Builder
Overrides

clearFirewallActionOneof()

public FirewallAction.Builder clearFirewallActionOneof()
Returns
TypeDescription
FirewallAction.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public FirewallAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FirewallAction.Builder
Overrides

clearRedirect()

public FirewallAction.Builder clearRedirect()

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Returns
TypeDescription
FirewallAction.Builder

clearSetHeader()

public FirewallAction.Builder clearSetHeader()

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Returns
TypeDescription
FirewallAction.Builder

clearSubstitute()

public FirewallAction.Builder clearSubstitute()

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Returns
TypeDescription
FirewallAction.Builder

clone()

public FirewallAction.Builder clone()
Returns
TypeDescription
FirewallAction.Builder
Overrides

getAllow()

public 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;

Returns
TypeDescription
FirewallAction.AllowAction

The allow.

getAllowBuilder()

public FirewallAction.AllowAction.Builder 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;

Returns
TypeDescription
FirewallAction.AllowAction.Builder

getAllowOrBuilder()

public 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;

Returns
TypeDescription
FirewallAction.AllowActionOrBuilder

getBlock()

public FirewallAction.BlockAction getBlock()

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Returns
TypeDescription
FirewallAction.BlockAction

The block.

getBlockBuilder()

public FirewallAction.BlockAction.Builder getBlockBuilder()

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Returns
TypeDescription
FirewallAction.BlockAction.Builder

getBlockOrBuilder()

public FirewallAction.BlockActionOrBuilder getBlockOrBuilder()

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Returns
TypeDescription
FirewallAction.BlockActionOrBuilder

getDefaultInstanceForType()

public FirewallAction getDefaultInstanceForType()
Returns
TypeDescription
FirewallAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFirewallActionOneofCase()

public FirewallAction.FirewallActionOneofCase getFirewallActionOneofCase()
Returns
TypeDescription
FirewallAction.FirewallActionOneofCase

getRedirect()

public FirewallAction.RedirectAction getRedirect()

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Returns
TypeDescription
FirewallAction.RedirectAction

The redirect.

getRedirectBuilder()

public FirewallAction.RedirectAction.Builder getRedirectBuilder()

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Returns
TypeDescription
FirewallAction.RedirectAction.Builder

getRedirectOrBuilder()

public FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder()

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Returns
TypeDescription
FirewallAction.RedirectActionOrBuilder

getSetHeader()

public FirewallAction.SetHeaderAction getSetHeader()

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Returns
TypeDescription
FirewallAction.SetHeaderAction

The setHeader.

getSetHeaderBuilder()

public FirewallAction.SetHeaderAction.Builder getSetHeaderBuilder()

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder

getSetHeaderOrBuilder()

public FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder()

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Returns
TypeDescription
FirewallAction.SetHeaderActionOrBuilder

getSubstitute()

public FirewallAction.SubstituteAction getSubstitute()

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Returns
TypeDescription
FirewallAction.SubstituteAction

The substitute.

getSubstituteBuilder()

public FirewallAction.SubstituteAction.Builder getSubstituteBuilder()

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Returns
TypeDescription
FirewallAction.SubstituteAction.Builder

getSubstituteOrBuilder()

public FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder()

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Returns
TypeDescription
FirewallAction.SubstituteActionOrBuilder

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;

Returns
TypeDescription
boolean

Whether the allow field is set.

hasBlock()

public boolean hasBlock()

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Returns
TypeDescription
boolean

Whether the block field is set.

hasRedirect()

public boolean hasRedirect()

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Returns
TypeDescription
boolean

Whether the redirect field is set.

hasSetHeader()

public boolean hasSetHeader()

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Returns
TypeDescription
boolean

Whether the setHeader field is set.

hasSubstitute()

public boolean hasSubstitute()

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Returns
TypeDescription
boolean

Whether the substitute field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAllow(FirewallAction.AllowAction value)

public FirewallAction.Builder mergeAllow(FirewallAction.AllowAction value)

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;

Parameter
NameDescription
valueFirewallAction.AllowAction
Returns
TypeDescription
FirewallAction.Builder

mergeBlock(FirewallAction.BlockAction value)

public FirewallAction.Builder mergeBlock(FirewallAction.BlockAction value)

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Parameter
NameDescription
valueFirewallAction.BlockAction
Returns
TypeDescription
FirewallAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FirewallAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FirewallAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FirewallAction.Builder
Overrides

mergeFrom(FirewallAction other)

public FirewallAction.Builder mergeFrom(FirewallAction other)
Parameter
NameDescription
otherFirewallAction
Returns
TypeDescription
FirewallAction.Builder

mergeRedirect(FirewallAction.RedirectAction value)

public FirewallAction.Builder mergeRedirect(FirewallAction.RedirectAction value)

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Parameter
NameDescription
valueFirewallAction.RedirectAction
Returns
TypeDescription
FirewallAction.Builder

mergeSetHeader(FirewallAction.SetHeaderAction value)

public FirewallAction.Builder mergeSetHeader(FirewallAction.SetHeaderAction value)

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Parameter
NameDescription
valueFirewallAction.SetHeaderAction
Returns
TypeDescription
FirewallAction.Builder

mergeSubstitute(FirewallAction.SubstituteAction value)

public FirewallAction.Builder mergeSubstitute(FirewallAction.SubstituteAction value)

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Parameter
NameDescription
valueFirewallAction.SubstituteAction
Returns
TypeDescription
FirewallAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FirewallAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FirewallAction.Builder
Overrides

setAllow(FirewallAction.AllowAction value)

public FirewallAction.Builder setAllow(FirewallAction.AllowAction value)

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;

Parameter
NameDescription
valueFirewallAction.AllowAction
Returns
TypeDescription
FirewallAction.Builder

setAllow(FirewallAction.AllowAction.Builder builderForValue)

public FirewallAction.Builder setAllow(FirewallAction.AllowAction.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueFirewallAction.AllowAction.Builder
Returns
TypeDescription
FirewallAction.Builder

setBlock(FirewallAction.BlockAction value)

public FirewallAction.Builder setBlock(FirewallAction.BlockAction value)

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Parameter
NameDescription
valueFirewallAction.BlockAction
Returns
TypeDescription
FirewallAction.Builder

setBlock(FirewallAction.BlockAction.Builder builderForValue)

public FirewallAction.Builder setBlock(FirewallAction.BlockAction.Builder builderForValue)

This action will deny access to a given page. The user will get an HTTP error code.

.google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;

Parameter
NameDescription
builderForValueFirewallAction.BlockAction.Builder
Returns
TypeDescription
FirewallAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FirewallAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FirewallAction.Builder
Overrides

setRedirect(FirewallAction.RedirectAction value)

public FirewallAction.Builder setRedirect(FirewallAction.RedirectAction value)

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Parameter
NameDescription
valueFirewallAction.RedirectAction
Returns
TypeDescription
FirewallAction.Builder

setRedirect(FirewallAction.RedirectAction.Builder builderForValue)

public FirewallAction.Builder setRedirect(FirewallAction.RedirectAction.Builder builderForValue)

This action will redirect the request to a ReCaptcha interstitial to attach a token.

.google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;

Parameter
NameDescription
builderForValueFirewallAction.RedirectAction.Builder
Returns
TypeDescription
FirewallAction.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FirewallAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FirewallAction.Builder
Overrides

setSetHeader(FirewallAction.SetHeaderAction value)

public FirewallAction.Builder setSetHeader(FirewallAction.SetHeaderAction value)

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Parameter
NameDescription
valueFirewallAction.SetHeaderAction
Returns
TypeDescription
FirewallAction.Builder

setSetHeader(FirewallAction.SetHeaderAction.Builder builderForValue)

public FirewallAction.Builder setSetHeader(FirewallAction.SetHeaderAction.Builder builderForValue)

This action will set a custom header but allow the request to continue to the customer backend.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4;

Parameter
NameDescription
builderForValueFirewallAction.SetHeaderAction.Builder
Returns
TypeDescription
FirewallAction.Builder

setSubstitute(FirewallAction.SubstituteAction value)

public FirewallAction.Builder setSubstitute(FirewallAction.SubstituteAction value)

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Parameter
NameDescription
valueFirewallAction.SubstituteAction
Returns
TypeDescription
FirewallAction.Builder

setSubstitute(FirewallAction.SubstituteAction.Builder builderForValue)

public FirewallAction.Builder setSubstitute(FirewallAction.SubstituteAction.Builder builderForValue)

This action will transparently serve a different page to an offending user.

.google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3;

Parameter
NameDescription
builderForValueFirewallAction.SubstituteAction.Builder
Returns
TypeDescription
FirewallAction.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final FirewallAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FirewallAction.Builder
Overrides