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

namespace Google\Cloud\AutoMl\V1;

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

/**
 * Result of the Batch Predict. This message is returned in
 * [response][google.longrunning.Operation.response] of the operation returned
 * by the
 * [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
 *
 * Generated from protobuf message <code>google.cloud.automl.v1.BatchPredictResult</code>
 */
class BatchPredictResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Additional domain-specific prediction response metadata.
     * *  For Image Object Detection:
     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
     *      image could have been returned.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 1;</code>
     */
    private $metadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $metadata
     *           Additional domain-specific prediction response metadata.
     *           *  For Image Object Detection:
     *            `max_bounding_box_count` - (int64) At most that many bounding boxes per
     *                image could have been returned.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1\PredictionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Additional domain-specific prediction response metadata.
     * *  For Image Object Detection:
     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
     *      image could have been returned.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    /**
     * Additional domain-specific prediction response metadata.
     * *  For Image Object Detection:
     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
     *      image could have been returned.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setMetadata($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->metadata = $arr;

        return $this;
    }

}

