WidgetWriteUserEventRequest

WidgetService.WidgetWriteUserEvent 方法的要求訊息。

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

string

這是必要旗標,要執行小工具寫入使用者事件的位置資源。格式:locations/{location}

configId

string

這是必要旗標,WidgetConfig 的 UUID。這個欄位用於識別小工具設定,以及用來寫入使用者事件的模型集。

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 層級套用,且事件具有多個 DataStore,格式為:projects/{project}/locations/{location}Document

writeAsync

boolean

如果設為 true,系統會在驗證後非同步寫入使用者事件,且 API 會在寫入完成前傳送回應。

userEvent

object (UserEvent)

這是必要旗標,要寫入的使用者事件。