Dialogflow/src/V2/Intent/TrainingPhrase.php
public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_TrainingPhrase_Type::class);
        $this->type = $var;

        return $this;
    }
public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_TrainingPhrase_Type::class);
        $this->type = $var;

        return $this;
    }
public function setType ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Dialogflow \ V2 \ Intent_TrainingPhrase_Type :: class ) ; $ this -> type = $ var ; return $ this ; }
Required. The type of the training phrase.

Generated from protobuf field <code>.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2;</code>
@param int $var
@return $this
Required . The type of the training phrase .