Class WafSettings (3.5.0)

public final class WafSettings extends GeneratedMessageV3 implements WafSettingsOrBuilder

Settings specific to keys that can be used for WAF (Web Application Firewall).

Protobuf type google.cloud.recaptchaenterprise.v1.WafSettings

Static Fields

WAF_FEATURE_FIELD_NUMBER

public static final int WAF_FEATURE_FIELD_NUMBER
Field Value
TypeDescription
int

WAF_SERVICE_FIELD_NUMBER

public static final int WAF_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WafSettings getDefaultInstance()
Returns
TypeDescription
WafSettings

getDescriptor()

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

newBuilder()

public static WafSettings.Builder newBuilder()
Returns
TypeDescription
WafSettings.Builder

newBuilder(WafSettings prototype)

public static WafSettings.Builder newBuilder(WafSettings prototype)
Parameter
NameDescription
prototypeWafSettings
Returns
TypeDescription
WafSettings.Builder

parseDelimitedFrom(InputStream input)

public static WafSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WafSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static WafSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WafSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static WafSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WafSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static WafSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WafSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static WafSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WafSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<WafSettings> parser()
Returns
TypeDescription
Parser<WafSettings>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WafSettings getDefaultInstanceForType()
Returns
TypeDescription
WafSettings

getParserForType()

public Parser<WafSettings> getParserForType()
Returns
TypeDescription
Parser<WafSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWafFeature()

public WafSettings.WafFeature getWafFeature()

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WafSettings.WafFeature

The wafFeature.

getWafFeatureValue()

public int getWafFeatureValue()

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for wafFeature.

getWafService()

public WafSettings.WafService getWafService()

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WafSettings.WafService

The wafService.

getWafServiceValue()

public int getWafServiceValue()

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for wafService.

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 WafSettings.Builder newBuilderForType()
Returns
TypeDescription
WafSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public WafSettings.Builder toBuilder()
Returns
TypeDescription
WafSettings.Builder

writeTo(CodedOutputStream output)

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