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

namespace Google\Cloud\TextToSpeech\V1;

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

/**
 * Metadata for response returned by the `SynthesizeLongAudio` method.
 *
 * Generated from protobuf message <code>google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata</code>
 */
class SynthesizeLongAudioMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Time when the request was received.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    private $start_time = null;
    /**
     * Time of the most recent processing update.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     */
    private $last_update_time = null;
    /**
     * The progress of the most recent processing update in percentage, ie. 70.0%.
     *
     * Generated from protobuf field <code>double progress_percentage = 3;</code>
     */
    private $progress_percentage = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $start_time
     *           Time when the request was received.
     *     @type \Google\Protobuf\Timestamp $last_update_time
     *           Time of the most recent processing update.
     *     @type float $progress_percentage
     *           The progress of the most recent processing update in percentage, ie. 70.0%.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTtsLrs::initOnce();
        parent::__construct($data);
    }

    /**
     * Time when the request was received.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

    public function hasStartTime()
    {
        return isset($this->start_time);
    }

    public function clearStartTime()
    {
        unset($this->start_time);
    }

    /**
     * Time when the request was received.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->start_time = $var;

        return $this;
    }

    /**
     * Time of the most recent processing update.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getLastUpdateTime()
    {
        return $this->last_update_time;
    }

    public function hasLastUpdateTime()
    {
        return isset($this->last_update_time);
    }

    public function clearLastUpdateTime()
    {
        unset($this->last_update_time);
    }

    /**
     * Time of the most recent processing update.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setLastUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->last_update_time = $var;

        return $this;
    }

    /**
     * The progress of the most recent processing update in percentage, ie. 70.0%.
     *
     * Generated from protobuf field <code>double progress_percentage = 3;</code>
     * @return float
     */
    public function getProgressPercentage()
    {
        return $this->progress_percentage;
    }

    /**
     * The progress of the most recent processing update in percentage, ie. 70.0%.
     *
     * Generated from protobuf field <code>double progress_percentage = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setProgressPercentage($var)
    {
        GPBUtil::checkDouble($var);
        $this->progress_percentage = $var;

        return $this;
    }

}

