Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2OriginalDetectIntentRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2OriginalDetectIntentRequest

Returns a new instance of GoogleCloudDialogflowV2OriginalDetectIntentRequest



1211
1212
1213
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1211

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

Instance Attribute Details

#payloadHash<String,Object>

Optional. This field is set to the value of QueryParameters.payload field passed in the request. This field is used for the telephony gateway. It should have a structure similar to this JSON message:

`
"telephony": `
"caller_id": "+18558363987"
`

Note: The caller ID field (caller_id) will be in E.164 format and is not supported for standard tier agents. When the telephony gateway is used with a standard tier agent the caller_id field above will have a value of REDACTED_IN_STANDARD_TIER_AGENT. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


1197
1198
1199
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1197

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)


1203
1204
1205
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1203

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)


1209
1210
1211
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1209

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1216

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