_simpleRequest('/google.cloud.dialogflow.v2.Contexts/ListContexts', $argument, ['\Google\Cloud\Dialogflow\V2\ListContextsResponse', 'decode'], $metadata, $options); } /** * Retrieves the specified context. * @param \Google\Cloud\Dialogflow\V2\GetContextRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function GetContext(\Google\Cloud\Dialogflow\V2\GetContextRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/GetContext', $argument, ['\Google\Cloud\Dialogflow\V2\Context', 'decode'], $metadata, $options); } /** * Creates a context. * @param \Google\Cloud\Dialogflow\V2\CreateContextRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function CreateContext(\Google\Cloud\Dialogflow\V2\CreateContextRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/CreateContext', $argument, ['\Google\Cloud\Dialogflow\V2\Context', 'decode'], $metadata, $options); } /** * Updates the specified context. * @param \Google\Cloud\Dialogflow\V2\UpdateContextRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function UpdateContext(\Google\Cloud\Dialogflow\V2\UpdateContextRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/UpdateContext', $argument, ['\Google\Cloud\Dialogflow\V2\Context', 'decode'], $metadata, $options); } /** * Deletes the specified context. * @param \Google\Cloud\Dialogflow\V2\DeleteContextRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function DeleteContext(\Google\Cloud\Dialogflow\V2\DeleteContextRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/DeleteContext', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'], $metadata, $options); } /** * Deletes all active contexts in the specified session. * @param \Google\Cloud\Dialogflow\V2\DeleteAllContextsRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function DeleteAllContexts(\Google\Cloud\Dialogflow\V2\DeleteAllContextsRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'], $metadata, $options); } }