<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/speech/v2/cloud_speech.proto

namespace Google\Cloud\Speech\V2;

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

/**
 * Operation metadata for
 * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
 *
 * Generated from protobuf message <code>google.cloud.speech.v2.BatchRecognizeMetadata</code>
 */
class BatchRecognizeMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Map from provided filename to the transcription metadata for that file.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;</code>
     */
    private $transcription_metadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $transcription_metadata
     *           Map from provided filename to the transcription metadata for that file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Speech\V2\CloudSpeech::initOnce();
        parent::__construct($data);
    }

    /**
     * Map from provided filename to the transcription metadata for that file.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getTranscriptionMetadata()
    {
        return $this->transcription_metadata;
    }

    /**
     * Map from provided filename to the transcription metadata for that file.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setTranscriptionMetadata($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Speech\V2\BatchRecognizeTranscriptionMetadata::class);
        $this->transcription_metadata = $arr;

        return $this;
    }

}

