Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1WebhookResponse

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) ⇒ GoogleCloudDialogflowV2beta1WebhookResponse

Returns a new instance of GoogleCloudDialogflowV2beta1WebhookResponse.



22189
22190
22191
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22189

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

Instance Attribute Details

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


22145
22146
22147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22145

def end_interaction
  @end_interaction
end

#followup_event_inputGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput

Corresponds to the JSON property followupEventInput



22151
22152
22153
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22151

def followup_event_input
  @followup_event_input
end

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

Corresponds to the JSON property fulfillmentMessages



22156
22157
22158
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22156

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


22161
22162
22163
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22161

def fulfillment_text
  @fulfillment_text
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


22166
22167
22168
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22166

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property outputContexts



22172
22173
22174
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22172

def output_contexts
  @output_contexts
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


22177
22178
22179
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22177

def payload
  @payload
end

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

Corresponds to the JSON property sessionEntityTypes



22182
22183
22184
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22182

def session_entity_types
  @session_entity_types
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


22187
22188
22189
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22187

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22194

def update!(**args)
  @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
  @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)
  @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
  @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