Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2WebhookResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2WebhookResponse

Returns a new instance of GoogleCloudDialogflowV2WebhookResponse.



18145
18146
18147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18145

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

Instance Attribute Details

#followup_event_inputGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property followupEventInput



18113
18114
18115
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18113

def followup_event_input
  @followup_event_input
end

#fulfillment_messagesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>

Corresponds to the JSON property fulfillmentMessages



18118
18119
18120
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18118

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


18123
18124
18125
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18123

def fulfillment_text
  @fulfillment_text
end

#output_contextsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>

Corresponds to the JSON property outputContexts



18128
18129
18130
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18128

def output_contexts
  @output_contexts
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


18133
18134
18135
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18133

def payload
  @payload
end

#session_entity_typesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>

Corresponds to the JSON property sessionEntityTypes



18138
18139
18140
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18138

def session_entity_types
  @session_entity_types
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


18143
18144
18145
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18143

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18150
18151
18152
18153
18154
18155
18156
18157
18158
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18150

def update!(**args)
  @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
  @payload = args[:payload] if args.key?(:payload)
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
  @source = args[:source] if args.key?(:source)
end