WidgetWriteUserEventRequest

WidgetService.WidgetWriteUserEvent 方法的请求消息。

JSON 表示法
{
  "location": string,
  "configId": string,
  "writeUserEventRequest": {
    object (WriteUserEventRequest)
  },
  "additionalParams": {
    object (AdditionalParams)
  }
}
字段
location

string

必需。将执行 widget 写入用户事件的位置资源。格式:locations/{location}

configId

string

必需。WidgetConfig 的 UUID。此字段用于标识 widget 配置,即用于写入用户事件的模型集。

writeUserEventRequest

object (WriteUserEventRequest)

必需。用户事件写入请求。

additionalParams

object (AdditionalParams)

必需。用于增强安全性和隐私性的其他参数。

WriteUserEventRequest

针对 WriteUserEvent 方法的请求消息。

JSON 表示法
{
  "parent": string,
  "writeAsync": boolean,
  "userEvent": {
    object (UserEvent)
  }
}
字段
parent

string

必需。父级资源名称。如果写入用户事件操作是在 DataStore 级别应用的,则格式为:projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}。如果“写入用户事件”操作应用于 Location 级,例如,具有 Document 的事件跨多个 DataStore,则格式为:projects/{project}/locations/{location}

writeAsync

boolean

如果设置为 true,则在验证后异步写入用户事件,并且 API 会在不等待写入的情况下做出响应。

userEvent

object (UserEvent)

必需。要写入的用户事件。