Class UserAnswer (1.22.0)

UserAnswer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
text_answer str
This field specifies the incremental input text from the user during the conversational search. This field is a member of oneof_ type.
selected_answer google.cloud.retail_v2.types.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][]. This field is a member of oneof_ type.

Classes

SelectedAnswer

SelectedAnswer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

This field specifies the selected answers during the conversational search.