google.cloud.dialogflow.v2.Intent.Parameter */ class Intent_Parameter extends \Google\Protobuf\Internal\Message { /** * The unique identifier of this parameter. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Required. The name of the parameter. * * Generated from protobuf field string display_name = 2; */ private $display_name = ''; /** * Optional. The definition of the parameter value. It can be: * - a constant string, * - a parameter value defined as `$parameter_name`, * - an original parameter value defined as `$parameter_name.original`, * - a parameter value from some context defined as * `#context_name.parameter_name`. * * Generated from protobuf field string value = 3; */ private $value = ''; /** * Optional. The default value to use when the `value` yields an empty * result. * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * * Generated from protobuf field string default_value = 4; */ private $default_value = ''; /** * Optional. The name of the entity type, prefixed with `@`, that * describes values of the parameter. If the parameter is * required, this must be provided. * * Generated from protobuf field string entity_type_display_name = 5; */ private $entity_type_display_name = ''; /** * Optional. Indicates whether the parameter is required. That is, * whether the intent cannot be completed without collecting the parameter * value. * * Generated from protobuf field bool mandatory = 6; */ private $mandatory = false; /** * Optional. The collection of prompts that the agent can present to the * user in order to collect value for the parameter. * * Generated from protobuf field repeated string prompts = 7; */ private $prompts; /** * Optional. Indicates whether the parameter represents a list of values. * * Generated from protobuf field bool is_list = 8; */ private $is_list = false; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); parent::__construct(); } /** * The unique identifier of this parameter. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The unique identifier of this parameter. * * 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; } /** * Required. The name of the parameter. * * Generated from protobuf field string display_name = 2; * @return string */ public function getDisplayName() { return $this->display_name; } /** * Required. The name of the parameter. * * Generated from protobuf field string display_name = 2; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } /** * Optional. The definition of the parameter value. It can be: * - a constant string, * - a parameter value defined as `$parameter_name`, * - an original parameter value defined as `$parameter_name.original`, * - a parameter value from some context defined as * `#context_name.parameter_name`. * * Generated from protobuf field string value = 3; * @return string */ public function getValue() { return $this->value; } /** * Optional. The definition of the parameter value. It can be: * - a constant string, * - a parameter value defined as `$parameter_name`, * - an original parameter value defined as `$parameter_name.original`, * - a parameter value from some context defined as * `#context_name.parameter_name`. * * Generated from protobuf field string value = 3; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } /** * Optional. The default value to use when the `value` yields an empty * result. * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * * Generated from protobuf field string default_value = 4; * @return string */ public function getDefaultValue() { return $this->default_value; } /** * Optional. The default value to use when the `value` yields an empty * result. * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * * Generated from protobuf field string default_value = 4; * @param string $var * @return $this */ public function setDefaultValue($var) { GPBUtil::checkString($var, True); $this->default_value = $var; return $this; } /** * Optional. The name of the entity type, prefixed with `@`, that * describes values of the parameter. If the parameter is * required, this must be provided. * * Generated from protobuf field string entity_type_display_name = 5; * @return string */ public function getEntityTypeDisplayName() { return $this->entity_type_display_name; } /** * Optional. The name of the entity type, prefixed with `@`, that * describes values of the parameter. If the parameter is * required, this must be provided. * * Generated from protobuf field string entity_type_display_name = 5; * @param string $var * @return $this */ public function setEntityTypeDisplayName($var) { GPBUtil::checkString($var, True); $this->entity_type_display_name = $var; return $this; } /** * Optional. Indicates whether the parameter is required. That is, * whether the intent cannot be completed without collecting the parameter * value. * * Generated from protobuf field bool mandatory = 6; * @return bool */ public function getMandatory() { return $this->mandatory; } /** * Optional. Indicates whether the parameter is required. That is, * whether the intent cannot be completed without collecting the parameter * value. * * Generated from protobuf field bool mandatory = 6; * @param bool $var * @return $this */ public function setMandatory($var) { GPBUtil::checkBool($var); $this->mandatory = $var; return $this; } /** * Optional. The collection of prompts that the agent can present to the * user in order to collect value for the parameter. * * Generated from protobuf field repeated string prompts = 7; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPrompts() { return $this->prompts; } /** * Optional. The collection of prompts that the agent can present to the * user in order to collect value for the parameter. * * Generated from protobuf field repeated string prompts = 7; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPrompts($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->prompts = $arr; return $this; } /** * Optional. Indicates whether the parameter represents a list of values. * * Generated from protobuf field bool is_list = 8; * @return bool */ public function getIsList() { return $this->is_list; } /** * Optional. Indicates whether the parameter represents a list of values. * * Generated from protobuf field bool is_list = 8; * @param bool $var * @return $this */ public function setIsList($var) { GPBUtil::checkBool($var); $this->is_list = $var; return $this; } }