AdvancedCompleteQueryResponse

CompletionService.AdvancedCompleteQuery 方法的回應訊息。

JSON 表示法
{
  "querySuggestions": [
    {
      object (QuerySuggestion)
    }
  ],
  "tailMatchTriggered": boolean,
  "peopleSuggestions": [
    {
      object (PersonSuggestion)
    }
  ],
  "contentSuggestions": [
    {
      object (ContentSuggestion)
    }
  ],
  "recentSearchSuggestions": [
    {
      object (RecentSearchSuggestion)
    }
  ]
}
欄位
querySuggestions[]

object (QuerySuggestion)

相符查詢建議的結果。結果清單會依序排列,第一個結果是熱門建議。

tailMatchTriggered

boolean

如果傳回的建議都是尾部建議,則為 True。

如要觸發尾部比對,要求中的 includeTailSuggestions 必須為 true,且不得有與完整查詢相符的建議。

peopleSuggestions[]

object (PersonSuggestion)

相符的建議人選結果。結果清單會依序排列,第一個結果是最佳建議。

contentSuggestions[]

object (ContentSuggestion)

相符內容建議的結果。結果清單會依序排列,第一個結果是最佳建議。

recentSearchSuggestions[]

object (RecentSearchSuggestion)

相符的「近期搜尋」建議結果。結果清單會依序排列,第一個結果是最佳建議。

QuerySuggestion

建議搜尋查詢。

JSON 表示法
{
  "suggestion": string,
  "completableFieldPaths": [
    string
  ],
  "dataStore": [
    string
  ],
  "score": number
}
欄位
suggestion

string

查詢的建議。

completableFieldPaths[]

string

如果建議是從可完成的欄位產生,則為做為建議來源的專屬文件欄位路徑。

只有可完成文件的模型才會填入這個欄位。

dataStore[]

string

這項建議所屬的資料儲存庫名稱。

score

number

每項建議的分數。分數範圍為 [0, 1]。

PersonSuggestion

建議人選。

JSON 表示法
{
  "suggestion": string,
  "personType": enum (PersonType),
  "document": {
    object (Document)
  },
  "dataStore": string,
  "score": number,
  "displayPhotoUri": string,
  "destinationUri": string
}
欄位
suggestion

string

查詢的建議。

personType

enum (PersonType)

人員類型。

document

object (Document)

建議中的文件資料片段。系統只會填入部分欄位。

dataStore

string

這項建議所屬的資料儲存庫名稱。

score

number

每項建議的分數。分數範圍為 [0, 1]。

displayPhotoUri

string

建議使用者的相片 URI。

destinationUri

string

建議對象的目的地 URI。

PersonType

根據來源判斷人員類型。

列舉
PERSON_TYPE_UNSPECIFIED 預設值。
CLOUD_IDENTITY 建議來自 GOOGLE_IDENTITY 來源。
THIRD_PARTY_IDENTITY 建議來自第三方身分識別來源。

ContentSuggestion

建議內容。

JSON 表示法
{
  "suggestion": string,
  "contentType": enum (ContentType),
  "document": {
    object (Document)
  },
  "dataStore": string,
  "score": number,
  "iconUri": string,
  "destinationUri": string
}
欄位
suggestion

string

查詢的建議。

contentType

enum (ContentType)

內容建議的類型。

document

object (Document)

建議中的文件資料片段。系統只會填入部分欄位。

dataStore

string

這項建議所屬的資料儲存庫名稱。

score

number

每項建議的分數。分數範圍為 [0, 1]。

iconUri

string

內容建議的圖示 URI。

destinationUri

string

內容建議的目的地 URI。

ContentType

內容建議傳回的內容類型。

列舉
CONTENT_TYPE_UNSPECIFIED 預設值。
GOOGLE_WORKSPACE 建議來自 Google Workspace 來源。
THIRD_PARTY 建議來自第三方來源。

RecentSearchSuggestion

根據最近的搜尋記錄產生的建議。

JSON 表示法
{
  "suggestion": string,
  "recentSearchTime": string,
  "score": number
}
欄位
suggestion

string

查詢的建議。

recentSearchTime

string (Timestamp format)

最近一次重新封存的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數點後位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

score

number

每項建議的分數。分數範圍為 [0, 1]。