<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/ad_review_center_ad_service.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * Metadata object for `BatchAllowAdReviewCenterAds` and
 * `BatchBlockAdReviewCenterAds` methods.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata</code>
 */
class BatchAdReviewCenterAdsOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The status of each failed request, keyed by the index of the corresponding
     * request in the batch request.
     *
     * Generated from protobuf field <code>map<int32, .google.rpc.Status> failed_requests = 1;</code>
     */
    private $failed_requests;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $failed_requests
     *           The status of each failed request, keyed by the index of the corresponding
     *           request in the batch request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce();
        parent::__construct($data);
    }

    /**
     * The status of each failed request, keyed by the index of the corresponding
     * request in the batch request.
     *
     * Generated from protobuf field <code>map<int32, .google.rpc.Status> failed_requests = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getFailedRequests()
    {
        return $this->failed_requests;
    }

    /**
     * The status of each failed request, keyed by the index of the corresponding
     * request in the batch request.
     *
     * Generated from protobuf field <code>map<int32, .google.rpc.Status> failed_requests = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setFailedRequests($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
        $this->failed_requests = $arr;

        return $this;
    }

}

