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

namespace Google\Ads\AdManager\V1;

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

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

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

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

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

        return $this;
    }

}

