Google Cloud Dialogflow V2 Client - Class OriginalDetectIntentRequest (1.0.1)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class OriginalDetectIntentRequest.

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

Generated from protobuf message google.cloud.dialogflow.v2.OriginalDetectIntentRequest

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ source
string

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

↳ version
string

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

↳ payload
Google\Protobuf\Struct

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.

getSource

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

Generated from protobuf field string source = 1;

Returns
Type
Description
string

setSource

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

Generated from protobuf field string source = 1;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getVersion

Optional. The version of the protocol used for this request.

This field is AoG-specific.

Generated from protobuf field string version = 2;

Returns
Type
Description
string

setVersion

Optional. The version of the protocol used for this request.

This field is AoG-specific.

Generated from protobuf field string version = 2;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPayload

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.

Generated from protobuf field .google.protobuf.Struct payload = 3;

Returns
Type
Description
Google\Protobuf\Struct|null

hasPayload

clearPayload

setPayload

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.

Generated from protobuf field .google.protobuf.Struct payload = 3;

Parameter
Name
Description
var
Google\Protobuf\Struct
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: