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

The request message to annotate an Assessment.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotation

    def annotation() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Annotation)) --- Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.

### #annotation=

    def annotation=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Annotation)) --- Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Annotation)) --- Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.

### #hashed_account_id

    def hashed_account_id() -> ::String

**Returns**

- (::String) --- Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.

### #hashed_account_id=

    def hashed_account_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
**Returns**

- (::String) --- Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the Assessment, in the format `projects/{project_number}/assessments/{assessment_id}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the Assessment, in the format `projects/{project_number}/assessments/{assessment_id}`.
**Returns**

- (::String) --- Required. The resource name of the Assessment, in the format `projects/{project_number}/assessments/{assessment_id}`.

### #reasons

    def reasons() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason>

**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Reason)\>) --- Optional. Reasons for the annotation that are assigned to the event.

### #reasons=

    def reasons=(value) -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason>

**Parameter**

- **value** (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Reason)\>) --- Optional. Reasons for the annotation that are assigned to the event.
**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-AnnotateAssessmentRequest-Reason)\>) --- Optional. Reasons for the annotation that are assigned to the event.

### #transaction_event

    def transaction_event() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent)) --- Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.

### #transaction_event=

    def transaction_event=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent)) --- Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent)) --- Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.