Language/src/V1/Token.php
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Language\V1\TextSpan::class);
        $this->text = $var;

        return $this;
    }
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Language\V1\TextSpan::class);
        $this->text = $var;

        return $this;
    }
public function setText ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Language \ V1 \ TextSpan :: class ) ; $ this -> text = $ var ; return $ this ; }
The token text.

Generated from protobuf field <code>.google.cloud.language.v1.TextSpan text = 1;</code>
@param \Google\Cloud\Language\V1\TextSpan $var
@return $this
The token text .