Interface SearchRequest.ConversationalSearchSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SearchRequest.ConversationalSearchSpec, SearchRequest.ConversationalSearchSpec.Builder
Enclosing class:
SearchRequest

public static interface SearchRequest.ConversationalSearchSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    This field specifies the conversation id, which maintains the state of the conversation between client side and server side.
    com.google.protobuf.ByteString
    This field specifies the conversation id, which maintains the state of the conversation between client side and server side.
    boolean
    This field specifies whether the customer would like to do conversational search.
    This field specifies the current user answer during the conversational search.
    This field specifies the current user answer during the conversational search.
    boolean
    This field specifies the current user answer during the conversational search.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getFollowupConversationRequested

      boolean getFollowupConversationRequested()
       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.
       
      bool followup_conversation_requested = 1;
      Returns:
      The followupConversationRequested.
    • getConversationId

      String getConversationId()
       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.
       
      string conversation_id = 2;
      Returns:
      The conversationId.
    • getConversationIdBytes

      com.google.protobuf.ByteString getConversationIdBytes()
       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.
       
      string conversation_id = 2;
      Returns:
      The bytes for conversationId.
    • hasUserAnswer

      boolean hasUserAnswer()
       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.
       
      .google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
      Returns:
      Whether the userAnswer field is set.
    • getUserAnswer

       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.
       
      .google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
      Returns:
      The userAnswer.
    • getUserAnswerOrBuilder

       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.
       
      .google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;