` can trigger a personalized welcome response. * The parameter `name` may be used by the agent in the response: * `“Hello #welcome_event.name! What can I do for you today?”`. * * Generated from protobuf message google.cloud.dialogflow.v2.EventInput */ class EventInput extends \Google\Protobuf\Internal\Message { /** * Required. The unique identifier of the event. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Optional. The collection of parameters associated with the event. * * Generated from protobuf field .google.protobuf.Struct parameters = 2; */ private $parameters = null; /** * Required. The language of this query. See [Language * Support](https://dialogflow.com/docs/languages) for a list of the * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. * * Generated from protobuf field string language_code = 3; */ private $language_code = ''; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); parent::__construct(); } /** * Required. The unique identifier of the event. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Required. The unique identifier of the event. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Optional. The collection of parameters associated with the event. * * Generated from protobuf field .google.protobuf.Struct parameters = 2; * @return \Google\Protobuf\Struct */ public function getParameters() { return $this->parameters; } /** * Optional. The collection of parameters associated with the event. * * Generated from protobuf field .google.protobuf.Struct parameters = 2; * @param \Google\Protobuf\Struct $var * @return $this */ public function setParameters($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->parameters = $var; return $this; } /** * Required. The language of this query. See [Language * Support](https://dialogflow.com/docs/languages) for a list of the * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. * * Generated from protobuf field string language_code = 3; * @return string */ public function getLanguageCode() { return $this->language_code; } /** * Required. The language of this query. See [Language * Support](https://dialogflow.com/docs/languages) for a list of the * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. * * Generated from protobuf field string language_code = 3; * @param string $var * @return $this */ public function setLanguageCode($var) { GPBUtil::checkString($var, True); $this->language_code = $var; return $this; } }