Query

ユーザーが入力したクエリを定義します。

JSON 表現
{
  "queryId": string,
  "createTime": string,
  "parts": [
    {
      object (QueryPart)
    }
  ],

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "text": string
  // End of mutually exclusive fields.
}
フィールド
queryId

string

出力専用。クエリの一意の ID。

createTime

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"

parts[]

object (QueryPart)

クエリ コンテンツの部分。

コンテンツをクエリします。相互に排他的なフィールドのリストは次のとおりです。レスポンスで設定されるフィールドは 1 つだけです。
text

string

書式なしテキスト。

相互に排他的なフィールドの終わり。

QueryPart

クエリを表すために使用される、コンテンツの一部または全体を表します。クエリは複数の部分で構成できます。

JSON 表現
{
  "mimeType": string,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "text": string,
  "uiJsonPayload": string,
  "personReference": {
    object (PersonReference)
  },
  "driveDocumentReference": {
    object (DriveDocumentReference)
  },
  "documentReference": {
    object (DocumentReference)
  }
  // End of mutually exclusive fields.
}
フィールド
mimeType

string

省略可。データの IANA 標準 MIME タイプ。https://www.iana.org/assignments/media-types/media-types.xhtml をご覧ください。このフィールドは省略可能です。設定されていない場合、「data」フィールドのデフォルトの MIME タイプは「text/plain」と見なされます。

クエリ部分のペイロード。相互に排他的なフィールドのリストは次のとおりです。レスポンスで設定されるフィールドは 1 つだけです。
text

string

テキスト コンテンツ。

uiJsonPayload

string

このフィールドは、JSON 形式の UI メッセージであることが想定されています。2026 年第 1 四半期現在、uiJsonPayload は A2UI メッセージでのみサポートされています。

personReference

object (PersonReference)

人物への参照。

driveDocumentReference

object (DriveDocumentReference)

Google ドライブ ドキュメントへの参照。

documentReference

object (DocumentReference)

その他の VAIS Document 参照。

相互に排他的なフィールドの終わり。

PersonReference

人物の参照を表します。

JSON 表現
{
  "documentName": string,
  "personId": string,
  "email": string,
  "displayName": string,
  "displayPhotoUri": string,
  "destinationUri": string,
  "fileId": string
}
フィールド
documentName

string

人物の完全なリソース名。形式: projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*

personId

string

人物の人物 ID。

email

string

人物のメールアドレス。

displayName

string

人物の表示名。

displayPhotoUri

string

人物の表示写真の URL。

destinationUri

string

人物の宛先の URI。

fileId

string

出力専用。セッション コンテキスト ファイルに保存されている人物データのファイル ID。

DriveDocumentReference

Google ドライブ ドキュメントの参照を表します。

JSON 表現
{
  "driveId": string,
  "documentName": string,
  "displayTitle": string,
  "destinationUri": string,
  "iconUri": string,
  "fileId": string
}
フィールド
driveId

string

ドキュメントのドライブ ID。

documentName

string

ドキュメントの完全なリソース名。形式: projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*

displayTitle

string

参照の表示タイトル。

destinationUri

string

参照の宛先の URI。

iconUri

string

ドライブ ドキュメントの参照のアイコンの URI。

fileId

string

出力専用。セッション コンテキスト ファイルに保存されているドライブ ドキュメント データのファイル ID。

DocumentReference

ドキュメントの参照を表します。

JSON 表現
{
  "documentName": string,
  "displayTitle": string,
  "destinationUri": string,
  "iconUri": string,
  "fileId": string,
  "urlForConnector": string
}
フィールド
documentName

string

ドキュメントの完全なリソース名。形式: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{documentId}

displayTitle

string

参照の表示タイトル。

destinationUri

string

参照の宛先の URI。

iconUri

string

参照のアイコンの URI。

fileId

string

出力専用。セッション コンテキスト ファイルに保存されているドキュメント データのファイル ID。

urlForConnector

string

入力専用。連携検索によって返されるドキュメントの urlForConnector。