Class SecurityPolicyRecaptchaOptionsConfig (1.47.0)

public final class SecurityPolicyRecaptchaOptionsConfig extends GeneratedMessageV3 implements SecurityPolicyRecaptchaOptionsConfigOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SecurityPolicyRecaptchaOptionsConfig

Static Fields

REDIRECT_SITE_KEY_FIELD_NUMBER

public static final int REDIRECT_SITE_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPolicyRecaptchaOptionsConfig getDefaultInstance()
Returns
TypeDescription
SecurityPolicyRecaptchaOptionsConfig

getDescriptor()

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

newBuilder()

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

newBuilder(SecurityPolicyRecaptchaOptionsConfig prototype)

public static SecurityPolicyRecaptchaOptionsConfig.Builder newBuilder(SecurityPolicyRecaptchaOptionsConfig prototype)
Parameter
NameDescription
prototypeSecurityPolicyRecaptchaOptionsConfig
Returns
TypeDescription
SecurityPolicyRecaptchaOptionsConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecurityPolicyRecaptchaOptionsConfig getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRecaptchaOptionsConfig

getParserForType()

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

getRedirectSiteKey()

public String getRedirectSiteKey()

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

optional string redirect_site_key = 447677034;

Returns
TypeDescription
String

The redirectSiteKey.

getRedirectSiteKeyBytes()

public ByteString getRedirectSiteKeyBytes()

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

optional string redirect_site_key = 447677034;

Returns
TypeDescription
ByteString

The bytes for redirectSiteKey.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasRedirectSiteKey()

public boolean hasRedirectSiteKey()

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

optional string redirect_site_key = 447677034;

Returns
TypeDescription
boolean

Whether the redirectSiteKey field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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