Context

與訊息相關的內容比對資料。

JSON 表示法
{
  "entryPoint": enum (EntryPoint),
  "userInfo": {
    object (UserInfo)
  },
  "widget": {
    object (Widget)
  },
  "resolvedLocale": string,
  "customContext": string,

  // Union field place can be only one of the following:
  "placeId": string,
  "nearPlaceId": string
  // End of list of possible types for union field place.
}
欄位
entryPoint

enum (EntryPoint)

使用者點按的進入點。

userInfo

object (UserInfo)

撰寫郵件的使用者身分。

widget

object (Widget)

用來啟動對話的小工具相關資訊。

resolvedLocale

string

已解析的語言代碼。根據位置、可能的語言偏好和其他因素,比對使用者和支援的代理程式語言代碼。語言代碼值是格式正確的 IETF BCP 47 語言標記。

customContext

string

合作夥伴指定的背景資訊。

聯集欄位 place。可以設定 placeId 或 nearPlaceId。place 只能是下列其中一項:
placeId

string

地點的地點 ID,也就是 Google Places 中使用的專屬 ID。

nearPlaceId

string

距離使用者的地點 ID (也就是 Google Places 中所使用的專屬 ID)。

UserInfo

與訊息相關聯的使用者身分資料。

JSON 表示法
{
  "displayName": string,
  "userDeviceLocale": string
}
欄位
displayName

string

使用者的顯示名稱。

userDeviceLocale

string

使用者的語言代碼。取決於裝置的語言設定。

小工具

與訊息相關聯的小工具資訊。

JSON 表示法
{
  "url": string,
  "widgetContext": string
}
欄位
url

string

整合小工具的網址。

widgetContext

string

與小工具相關聯的內容字串。由小工具的 data-bm-widget-context 屬性指定。