Google Cloud Dialogflow V2 Client - Class SetAgentRequest (1.4.0)

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

The request message for Agents.SetAgent.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ agent Google\Cloud\Dialogflow\V2\Agent

Required. The agent to update.

↳ update_mask Google\Protobuf\FieldMask

Optional. The mask to control which fields get updated.

getAgent

Required. The agent to update.

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

hasAgent

clearAgent

setAgent

Required. The agent to update.

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

getUpdateMask

Optional. The mask to control which fields get updated.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. The mask to control which fields get updated.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this