Google Cloud Recaptcha Enterprise V1 Client - Class CreateKeyRequest (1.12.2)

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

The create key request message.

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

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the project in which the key will be created, in the format projects/{project}.

↳ key Google\Cloud\RecaptchaEnterprise\V1\Key

Required. Information to create a reCAPTCHA Enterprise key.

getParent

Required. The name of the project in which the key will be created, in the format projects/{project}.

Returns
Type Description
string

setParent

Required. The name of the project in which the key will be created, in the format projects/{project}.

Parameter
Name Description
var string
Returns
Type Description
$this

getKey

Required. Information to create a reCAPTCHA Enterprise key.

Returns
Type Description
Google\Cloud\RecaptchaEnterprise\V1\Key|null

hasKey

clearKey

setKey

Required. Information to create a reCAPTCHA Enterprise key.

Parameter
Name Description
var Google\Cloud\RecaptchaEnterprise\V1\Key
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The name of the project in which the key will be created, in the format projects/{project}. Please see Google\Cloud\RecaptchaEnterprise\V1\RecaptchaEnterpriseServiceClient::projectName() for help formatting this field.

key Google\Cloud\RecaptchaEnterprise\V1\Key

Required. Information to create a reCAPTCHA Enterprise key.

Returns
Type Description
Google\Cloud\RecaptchaEnterprise\V1\CreateKeyRequest