<?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 configuration of Voice Clone feature.
 *
 * Generated from protobuf message <code>google.cloud.texttospeech.v1.VoiceCloneParams</code>
 */
class VoiceCloneParams extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Created by GenerateVoiceCloningKey.
     *
     * Generated from protobuf field <code>string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $voice_cloning_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $voice_cloning_key
     *           Required. Created by GenerateVoiceCloningKey.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Created by GenerateVoiceCloningKey.
     *
     * Generated from protobuf field <code>string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getVoiceCloningKey()
    {
        return $this->voice_cloning_key;
    }

    /**
     * Required. Created by GenerateVoiceCloningKey.
     *
     * Generated from protobuf field <code>string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setVoiceCloningKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->voice_cloning_key = $var;

        return $this;
    }

}

