Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent

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

Overview

The list of messages or conditional cases to activate for this case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent

Returns a new instance of GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent.



1371
1372
1373
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 1371

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

Instance Attribute Details

#additional_casesGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3FulfillmentConditionalCases

A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored. Corresponds to the JSON property additionalCases



1353
1354
1355
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 1353

def additional_cases
  @additional_cases
end

#messageGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessage

Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. Corresponds to the JSON property message



1369
1370
1371
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 1369

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1376
1377
1378
1379
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 1376

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