Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary

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

Overview

Generated summary for a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary

Returns a new instance of GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary.



8968
8969
8970
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8968

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

Instance Attribute Details

#textString

The summary content that is concatenated into one string. Corresponds to the JSON property text

Returns:

  • (String)


8959
8960
8961
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8959

def text
  @text
end

#text_sectionsHash<String,String>

The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. Corresponds to the JSON property textSections

Returns:

  • (Hash<String,String>)


8966
8967
8968
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8966

def text_sections
  @text_sections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8973
8974
8975
8976
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8973

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