Skip to main content

answers

Creates, updates, deletes, gets or lists a answers resource.

Overview

Nameanswers
TypeResource
Idgoogle.discoveryengine.answers

Fields

NameDatatypeDescription
namestringImmutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
answerSkippedReasonsarrayAdditional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
answerTextstringThe textual answer.
citationsarrayCitations.
completeTimestringOutput only. Answer completed timestamp.
createTimestringOutput only. Answer creation timestamp.
queryUnderstandingInfoobjectQuery understanding information.
referencesarrayReferences.
relatedQuestionsarraySuggested related questions.
statestringThe state of the answer generation.
stepsarrayAnswer generation steps.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_collections_data_stores_sessions_answers_getSELECTanswersId, collectionsId, dataStoresId, locationsId, projectsId, sessionsIdGets a Answer.
projects_locations_collections_engines_sessions_answers_getSELECTanswersId, collectionsId, enginesId, locationsId, projectsId, sessionsIdGets a Answer.
projects_locations_data_stores_sessions_answers_getSELECTanswersId, dataStoresId, locationsId, projectsId, sessionsIdGets a Answer.

SELECT examples

Gets a Answer.

SELECT
name,
answerSkippedReasons,
answerText,
citations,
completeTime,
createTime,
queryUnderstandingInfo,
references,
relatedQuestions,
state,
steps
FROM google.discoveryengine.answers
WHERE answersId = '{{ answersId }}'
AND dataStoresId = '{{ dataStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sessionsId = '{{ sessionsId }}';