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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Audio transcription in Server Content.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.Transcription</code>
 */
class Transcription extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Transcription text.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $text = '';
    /**
     * Optional. The bool indicates the end of the transcription.
     *
     * Generated from protobuf field <code>bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $finished = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text
     *           Optional. Transcription text.
     *     @type bool $finished
     *           Optional. The bool indicates the end of the transcription.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Transcription text.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Optional. Transcription text.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $var;

        return $this;
    }

    /**
     * Optional. The bool indicates the end of the transcription.
     *
     * Generated from protobuf field <code>bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getFinished()
    {
        return $this->finished;
    }

    /**
     * Optional. The bool indicates the end of the transcription.
     *
     * Generated from protobuf field <code>bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setFinished($var)
    {
        GPBUtil::checkBool($var);
        $this->finished = $var;

        return $this;
    }

}

