Class FirewallAction.SubstituteAction.Builder (3.39.0)

public static final class FirewallAction.SubstituteAction.Builder extends GeneratedMessageV3.Builder<FirewallAction.SubstituteAction.Builder> implements FirewallAction.SubstituteActionOrBuilder

A substitute action transparently serves a different page than the one requested.

Protobuf type google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FirewallAction.SubstituteAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

build()

public FirewallAction.SubstituteAction build()
Returns
Type Description
FirewallAction.SubstituteAction

buildPartial()

public FirewallAction.SubstituteAction buildPartial()
Returns
Type Description
FirewallAction.SubstituteAction

clear()

public FirewallAction.SubstituteAction.Builder clear()
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FirewallAction.SubstituteAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FirewallAction.SubstituteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

clearPath()

public FirewallAction.SubstituteAction.Builder clearPath()

Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FirewallAction.SubstituteAction.Builder

This builder for chaining.

clone()

public FirewallAction.SubstituteAction.Builder clone()
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

getDefaultInstanceForType()

public FirewallAction.SubstituteAction getDefaultInstanceForType()
Returns
Type Description
FirewallAction.SubstituteAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPath()

public String getPath()

Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for path.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FirewallAction.SubstituteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FirewallAction.SubstituteAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

mergeFrom(FirewallAction.SubstituteAction other)

public FirewallAction.SubstituteAction.Builder mergeFrom(FirewallAction.SubstituteAction other)
Parameter
Name Description
other FirewallAction.SubstituteAction
Returns
Type Description
FirewallAction.SubstituteAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FirewallAction.SubstituteAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FirewallAction.SubstituteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

setPath(String value)

public FirewallAction.SubstituteAction.Builder setPath(String value)

Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
FirewallAction.SubstituteAction.Builder

This builder for chaining.

setPathBytes(ByteString value)

public FirewallAction.SubstituteAction.Builder setPathBytes(ByteString value)

Optional. The address to redirect to. The target is a relative path in the current host. Example: "/blog/404.html".

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
FirewallAction.SubstituteAction.Builder

This builder for chaining.

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

public FirewallAction.SubstituteAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FirewallAction.SubstituteAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FirewallAction.SubstituteAction.Builder
Overrides