# reCAPTCHA Enterprise V1beta1 API - Class Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment (v0.21.0)

0.21.0 (latest) 0.20.0 0.19.1 0.18.0 0.17.3 0.16.1 0.15.2 0.14.0 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the reCAPTCHA Enterprise V1beta1 API class Google::Cloud::RecaptchaEnterprise::V1beta1::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::V1beta1::AccountDefenderAssessment

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AccountDefenderAssessment)) --- Assessment returned by account defender when a hashed_account_id is provided.

### #account_defender_assessment=

    def account_defender_assessment=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AccountDefenderAssessment)) --- Assessment returned by account defender when a hashed_account_id is provided.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AccountDefenderAssessment)) --- Assessment returned by account defender when a hashed_account_id is provided.

### #event

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

**Returns**

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

### #event=

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

**Parameter**

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

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

### #fraud_prevention_assessment

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

**Returns**

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

### #fraud_prevention_assessment=

    def fraud_prevention_assessment=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::FraudPreventionAssessment

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::FraudPreventionAssessment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-FraudPreventionAssessment)) --- Assessment returned by Fraud Prevention when TransactionData is provided.
**Returns**

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

### #name

    def name() -> ::String

**Returns**

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

### #password_leak_verification

    def password_leak_verification() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::PasswordLeakVerification

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::PasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-PasswordLeakVerification)) --- Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.

### #password_leak_verification=

    def password_leak_verification=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::PasswordLeakVerification

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::PasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-PasswordLeakVerification)) --- Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::PasswordLeakVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-PasswordLeakVerification)) --- Information about the user's credentials used to check for leaks. This feature is part of the Early Access Program (EAP). Exercise caution, and do not deploy integrations based on this feature in a production environment.

### #reasons

    def reasons() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment::ClassificationReason>

**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment::ClassificationReason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-Assessment-ClassificationReason)\>) --- Output only. Reasons contributing to the risk analysis verdict.

### #score

    def score() -> ::Float

**Returns**

- (::Float) --- Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

### #token_properties

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

**Returns**

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