# reCAPTCHA Enterprise V1 API - Class Google::Cloud::RecaptchaEnterprise::V1::Assessment (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::Assessment.

A reCAPTCHA Enterprise assessment resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #account_defender_assessment

    def account_defender_assessment() -> ::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AccountDefenderAssessment)) --- Output only. Assessment returned by account defender when an account identifier is provided.

### #account_verification

    def account_verification() -> ::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AccountVerificationInfo)) --- Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.

### #account_verification=

    def account_verification=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AccountVerificationInfo)) --- Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AccountVerificationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AccountVerificationInfo)) --- Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.

### #assessment_environment

    def assessment_environment() -> ::Google::Cloud::RecaptchaEnterprise::V1::AssessmentEnvironment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AssessmentEnvironment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AssessmentEnvironment)) --- Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.

### #assessment_environment=

    def assessment_environment=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::AssessmentEnvironment

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::AssessmentEnvironment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AssessmentEnvironment)) --- Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::AssessmentEnvironment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-AssessmentEnvironment)) --- Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.

### #event

    def event() -> ::Google::Cloud::RecaptchaEnterprise::V1::Event

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-Event)) --- Optional. The event being assessed.

### #event=

    def event=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::Event

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-Event)) --- Optional. The event being assessed.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-Event)) --- Optional. The event being assessed.

### #firewall_policy_assessment

    def firewall_policy_assessment() -> ::Google::Cloud::RecaptchaEnterprise::V1::FirewallPolicyAssessment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::FirewallPolicyAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-FirewallPolicyAssessment)) --- Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation.

### #fraud_prevention_assessment

    def fraud_prevention_assessment() -> ::Google::Cloud::RecaptchaEnterprise::V1::FraudPreventionAssessment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::FraudPreventionAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-FraudPreventionAssessment)) --- Output only. Assessment returned by Fraud Prevention when TransactionData is provided.

### #fraud_signals

    def fraud_signals() -> ::Google::Cloud::RecaptchaEnterprise::V1::FraudSignals

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::FraudSignals](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-FraudSignals)) --- Output only. Fraud Signals specific to the users involved in a payment transaction.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.

### #phone_fraud_assessment

    def phone_fraud_assessment() -> ::Google::Cloud::RecaptchaEnterprise::V1::PhoneFraudAssessment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::PhoneFraudAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-PhoneFraudAssessment)) --- Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are provided. Account defender and SMS toll fraud protection need to be enabled.

### #private_password_leak_verification

    def private_password_leak_verification() -> ::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-PrivatePasswordLeakVerification)) --- Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.

### #private_password_leak_verification=

    def private_password_leak_verification=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-PrivatePasswordLeakVerification)) --- Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-PrivatePasswordLeakVerification)) --- Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.

### #risk_analysis

    def risk_analysis() -> ::Google::Cloud::RecaptchaEnterprise::V1::RiskAnalysis

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::RiskAnalysis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-RiskAnalysis)) --- Output only. The risk analysis result for the event being assessed.

### #token_properties

    def token_properties() -> ::Google::Cloud::RecaptchaEnterprise::V1::TokenProperties

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1::TokenProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-TokenProperties)) --- Output only. Properties of the provided event token.