Google Cloud Dialogflow V2 Client - Class AutomatedAgentReply (1.0.1)

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

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ detect_intent_response
↳ 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.

Generated from protobuf field .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;

Returns
Type
Description

hasDetectIntentResponse

clearDetectIntentResponse

setDetectIntentResponse

Response of the Dialogflow Sessions.DetectIntent call.

Generated from protobuf field .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;

Parameter
Name
Description
Returns
Type
Description
$this

getAutomatedAgentReplyType

AutomatedAgentReply type.

Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
Type
Description
int

setAutomatedAgentReplyType

AutomatedAgentReply type.

Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Parameter
Name
Description
var
int
Returns
Type
Description
$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.

Generated from protobuf field bool allow_cancellation = 8;

Returns
Type
Description
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.

Generated from protobuf field bool allow_cancellation = 8;

Parameter
Name
Description
var
bool
Returns
Type
Description
$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> .

Generated from protobuf field string cx_current_page = 11;

Returns
Type
Description
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> .

Generated from protobuf field string cx_current_page = 11;

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: