Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases

Returns a new instance of GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases.



7631
7632
7633
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7631

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

Instance Attribute Details

#casesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase>

A list of cascading if-else conditions. Corresponds to the JSON property cases



7629
7630
7631
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7629

def cases
  @cases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7636
7637
7638
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7636

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