Optional. The expected action for this type of event. This should be the
same action provided at token generation time on client-side platforms
already integrated with recaptcha enterprise.
public bool FirewallPolicyEvaluation { get; set; }
Optional. Flag for enabling firewall policy config assessment.
If this flag is enabled, the firewall policy is evaluated and a
suggested firewall action is returned in the response.
Optional. Deprecated: use user_info.account_id instead.
Unique stable hashed user identifier for the request. The identifier must
be hashed using hmac-sha256 with stable secret.
public TransactionData TransactionData { get; set; }
Optional. Data describing a payment transaction to be assessed. Sending
this data enables reCAPTCHA Enterprise Fraud Prevention and the
FraudPreventionAssessment component in the response.
Optional. Information about the user that generates this event, when they
can be identified. They are often identified through the use of an account
for logged-in requests or login/registration requests, or by providing user
identifiers for guest actions like checkout.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for the Google Cloud reCAPTCHA Enterprise v1 API class Event is 2.17.0.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers the \u003ccode\u003eEvent\u003c/code\u003e class, which is used for assessing user-generated events and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEvent\u003c/code\u003e class includes properties for configuring and capturing data related to an event, such as \u003ccode\u003eExpectedAction\u003c/code\u003e, \u003ccode\u003eSiteKey\u003c/code\u003e, \u003ccode\u003eToken\u003c/code\u003e, \u003ccode\u003eUserIpAddress\u003c/code\u003e, and \u003ccode\u003eTransactionData\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral optional features are available, such as reCAPTCHA express requests, firewall policy evaluations, and fraud prevention settings, which can be enabled via properties like \u003ccode\u003eExpress\u003c/code\u003e, \u003ccode\u003eFirewallPolicyEvaluation\u003c/code\u003e, and \u003ccode\u003eFraudPrevention\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe reCAPTCHA Enterprise API also supports the inclusion of transaction data, user information, and various identifiers and configurations, along with numerous versions of the service, that are accessible and documented.\u003c/p\u003e\n"]]],[],null,["# Google Cloud reCAPTCHA Enterprise v1 API - Class Event (2.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.17.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.16.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.15.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.14.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.13.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.12.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.11.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.10.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.9.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.8.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.7.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.6.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.5.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.4.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.3.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.2.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.1.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.0.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.6.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.5.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.4.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.3.0/Google.Cloud.RecaptchaEnterprise.V1.Event)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.2.0/Google.Cloud.RecaptchaEnterprise.V1.Event) \n\n public sealed class Event : IMessage\u003cEvent\u003e, IEquatable\u003cEvent\u003e, IDeepCloneable\u003cEvent\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class Event.\n\nThe event being assessed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Event \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Event](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Event), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Event](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Event), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Event](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Event), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.RecaptchaEnterprise.V1](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.RecaptchaEnterprise.V1.dll\n\nConstructors\n------------\n\n### Event()\n\n public Event()\n\n### Event(Event)\n\n public Event(Event other)\n\nProperties\n----------\n\n### ExpectedAction\n\n public string ExpectedAction { get; set; }\n\nOptional. The expected action for this type of event. This should be the\nsame action provided at token generation time on client-side platforms\nalready integrated with recaptcha enterprise.\n\n### Express\n\n public bool Express { get; set; }\n\nOptional. Flag for a reCAPTCHA express request for an assessment without a\ntoken. If enabled, `site_key` must reference an Express site key.\n\n### FirewallPolicyEvaluation\n\n public bool FirewallPolicyEvaluation { get; set; }\n\nOptional. Flag for enabling firewall policy config assessment.\nIf this flag is enabled, the firewall policy is evaluated and a\nsuggested firewall action is returned in the response.\n\n### FraudPrevention\n\n public Event.Types.FraudPrevention FraudPrevention { get; set; }\n\nOptional. The Fraud Prevention setting for this assessment.\n\n### HashedAccountId\n\n [Obsolete]\n public ByteString HashedAccountId { get; set; }\n\nOptional. Deprecated: use `user_info.account_id` instead.\nUnique stable hashed user identifier for the request. The identifier must\nbe hashed using hmac-sha256 with stable secret.\n\n### Headers\n\n public RepeatedField\u003cstring\u003e Headers { get; }\n\nOptional. HTTP header information about the request.\n\n### Ja3\n\n public string Ja3 { get; set; }\n\nOptional. JA3 fingerprint for SSL clients. To learn how to compute this\nfingerprint, please refer to \u003chttps://github.com/salesforce/ja3\u003e.\n\n### Ja4\n\n public string Ja4 { get; set; }\n\nOptional. JA4 fingerprint for SSL clients. To learn how to compute this\nfingerprint, please refer to \u003chttps://github.com/FoxIO-LLC/ja4\u003e.\n\n### RequestedUri\n\n public string RequestedUri { get; set; }\n\nOptional. The URI resource the user requested that triggered an assessment.\n\n### SiteKey\n\n public string SiteKey { get; set; }\n\nOptional. The site key that was used to invoke reCAPTCHA Enterprise on your\nsite and generate the token.\n\n### Token\n\n public string Token { get; set; }\n\nOptional. The user response token provided by the reCAPTCHA Enterprise\nclient-side integration on your site.\n\n### TransactionData\n\n public TransactionData TransactionData { get; set; }\n\nOptional. Data describing a payment transaction to be assessed. Sending\nthis data enables reCAPTCHA Enterprise Fraud Prevention and the\nFraudPreventionAssessment component in the response.\n\n### UserAgent\n\n public string UserAgent { get; set; }\n\nOptional. The user agent present in the request from the user's device\nrelated to this event.\n\n### UserInfo\n\n public UserInfo UserInfo { get; set; }\n\nOptional. Information about the user that generates this event, when they\ncan be identified. They are often identified through the use of an account\nfor logged-in requests or login/registration requests, or by providing user\nidentifiers for guest actions like checkout.\n\n### UserIpAddress\n\n public string UserIpAddress { get; set; }\n\nOptional. The IP address in the request from the user's device related to\nthis event.\n\n### WafTokenAssessment\n\n public bool WafTokenAssessment { get; set; }\n\nOptional. Flag for running WAF token assessment.\nIf enabled, the token must be specified, and have been created by a\nWAF-enabled key."]]