public sealed class WriteUserEventRequest : IMessage<WriteUserEventRequest>, IEquatable<WriteUserEventRequest>, IDeepCloneable<WriteUserEventRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class WriteUserEventRequest.
If set to true, the user event will be written asynchronously after
validation, and the API will respond without waiting for the write.
Therefore, silent failures can occur even if the API returns success. In
case of silent failures, error messages can be found in Stackdriver logs.
[[["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 of the \u003ccode\u003eWriteUserEventRequest\u003c/code\u003e class in the Retail v2 API is 2.12.0, and previous versions are available, ranging down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWriteUserEventRequest\u003c/code\u003e is a class used to request writing a user event, and it inherits from the \u003ccode\u003eobject\u003c/code\u003e class, implementing several interfaces, such as \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\u003eThis class has two constructors, a default one, and a copy constructor that accepts another \u003ccode\u003eWriteUserEventRequest\u003c/code\u003e object as an argument, and it includes properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eUserEvent\u003c/code\u003e, and \u003ccode\u003eWriteAsync\u003c/code\u003e for handling the request data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWriteUserEventRequest\u003c/code\u003e class is found within the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace and is contained in the \u003ccode\u003eGoogle.Cloud.Retail.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003eWriteUserEvent\u003c/code\u003e can be written asynchronously, by setting the \u003ccode\u003eWriteAsync\u003c/code\u003e property to true, however, silent failures can occur and will need to be checked in Stackdriver logs.\u003c/p\u003e\n"]]],[],null,[]]