Class: Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.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.

Defined Under Namespace

Classes: Case

Instance Attribute Summary collapse

Instance Attribute Details

#cases::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases::Case>

Returns A list of cascading if-else conditions.

Returns:



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb', line 106

class ConditionalCases
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Each case has a Boolean condition. When it is evaluated to be True, the
  # corresponding messages will be selected and evaluated recursively.
  # @!attribute [rw] condition
  #   @return [::String]
  #     The condition to activate and select this case. Empty means the
  #     condition is always true. The condition is evaluated against [form
  #     parameters][Form.parameters] or [session
  #     parameters][SessionInfo.parameters].
  #
  #     See the [conditions
  #     reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  # @!attribute [rw] case_content
  #   @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases::Case::CaseContent>]
  #     A list of case content.
  class Case
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The list of messages or conditional cases to activate for this case.
    # @!attribute [rw] message
    #   @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage]
    #     Returned message.
    # @!attribute [rw] additional_cases
    #   @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases]
    #     Additional cases to be evaluated.
    class CaseContent
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end