Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

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

Overview

Represents the contents of the original request that was passed to the [ Streaming]DetectIntent call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

Returns a new instance of GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.



15138
15139
15140
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15138

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

Instance Attribute Details

#payloadHash<String,Object>

Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: "telephony": "caller_id": "+18558363987" Note: The caller ID field (caller_id) will be redacted for Trial Edition agents and populated with the caller ID in E. 164 format for Essentials Edition agents. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


15124
15125
15126
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15124

def payload
  @payload
end

#sourceString

The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers. Corresponds to the JSON property source

Returns:

  • (String)


15130
15131
15132
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15130

def source
  @source
end

#versionString

Optional. The version of the protocol used for this request. This field is AoG- specific. Corresponds to the JSON property version

Returns:

  • (String)


15136
15137
15138
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15136

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15143
15144
15145
15146
15147
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15143

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