Class FirewallAction.SetHeaderAction (3.52.0)

public static final class FirewallAction.SetHeaderAction extends GeneratedMessageV3 implements FirewallAction.SetHeaderActionOrBuilder

A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > FirewallAction.SetHeaderAction

Static Fields

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FirewallAction.SetHeaderAction getDefaultInstance()
Returns
Type Description
FirewallAction.SetHeaderAction

getDescriptor()

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

newBuilder()

public static FirewallAction.SetHeaderAction.Builder newBuilder()
Returns
Type Description
FirewallAction.SetHeaderAction.Builder

newBuilder(FirewallAction.SetHeaderAction prototype)

public static FirewallAction.SetHeaderAction.Builder newBuilder(FirewallAction.SetHeaderAction prototype)
Parameter
Name Description
prototype FirewallAction.SetHeaderAction
Returns
Type Description
FirewallAction.SetHeaderAction.Builder

parseDelimitedFrom(InputStream input)

public static FirewallAction.SetHeaderAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FirewallAction.SetHeaderAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallAction.SetHeaderAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallAction.SetHeaderAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FirewallAction.SetHeaderAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FirewallAction.SetHeaderAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallAction.SetHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FirewallAction.SetHeaderAction> parser()
Returns
Type Description
Parser<SetHeaderAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getKey()

public String getKey()

Optional. The header key to set in the request to the backend server.

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

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Optional. The header key to set in the request to the backend server.

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

Returns
Type Description
ByteString

The bytes for key.

getParserForType()

public Parser<FirewallAction.SetHeaderAction> getParserForType()
Returns
Type Description
Parser<SetHeaderAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getValue()

public String getValue()

Optional. The header value to set in the request to the backend server.

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Optional. The header value to set in the request to the backend server.

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FirewallAction.SetHeaderAction.Builder newBuilderForType()
Returns
Type Description
FirewallAction.SetHeaderAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallAction.SetHeaderAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FirewallAction.SetHeaderAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FirewallAction.SetHeaderAction.Builder toBuilder()
Returns
Type Description
FirewallAction.SetHeaderAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException