allowAllDomains = $allowAllDomains; } /** * @return bool */ public function getAllowAllDomains() { return $this->allowAllDomains; } /** * Optional. If set to true, the key can be used on AMP (Accelerated Mobile * Pages) websites. This is supported only for the SCORE integration type. * * @param bool $allowAmpTraffic */ public function setAllowAmpTraffic($allowAmpTraffic) { $this->allowAmpTraffic = $allowAmpTraffic; } /** * @return bool */ public function getAllowAmpTraffic() { return $this->allowAmpTraffic; } /** * Optional. Domains or subdomains of websites allowed to use the key. All * subdomains of an allowed domain are automatically allowed. A valid domain * requires a host and must not include any path, port, query or fragment. * Examples: 'example.com' or 'subdomain.example.com' Each key supports a * maximum of 250 domains. To use a key on more domains, set * `allow_all_domains` to true. When this is set, you are responsible for * validating the hostname by checking the `token_properties.hostname` field * in each assessment response against your list of allowed domains. * * @param string[] $allowedDomains */ public function setAllowedDomains($allowedDomains) { $this->allowedDomains = $allowedDomains; } /** * @return string[] */ public function getAllowedDomains() { return $this->allowedDomains; } /** * Optional. Settings for the frequency and difficulty at which this key * triggers captcha challenges. This should only be specified for * `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE. * * Accepted values: CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, USABILITY, * BALANCE, SECURITY * * @param self::CHALLENGE_SECURITY_PREFERENCE_* $challengeSecurityPreference */ public function setChallengeSecurityPreference($challengeSecurityPreference) { $this->challengeSecurityPreference = $challengeSecurityPreference; } /** * @return self::CHALLENGE_SECURITY_PREFERENCE_* */ public function getChallengeSecurityPreference() { return $this->challengeSecurityPreference; } /** * Optional. Challenge settings. * * @param GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings $challengeSettings */ public function setChallengeSettings(GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings $challengeSettings) { $this->challengeSettings = $challengeSettings; } /** * @return GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings */ public function getChallengeSettings() { return $this->challengeSettings; } /** * Required. Describes how this key is integrated with the website. * * Accepted values: INTEGRATION_TYPE_UNSPECIFIED, SCORE, CHECKBOX, INVISIBLE, * POLICY_BASED_CHALLENGE * * @param self::INTEGRATION_TYPE_* $integrationType */ public function setIntegrationType($integrationType) { $this->integrationType = $integrationType; } /** * @return self::INTEGRATION_TYPE_* */ public function getIntegrationType() { return $this->integrationType; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRecaptchaenterpriseV1WebKeySettings::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1WebKeySettings');