Session matching a search query in SessionService.SearchSessions
.
JSON representation |
---|
{
"session": string,
"sessionDisplayName": string,
"matchedTurns": [
{
object ( |
Fields | |
---|---|
session |
The session resource name. Format: |
sessionDisplayName |
Output only. Display name of the session. |
matchedTurns[] |
Output only. The turns within the session that matched the query. May be empty. |
createTime |
Output only. The time when the session was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the session was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
starred |
Output only. Whether the session is starred by the user. |
TurnResult
A turn within a session that matched the query.
JSON representation |
---|
{
"turnId": string,
"textContent": string,
"snippets": [
{
object ( |
Fields | |
---|---|
turnId |
Output only. Unique id of the turn that matched. |
textContent |
Output only. The full text content of the turn. |
snippets[] |
Output only. The snippet(s) of the turn that matched the query. May be absent. |
Snippet
Represents a snippet of text from a turn, with highlight ranges.
JSON representation |
---|
{
"snippetText": string,
"highlights": [
{
object ( |
Fields | |
---|---|
snippetText |
Output only. The text of the snippet. |
highlights[] |
Output only. The highlights within the snippet matching the query. May be empty. |
Highlight
Represents a range of text within a string. Indices are 1-based and inclusive, so for example if the snippet text is "Google Cloud Storage", startIndex is 18, and endIndex is 22, the highlighted text is "Cloud".
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer } |
Fields | |
---|---|
startIndex |
Output only. The index of the first character of the highlight, inclusive. |
endIndex |
Output only. The index of the last character of the highlight, inclusive. |