<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/texttospeech/v1/cloud_tts.proto

namespace Google\Cloud\TextToSpeech\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The message returned to the client by the `ListVoices` method.
 *
 * Generated from protobuf message <code>google.cloud.texttospeech.v1.ListVoicesResponse</code>
 */
class ListVoicesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of voices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.texttospeech.v1.Voice voices = 1;</code>
     */
    private $voices;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce();
        parent::__construct();
    }

    /**
     * The list of voices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.texttospeech.v1.Voice voices = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getVoices()
    {
        return $this->voices;
    }

    /**
     * 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
     */
    public function setVoices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\TextToSpeech\V1\Voice::class);
        $this->voices = $arr;

        return $this;
    }

}

