<?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. The usage of the synthesized audio to be reported.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $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. 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. The usage of the synthesized audio to be reported.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getReportedUsage()
    {
        return $this->reported_usage;
    }

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

        return $this;
    }

}

