Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2WebhookResponse

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

Returns a new instance of GoogleCloudDialogflowV2WebhookResponse.



18638
18639
18640
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18638

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

Instance Attribute Details

#followup_event_inputGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property followupEventInput



18606
18607
18608
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18606

def followup_event_input
  @followup_event_input
end

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

Corresponds to the JSON property fulfillmentMessages



18611
18612
18613
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18611

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


18616
18617
18618
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18616

def fulfillment_text
  @fulfillment_text
end

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

Corresponds to the JSON property outputContexts



18621
18622
18623
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18621

def output_contexts
  @output_contexts
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


18626
18627
18628
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18626

def payload
  @payload
end

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

Corresponds to the JSON property sessionEntityTypes



18631
18632
18633
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18631

def session_entity_types
  @session_entity_types
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


18636
18637
18638
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18636

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18643
18644
18645
18646
18647
18648
18649
18650
18651
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18643

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