Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases

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



2964
2965
2966
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2964

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

Instance Attribute Details

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

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



2962
2963
2964
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2962

def cases
  @cases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2969
2970
2971
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2969

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