Class FirewallAction.SetHeaderAction (3.33.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
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FirewallAction.SetHeaderAction getDefaultInstance()
Returns
TypeDescription
FirewallAction.SetHeaderAction

getDescriptor()

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

newBuilder()

public static FirewallAction.SetHeaderAction.Builder newBuilder()
Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder

newBuilder(FirewallAction.SetHeaderAction prototype)

public static FirewallAction.SetHeaderAction.Builder newBuilder(FirewallAction.SetHeaderAction prototype)
Parameter
NameDescription
prototypeFirewallAction.SetHeaderAction
Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder

parseDelimitedFrom(InputStream input)

public static FirewallAction.SetHeaderAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FirewallAction.SetHeaderAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallAction.SetHeaderAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallAction.SetHeaderAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FirewallAction.SetHeaderAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FirewallAction.SetHeaderAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallAction.SetHeaderAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallAction.SetHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FirewallAction.SetHeaderAction getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for key.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FirewallAction.SetHeaderAction.Builder newBuilderForType()
Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallAction.SetHeaderAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FirewallAction.SetHeaderAction.Builder toBuilder()
Returns
TypeDescription
FirewallAction.SetHeaderAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException