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

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

}

