Reference documentation and code samples for the Google Cloud Retail V2 Client class WriteUserEventRequest.
Request message for WriteUserEvent method.
Generated from protobuf message google.cloud.retail.v2.WriteUserEventRequest
Namespace
Google \ Cloud \ Retail \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent catalog resource name, such as projects/1234/locations/global/catalogs/default_catalog
.
↳ user_event
↳ write_async
bool
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.
getParent
Required. The parent catalog resource name, such as projects/1234/locations/global/catalogs/default_catalog
.
string
setParent
Required. The parent catalog resource name, such as projects/1234/locations/global/catalogs/default_catalog
.
var
string
$this
getUserEvent
Required. User event to write.
hasUserEvent
clearUserEvent
setUserEvent
Required. User event to write.
$this
getWriteAsync
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.
bool
setWriteAsync
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.
var
bool
$this