# reCAPTCHA Enterprise V1 API - Class Google::Cloud::RecaptchaEnterprise::V1::Key (v1.11.0)

1.11.0 (latest) 1.9.1 1.8.0 1.7.1 1.6.0 1.5.1 1.4.1 1.3.0 1.2.0 1.1.0 1.0.0 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.3 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.0 0.7.1 Reference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::Key.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #android_settings

    def android_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::AndroidKeySettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AndroidKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AndroidKeySettings)) --- Settings for keys that can be used by Android apps.


  Note: The following fields are mutually exclusive: `android_settings`, `web_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #android_settings=

    def android_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::AndroidKeySettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::AndroidKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AndroidKeySettings)) --- Settings for keys that can be used by Android apps.


  Note: The following fields are mutually exclusive: `android_settings`, `web_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AndroidKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AndroidKeySettings)) --- Settings for keys that can be used by Android apps.


  Note: The following fields are mutually exclusive: `android_settings`, `web_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp corresponding to the creation of this key.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. Human-readable display name of this key. Modifiable by user.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Human-readable display name of this key. Modifiable by user.
**Returns**

- (::String) --- Required. Human-readable display name of this key. Modifiable by user.

### #express_settings

    def express_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::ExpressKeySettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::ExpressKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-ExpressKeySettings)) --- Settings for keys that can be used by reCAPTCHA Express.


  Note: The following fields are mutually exclusive: `express_settings`, `web_settings`, `android_settings`, `ios_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #express_settings=

    def express_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::ExpressKeySettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::ExpressKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-ExpressKeySettings)) --- Settings for keys that can be used by reCAPTCHA Express.


  Note: The following fields are mutually exclusive: `express_settings`, `web_settings`, `android_settings`, `ios_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::ExpressKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-ExpressKeySettings)) --- Settings for keys that can be used by reCAPTCHA Express.


  Note: The following fields are mutually exclusive: `express_settings`, `web_settings`, `android_settings`, `ios_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #ios_settings

    def ios_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::IOSKeySettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::IOSKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-IOSKeySettings)) --- Settings for keys that can be used by iOS apps.


  Note: The following fields are mutually exclusive: `ios_settings`, `web_settings`, `android_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #ios_settings=

    def ios_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::IOSKeySettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::IOSKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-IOSKeySettings)) --- Settings for keys that can be used by iOS apps.


  Note: The following fields are mutually exclusive: `ios_settings`, `web_settings`, `android_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::IOSKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-IOSKeySettings)) --- Settings for keys that can be used by iOS apps.


  Note: The following fields are mutually exclusive: `ios_settings`, `web_settings`, `android_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. See [Creating and managing labels](https://cloud.google.com/recaptcha/docs/labels).

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. See [Creating and managing labels](https://cloud.google.com/recaptcha/docs/labels).
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. See [Creating and managing labels](https://cloud.google.com/recaptcha/docs/labels).

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.
**Returns**

- (::String) --- Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`.

### #testing_options

    def testing_options() -> ::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-TestingOptions)) --- Optional. Options for user acceptance testing.

### #testing_options=

    def testing_options=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-TestingOptions)) --- Optional. Options for user acceptance testing.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-TestingOptions)) --- Optional. Options for user acceptance testing.

### #waf_settings

    def waf_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::WafSettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WafSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WafSettings)) --- Optional. Settings for Web Application Firewall (WAF).

### #waf_settings=

    def waf_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::WafSettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::WafSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WafSettings)) --- Optional. Settings for Web Application Firewall (WAF).
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WafSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WafSettings)) --- Optional. Settings for Web Application Firewall (WAF).

### #web_settings

    def web_settings() -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings)) --- Settings for keys that can be used by websites.


  Note: The following fields are mutually exclusive: `web_settings`, `android_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #web_settings=

    def web_settings=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings)) --- Settings for keys that can be used by websites.


  Note: The following fields are mutually exclusive: `web_settings`, `android_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::WebKeySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-WebKeySettings)) --- Settings for keys that can be used by websites.


  Note: The following fields are mutually exclusive: `web_settings`, `android_settings`, `ios_settings`, `express_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared.