Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases

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



2938
2939
2940
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2938

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

Instance Attribute Details

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

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



2936
2937
2938
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2936

def cases
  @cases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2943
2944
2945
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2943

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