Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentConditionalCases

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowCxV3FulfillmentConditionalCases

Returns a new instance of GoogleCloudDialogflowCxV3FulfillmentConditionalCases.



657
658
659
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 657

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

Instance Attribute Details

#casesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase>

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



655
656
657
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 655

def cases
  @cases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



662
663
664
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 662

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