Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SummarizationContext

Returns a new instance of GoogleCloudDialogflowV2SummarizationContext.



16192
16193
16194
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16192

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

Instance Attribute Details

#few_shot_examplesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample>

Corresponds to the JSON property fewShotExamples



16175
16176
16177
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16175

def few_shot_examples
  @few_shot_examples
end

#output_language_codeString

Corresponds to the JSON property outputLanguageCode

Returns:

  • (String)


16180
16181
16182
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16180

def output_language_code
  @output_language_code
end

#summarization_sectionsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection>

Corresponds to the JSON property summarizationSections



16185
16186
16187
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16185

def summarization_sections
  @summarization_sections
end

#versionString

Corresponds to the JSON property version

Returns:

  • (String)


16190
16191
16192
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16190

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16197
16198
16199
16200
16201
16202
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16197

def update!(**args)
  @few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
  @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
  @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
  @version = args[:version] if args.key?(:version)
end