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

namespace Google\Cloud\Ces\V1;

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

/**
 * Speech recognition result for the audio input.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.RecognitionResult</code>
 */
class RecognitionResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Concatenated user speech segments captured during the current
     * turn.
     *
     * Generated from protobuf field <code>string transcript = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $transcript = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $transcript
     *           Optional. Concatenated user speech segments captured during the current
     *           turn.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\SessionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Concatenated user speech segments captured during the current
     * turn.
     *
     * Generated from protobuf field <code>string transcript = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getTranscript()
    {
        return $this->transcript;
    }

    /**
     * Optional. Concatenated user speech segments captured during the current
     * turn.
     *
     * Generated from protobuf field <code>string transcript = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setTranscript($var)
    {
        GPBUtil::checkString($var, True);
        $this->transcript = $var;

        return $this;
    }

}

