google.cloud.dialogflow.v2.CreateContextRequest */ class CreateContextRequest extends \Google\Protobuf\Internal\Message { /** * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string parent = 1; */ private $parent = ''; /** * Required. The context to create. * * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; */ private $context = null; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); parent::__construct(); } /** * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string parent = 1; * @return string */ public function getParent() { return $this->parent; } /** * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string parent = 1; * @param string $var * @return $this */ public function setParent($var) { GPBUtil::checkString($var, True); $this->parent = $var; return $this; } /** * Required. The context to create. * * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; * @return \Google\Cloud\Dialogflow\V2\Context */ public function getContext() { return $this->context; } /** * Required. The context to create. * * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; * @param \Google\Cloud\Dialogflow\V2\Context $var * @return $this */ public function setContext($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Context::class); $this->context = $var; return $this; } }