Retail v2 API - Class WriteUserEventRequest (2.11.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
Name Description
other WriteUserEventRequest

Properties

Parent

public string Parent { get; set; }

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

Property Value
Type Description
string

UserEvent

public UserEvent UserEvent { get; set; }

Required. User event to write.

Property Value
Type Description
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
Type Description
bool