View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec (google_api_retail v0.19.1)

This field specifies all conversational related parameters addition to traditional retail search.

Attributes

  • conversationId (type: String.t, default: nil) - This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResult.conversation_id. For the initial request, this should be empty.
  • followupConversationRequested (type: boolean(), default: nil) - This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.
  • userAnswer (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec{
    conversationId: String.t() | nil,
    followupConversationRequested: boolean() | nil,
    userAnswer:
      GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer.t()
      | nil
  }

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.