<?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;

/**
 * Description of the custom voice to be synthesized.
 *
 * Generated from protobuf message <code>google.cloud.texttospeech.v1.CustomVoiceParams</code>
 */
class CustomVoiceParams extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the AutoML model that synthesizes the custom voice.
     *
     * Generated from protobuf field <code>string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $model = '';
    /**
     * Optional. Deprecated. The usage of the synthesized audio to be reported.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
     * @deprecated
     */
    protected $reported_usage = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $model
     *           Required. The name of the AutoML model that synthesizes the custom voice.
     *     @type int $reported_usage
     *           Optional. Deprecated. The usage of the synthesized audio to be reported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the AutoML model that synthesizes the custom voice.
     *
     * Generated from protobuf field <code>string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * Required. The name of the AutoML model that synthesizes the custom voice.
     *
     * Generated from protobuf field <code>string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->model = $var;

        return $this;
    }

    /**
     * Optional. Deprecated. The usage of the synthesized audio to be reported.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     * @deprecated
     */
    public function getReportedUsage()
    {
        @trigger_error('reported_usage is deprecated.', E_USER_DEPRECATED);
        return $this->reported_usage;
    }

    /**
     * Optional. Deprecated. The usage of the synthesized audio to be reported.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     * @deprecated
     */
    public function setReportedUsage($var)
    {
        @trigger_error('reported_usage is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\CustomVoiceParams\ReportedUsage::class);
        $this->reported_usage = $var;

        return $this;
    }

}

