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

namespace Google\Ads\AdManager\V1;

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

/**
 * Response object for `BatchCreatePlacements` method.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.BatchCreatePlacementsResponse</code>
 */
class BatchCreatePlacementsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The `Placement` objects created.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.Placement placements = 1;</code>
     */
    private $placements;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\AdManager\V1\Placement[] $placements
     *           The `Placement` objects created.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce();
        parent::__construct($data);
    }

    /**
     * The `Placement` objects created.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.Placement placements = 1;</code>
     * @return RepeatedField<\Google\Ads\AdManager\V1\Placement>
     */
    public function getPlacements()
    {
        return $this->placements;
    }

    /**
     * The `Placement` objects created.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.Placement placements = 1;</code>
     * @param \Google\Ads\AdManager\V1\Placement[] $var
     * @return $this
     */
    public function setPlacements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class);
        $this->placements = $arr;

        return $this;
    }

}

