WidgetService.WidgetWriteUserEvent
方法的请求消息。
JSON 表示法 |
---|
{ "location": string, "configId": string, "writeUserEventRequest": { object ( |
字段 | |
---|---|
location |
必需。将执行 widget 写入用户事件的位置资源。格式: |
configId |
必需。WidgetConfig 的 UUID。此字段用于标识 widget 配置,即用于写入用户事件的模型集。 |
writeUserEventRequest |
必需。用户事件写入请求。 |
additionalParams |
必需。用于增强安全性和隐私性的其他参数。 |
WriteUserEventRequest
针对 WriteUserEvent 方法的请求消息。
JSON 表示法 |
---|
{
"parent": string,
"writeAsync": boolean,
"userEvent": {
object ( |
字段 | |
---|---|
parent |
必需。父级资源名称。如果写入用户事件操作是在 |
writeAsync |
如果设置为 true,则在验证后异步写入用户事件,并且 API 会在不等待写入的情况下做出响应。 |
userEvent |
必需。要写入的用户事件。 |