# Google Cloud reCAPTCHA Enterprise v1beta1 API - Class AnnotateAssessmentRequest (2.0.0-beta10)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta10 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/2.0.0-beta09/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/1.0.0-beta06/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest)

    public sealed class AnnotateAssessmentRequest : IMessage<AnnotateAssessmentRequest>, IEquatable<AnnotateAssessmentRequest>, IDeepCloneable<AnnotateAssessmentRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1beta1 API class AnnotateAssessmentRequest.

The request message to annotate an Assessment.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AnnotateAssessmentRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnnotateAssessmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnnotateAssessmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnnotateAssessmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecaptchaEnterprise.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1)

## Assembly

Google.Cloud.RecaptchaEnterprise.V1Beta1.dll

## Constructors

### AnnotateAssessmentRequest()

    public AnnotateAssessmentRequest()

### AnnotateAssessmentRequest(AnnotateAssessmentRequest)

    public AnnotateAssessmentRequest(AnnotateAssessmentRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest` |

## Properties

### Annotation

    public AnnotateAssessmentRequest.Types.Annotation Annotation { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest.Types.Annotation` |   |

### AssessmentName

    public AssessmentName AssessmentName { get; set; }

[AssessmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AssessmentName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest#Google_Cloud_RecaptchaEnterprise_V1Beta1_AnnotateAssessmentRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AssessmentName` |   |

### HashedAccountId

    public ByteString HashedAccountId { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### Name

    public string Name { get; set; }

Required. The resource name of the Assessment, in the format
`projects/{project_number}/assessments/{assessment_id}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Reasons

    public RepeatedField<AnnotateAssessmentRequest.Types.Reason> Reasons { get; }

Optional. Reasons for the annotation that are assigned to the event.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.AnnotateAssessmentRequest.Types.Reason` |   |

### TransactionEvent

    public TransactionEvent TransactionEvent { get; set; }

Optional. If the assessment is part of a payment transaction, provide
details on payment lifecycle events that occur in the transaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.TransactionEvent` |   |