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

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

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

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