Class FirewallAction.SubstituteAction.Builder (3.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FirewallAction.SubstituteAction build()
Returns
TypeDescription
FirewallAction.SubstituteAction

buildPartial()

public FirewallAction.SubstituteAction buildPartial()
Returns
TypeDescription
FirewallAction.SubstituteAction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public FirewallAction.SubstituteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
FirewallAction.SubstituteAction.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FirewallAction.SubstituteAction getDefaultInstanceForType()
Returns
TypeDescription
FirewallAction.SubstituteAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for path.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FirewallAction.SubstituteAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FirewallAction.SubstituteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FirewallAction.SubstituteAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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