Retail v2 API - Class WriteUserEventRequest (2.3.0)

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

Reference documentation and code samples for the Retail v2 API class WriteUserEventRequest.

Request message for WriteUserEvent method.

Inheritance

Object > WriteUserEventRequest

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

WriteUserEventRequest()

public WriteUserEventRequest()

WriteUserEventRequest(WriteUserEventRequest)

public WriteUserEventRequest(WriteUserEventRequest other)
Parameter
NameDescription
otherWriteUserEventRequest

Properties

Parent

public string Parent { get; set; }

Required. The parent catalog resource name, such as projects/1234/locations/global/catalogs/default_catalog.

Property Value
TypeDescription
System.String

UserEvent

public UserEvent UserEvent { get; set; }

Required. User event to write.

Property Value
TypeDescription
UserEvent

WriteAsync

public bool WriteAsync { get; set; }

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.

Property Value
TypeDescription
Boolean