Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class TokenProperties.
Properties of the provided event token.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.TokenProperties
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ valid
bool
Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
↳ invalid_reason
int
Output only. Reason associated with the response when valid = false.
↳ create_time
↳ hostname
string
Output only. The hostname of the page on which the token was generated (Web keys only).
↳ android_package_name
string
Output only. The name of the Android package with which the token was generated (Android keys only).
↳ ios_bundle_id
string
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
↳ action
string
Output only. Action name provided at token generation.
getValid
Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
bool
setValid
Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
var
bool
$this
getInvalidReason
Output only. Reason associated with the response when valid = false.
int
setInvalidReason
Output only. Reason associated with the response when valid = false.
var
int
$this
getCreateTime
Output only. The timestamp corresponding to the generation of the token.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp corresponding to the generation of the token.
$this
getHostname
Output only. The hostname of the page on which the token was generated (Web keys only).
string
setHostname
Output only. The hostname of the page on which the token was generated (Web keys only).
var
string
$this
getAndroidPackageName
Output only. The name of the Android package with which the token was generated (Android keys only).
string
setAndroidPackageName
Output only. The name of the Android package with which the token was generated (Android keys only).
var
string
$this
getIosBundleId
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string
setIosBundleId
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
var
string
$this
getAction
Output only. Action name provided at token generation.
string
setAction
Output only. Action name provided at token generation.
var
string
$this