Language/src/V1/PartOfSpeech.php
public function setAspect($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\PartOfSpeech_Aspect::class);
        $this->aspect = $var;

        return $this;
    }
public function setAspect($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\PartOfSpeech_Aspect::class);
        $this->aspect = $var;

        return $this;
    }
public function setAspect ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Language \ V1 \ PartOfSpeech_Aspect :: class ) ; $ this -> aspect = $ var ; return $ this ; }
The grammatical aspect.

Generated from protobuf field <code>.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;</code>
@param int $var
@return $this
The grammatical aspect .