<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

