Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2WebhookResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2WebhookResponse

Returns a new instance of GoogleCloudDialogflowV2WebhookResponse.



10896
10897
10898
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10896

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

Instance Attribute Details

#followup_event_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property followupEventInput



10864
10865
10866
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10864

def followup_event_input
  @followup_event_input
end

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

Corresponds to the JSON property fulfillmentMessages



10869
10870
10871
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10869

def fulfillment_messages
  @fulfillment_messages
end

#fulfillment_textString

Corresponds to the JSON property fulfillmentText

Returns:

  • (String)


10874
10875
10876
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10874

def fulfillment_text
  @fulfillment_text
end

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

Corresponds to the JSON property outputContexts



10879
10880
10881
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10879

def output_contexts
  @output_contexts
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


10884
10885
10886
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10884

def payload
  @payload
end

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

Corresponds to the JSON property sessionEntityTypes



10889
10890
10891
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10889

def session_entity_types
  @session_entity_types
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


10894
10895
10896
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10894

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10901
10902
10903
10904
10905
10906
10907
10908
10909
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10901

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