Google Cloud Recaptcha Enterprise V1 Client - Class Key (1.7.0)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Key.

A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.Key

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name for the Key in the format projects/{project}/keys/{key}.

↳ display_name string

Required. Human-readable display name of this key. Modifiable by user.

↳ web_settings Google\Cloud\RecaptchaEnterprise\V1\WebKeySettings

Settings for keys that can be used by websites.

↳ android_settings Google\Cloud\RecaptchaEnterprise\V1\AndroidKeySettings

Settings for keys that can be used by Android apps.

↳ ios_settings Google\Cloud\RecaptchaEnterprise\V1\IOSKeySettings

Settings for keys that can be used by iOS apps.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. See Creating and managing labels.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp corresponding to the creation of this key.

↳ testing_options Google\Cloud\RecaptchaEnterprise\V1\TestingOptions

Optional. Options for user acceptance testing.

↳ waf_settings Google\Cloud\RecaptchaEnterprise\V1\WafSettings

Optional. Settings for WAF

getName

Identifier. The resource name for the Key in the format projects/{project}/keys/{key}.

Returns
TypeDescription
string

setName

Identifier. The resource name for the Key in the format projects/{project}/keys/{key}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. Human-readable display name of this key. Modifiable by user.

Returns
TypeDescription
string

setDisplayName

Required. Human-readable display name of this key. Modifiable by user.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWebSettings

Settings for keys that can be used by websites.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\WebKeySettings|null

hasWebSettings

setWebSettings

Settings for keys that can be used by websites.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\WebKeySettings
Returns
TypeDescription
$this

getAndroidSettings

Settings for keys that can be used by Android apps.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\AndroidKeySettings|null

hasAndroidSettings

setAndroidSettings

Settings for keys that can be used by Android apps.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\AndroidKeySettings
Returns
TypeDescription
$this

getIosSettings

Settings for keys that can be used by iOS apps.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\IOSKeySettings|null

hasIosSettings

setIosSettings

Settings for keys that can be used by iOS apps.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\IOSKeySettings
Returns
TypeDescription
$this

getLabels

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp corresponding to the creation of this key.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp corresponding to the creation of this key.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTestingOptions

Optional. Options for user acceptance testing.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\TestingOptions|null

hasTestingOptions

clearTestingOptions

setTestingOptions

Optional. Options for user acceptance testing.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\TestingOptions
Returns
TypeDescription
$this

getWafSettings

Optional. Settings for WAF

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\WafSettings|null

hasWafSettings

clearWafSettings

setWafSettings

Optional. Settings for WAF

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\WafSettings
Returns
TypeDescription
$this

getPlatformSettings

Returns
TypeDescription
string