TextToSpeech/src/V1/ListVoicesResponse.php
public function setVoices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\TextToSpeech\V1\Voice::class);
        $this->voices = $arr;

        return $this;
    }
public function setVoices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\TextToSpeech\V1\Voice::class);
        $this->voices = $arr;

        return $this;
    }
public function setVoices ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ TextToSpeech \ V1 \ Voice :: class ) ; $ this -> voices = $ arr ; return $ this ; }
The list of voices.

Generated from protobuf field <code>repeated .google.cloud.texttospeech.v1.Voice voices = 1;</code>
@param \Google\Cloud\TextToSpeech\V1\Voice[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The list of voices .