Google Cloud Dialogflow V2 Client - Class UpdateContextRequest (1.0.1)

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

The request message for Contexts.UpdateContext.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ context Google\Cloud\Dialogflow\V2\Context

Required. The context to update.

↳ update_mask Google\Protobuf\FieldMask

Optional. The mask to control which fields get updated.

getContext

Required. The context to update.

Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1 [(.google.api.field_behavior) = REQUIRED];

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

hasContext

clearContext

setContext

Required. The context to update.

Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1 [(.google.api.field_behavior) = REQUIRED];

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

getUpdateMask

Optional. The mask to control which fields get updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. The mask to control which fields get updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

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