Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo

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

Overview

Represents fulfillment information communicated to the webhook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo

Returns a new instance of GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo.



2893
2894
2895
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2893

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

Instance Attribute Details

#tagString

Always present. The value of the Fulfillment.tag field will be populated in this field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. Corresponds to the JSON property tag

Returns:

  • (String)


2891
2892
2893
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2891

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2898
2899
2900
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2898

def update!(**args)
  @tag = args[:tag] if args.key?(:tag)
end