Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1WebhookResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1WebhookResponse

Returns a new instance of GoogleCloudDialogflowV2beta1WebhookResponse.



23110
23111
23112
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23110

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

Instance Attribute Details

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


23066
23067
23068
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23066

def end_interaction
  @end_interaction
end

#followup_event_inputGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1EventInput

Corresponds to the JSON property followupEventInput



23072
23073
23074
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23072

def followup_event_input
  @followup_event_input
end

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

Corresponds to the JSON property fulfillmentMessages



23077
23078
23079
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23077

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


23082
23083
23084
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23082

def fulfillment_text
  @fulfillment_text
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


23087
23088
23089
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23087

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property outputContexts



23093
23094
23095
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23093

def output_contexts
  @output_contexts
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


23098
23099
23100
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23098

def payload
  @payload
end

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

Corresponds to the JSON property sessionEntityTypes



23103
23104
23105
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23103

def session_entity_types
  @session_entity_types
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


23108
23109
23110
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23108

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 23115

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