public sealed class CollectUserEventRequest : IMessage<CollectUserEventRequest>, IEquatable<CollectUserEventRequest>, IDeepCloneable<CollectUserEventRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CollectUserEventRequest.
The event timestamp in milliseconds. This prevents browser caching of
otherwise identical get requests. The name is abbreviated to reduce the
payload bytes.
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
projects/{project}/locations/{location}.
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters. This is often more useful than the
referer URL, because many browsers only send the domain for third-party
requests.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eCollectUserEventRequest\u003c/code\u003e class within the Discovery Engine v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCollectUserEventRequest\u003c/code\u003e class is a request message used for the CollectUserEvent method, designed to collect user event data.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eCollectUserEventRequest\u003c/code\u003e class is 1.6.0, and the documentation includes several older versions available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCollectUserEventRequest\u003c/code\u003e implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e and has properties such as \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eUri\u003c/code\u003e, \u003ccode\u003eEts\u003c/code\u003e and \u003ccode\u003eUserEvent\u003c/code\u003e to handle user interaction data.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes constructors and details for inherited members, alongside property value descriptions for clear implementation.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CollectUserEventRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest) \n\n public sealed class CollectUserEventRequest : IMessage\u003cCollectUserEventRequest\u003e, IEquatable\u003cCollectUserEventRequest\u003e, IDeepCloneable\u003cCollectUserEventRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CollectUserEventRequest.\n\nRequest message for CollectUserEvent method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CollectUserEventRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CollectUserEventRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CollectUserEventRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CollectUserEventRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest), [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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### CollectUserEventRequest()\n\n public CollectUserEventRequest()\n\n### CollectUserEventRequest(CollectUserEventRequest)\n\n public CollectUserEventRequest(CollectUserEventRequest other)\n\nProperties\n----------\n\n### Ets\n\n public long Ets { get; set; }\n\nThe event timestamp in milliseconds. This prevents browser caching of\notherwise identical get requests. The name is abbreviated to reduce the\npayload bytes.\n\n### HasEts\n\n public bool HasEts { get; }\n\nGets whether the \"ets\" field is set\n\n### HasUri\n\n public bool HasUri { get; }\n\nGets whether the \"uri\" field is set\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource name.\nIf the collect user event action is applied in\n\\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\] level, the format\nis:\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.\nIf the collect user event action is applied in\n\\[Location\\]\\[google.cloud.location.Location\\] level, for example, the event\nwith \\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\] across multiple\n\\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\], the format is:\n`projects/{project}/locations/{location}`.\n\n### ParentAsDataStoreName\n\n public DataStoreName ParentAsDataStoreName { get; set; }\n\n[DataStoreName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DataStoreName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CollectUserEventRequest#Google_Cloud_DiscoveryEngine_V1_CollectUserEventRequest_Parent) resource name property.\n\n### Uri\n\n public string Uri { get; set; }\n\nThe URL including cgi-parameters but excluding the hash fragment with a\nlength limit of 5,000 characters. This is often more useful than the\nreferer URL, because many browsers only send the domain for third-party\nrequests.\n\n### UserEvent\n\n public string UserEvent { get; set; }\n\nRequired. URL encoded UserEvent proto with a length limit of 2,000,000\ncharacters."]]