Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1FeedbackConversationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

The conversation information such as the question index and session name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1FeedbackConversationInfo

Returns a new instance of GoogleCloudDiscoveryengineV1FeedbackConversationInfo.



4969
4970
4971
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4969

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#question_indexFixnum

The index of the user input within the conversation messages. Corresponds to the JSON property questionIndex

Returns:

  • (Fixnum)


4962
4963
4964
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4962

def question_index
  @question_index
end

#sessionString

Name of the newly generated or continued session. Corresponds to the JSON property session

Returns:

  • (String)


4967
4968
4969
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4967

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4974
4975
4976
4977
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4974

def update!(**args)
  @question_index = args[:question_index] if args.key?(:question_index)
  @session = args[:session] if args.key?(:session)
end