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
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ context |
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.
| Returns | |
|---|---|
| Type | Description |
Context|null |
|
hasContext
clearContext
setContext
Required. The context to update.
| Parameter | |
|---|---|
| Name | Description |
var |
Context
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateMask
Optional. The mask to control which fields get updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\FieldMask|null |
|
hasUpdateMask
clearUpdateMask
setUpdateMask
Optional. The mask to control which fields get updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\FieldMask
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
context |
Context
Required. The context to update. |
updateMask |
Google\Protobuf\FieldMask
Optional. The mask to control which fields get updated. |
| Returns | |
|---|---|
| Type | Description |
UpdateContextRequest |
|