Google Cloud Dialogflow V2 Client - Class AutomatedAgentReply (1.7.2)

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

Represents a response from an automated agent.

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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ detect_intent_response Google\Cloud\Dialogflow\V2\DetectIntentResponse

Response of the Dialogflow Sessions.DetectIntent call.

↳ automated_agent_reply_type int

AutomatedAgentReply type.

↳ allow_cancellation bool

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

↳ cx_current_page string

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

getDetectIntentResponse

Response of the Dialogflow Sessions.DetectIntent call.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\DetectIntentResponse|null

hasDetectIntentResponse

clearDetectIntentResponse

setDetectIntentResponse

Response of the Dialogflow Sessions.DetectIntent call.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\DetectIntentResponse
Returns
TypeDescription
$this

getAutomatedAgentReplyType

AutomatedAgentReply type.

Returns
TypeDescription
int

setAutomatedAgentReplyType

AutomatedAgentReply type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAllowCancellation

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

Returns
TypeDescription
bool

setAllowCancellation

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCxCurrentPage

The unique identifier of the current Dialogflow CX conversation page.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

Returns
TypeDescription
string

setCxCurrentPage

The unique identifier of the current Dialogflow CX conversation page.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this