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.
public TransactionData TransactionData { get; set; }
Optional. Data describing a payment transaction to be assessed. Sending
this data enables reCAPTCHA Fraud Prevention and the
FraudPreventionAssessment component in the response.
[[["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\u003eThis page provides documentation for the \u003ccode\u003eEvent\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.RecaptchaEnterprise.V1Beta1\u003c/code\u003e namespace, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEvent\u003c/code\u003e class, a core component of reCAPTCHA Enterprise, is used to represent events associated with user interactions and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eEvent\u003c/code\u003e class include \u003ccode\u003eExpectedAction\u003c/code\u003e, \u003ccode\u003eFraudPrevention\u003c/code\u003e, \u003ccode\u003eHashedAccountId\u003c/code\u003e, \u003ccode\u003eSiteKey\u003c/code\u003e, \u003ccode\u003eToken\u003c/code\u003e, \u003ccode\u003eTransactionData\u003c/code\u003e, \u003ccode\u003eUserAgent\u003c/code\u003e, and \u003ccode\u003eUserIpAddress\u003c/code\u003e, which allow for detailed event configuration and analysis.\u003c/p\u003e\n"],["\u003cp\u003eThere are three available versions of this package available, with \u003ccode\u003e2.0.0-beta07\u003c/code\u003e as the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEvent\u003c/code\u003e class has two constructors: a default constructor \u003ccode\u003eEvent()\u003c/code\u003e and another that accepts another \u003ccode\u003eEvent\u003c/code\u003e object as a parameter, allowing for the creation of event objects and the ability to copy them.\u003c/p\u003e\n"]]],[],null,["# Google Cloud reCAPTCHA Enterprise v1beta1 API - Class Event (2.0.0-beta09)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta09 (latest)](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.Event)\n- [2.0.0-beta07](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/2.0.0-beta07/Google.Cloud.RecaptchaEnterprise.V1Beta1.Event)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/1.0.0-beta06/Google.Cloud.RecaptchaEnterprise.V1Beta1.Event) \n\n public sealed class Event : IMessage\u003cEvent\u003e, IEquatable\u003cEvent\u003e, IDeepCloneable\u003cEvent\u003e, IBufferMessage, IMessage\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.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.Event), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Event](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.Event), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Event](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1.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.V1Beta1](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1Beta1/latest/Google.Cloud.RecaptchaEnterprise.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.RecaptchaEnterprise.V1Beta1.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.\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 public ByteString HashedAccountId { get; set; }\n\nOptional. Unique stable hashed user identifier for the request. The\nidentifier must be hashed using hmac-sha256 with stable secret.\n\n### SiteKey\n\n public string SiteKey { get; set; }\n\nOptional. The site key that was used to invoke reCAPTCHA on your site and\ngenerate the token.\n\n### Token\n\n public string Token { get; set; }\n\nOptional. The user response token provided by the reCAPTCHA client-side\nintegration 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 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### 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."]]