google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part
*/
class Intent_TrainingPhrase_Part extends \Google\Protobuf\Internal\Message
{
/**
* Required. The text corresponding to the example or template,
* if there are no annotations. For
* annotated examples, it is the text for one of the example's parts.
*
* Generated from protobuf field string text = 1;
*/
private $text = '';
/**
* Optional. The entity type name prefixed with `@`. This field is
* required for the annotated part of the text and applies only to
* examples.
*
* Generated from protobuf field string entity_type = 2;
*/
private $entity_type = '';
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
*
* Generated from protobuf field string alias = 3;
*/
private $alias = '';
/**
* Optional. Indicates whether the text was manually annotated by the
* developer.
*
* Generated from protobuf field bool user_defined = 4;
*/
private $user_defined = false;
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* Required. The text corresponding to the example or template,
* if there are no annotations. For
* annotated examples, it is the text for one of the example's parts.
*
* Generated from protobuf field string text = 1;
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Required. The text corresponding to the example or template,
* if there are no annotations. For
* annotated examples, it is the text for one of the example's parts.
*
* Generated from protobuf field string text = 1;
* @param string $var
* @return $this
*/
public function setText($var)
{
GPBUtil::checkString($var, True);
$this->text = $var;
return $this;
}
/**
* Optional. The entity type name prefixed with `@`. This field is
* required for the annotated part of the text and applies only to
* examples.
*
* Generated from protobuf field string entity_type = 2;
* @return string
*/
public function getEntityType()
{
return $this->entity_type;
}
/**
* Optional. The entity type name prefixed with `@`. This field is
* required for the annotated part of the text and applies only to
* examples.
*
* Generated from protobuf field string entity_type = 2;
* @param string $var
* @return $this
*/
public function setEntityType($var)
{
GPBUtil::checkString($var, True);
$this->entity_type = $var;
return $this;
}
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
*
* Generated from protobuf field string alias = 3;
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
*
* Generated from protobuf field string alias = 3;
* @param string $var
* @return $this
*/
public function setAlias($var)
{
GPBUtil::checkString($var, True);
$this->alias = $var;
return $this;
}
/**
* Optional. Indicates whether the text was manually annotated by the
* developer.
*
* Generated from protobuf field bool user_defined = 4;
* @return bool
*/
public function getUserDefined()
{
return $this->user_defined;
}
/**
* Optional. Indicates whether the text was manually annotated by the
* developer.
*
* Generated from protobuf field bool user_defined = 4;
* @param bool $var
* @return $this
*/
public function setUserDefined($var)
{
GPBUtil::checkBool($var);
$this->user_defined = $var;
return $this;
}
}