<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v11/services/merchant_center_link_service.proto

namespace Google\Ads\GoogleAds\V11\Services;

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

/**
 * Response message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v11.services.MerchantCenterLinkService.ListMerchantCenterLinks].
 *
 * Generated from protobuf message <code>google.ads.googleads.v11.services.ListMerchantCenterLinksResponse</code>
 */
class ListMerchantCenterLinksResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Merchant Center links available for the requested customer
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.resources.MerchantCenterLink merchant_center_links = 1;</code>
     */
    private $merchant_center_links;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V11\Resources\MerchantCenterLink[]|\Google\Protobuf\Internal\RepeatedField $merchant_center_links
     *           Merchant Center links available for the requested customer
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Services\MerchantCenterLinkService::initOnce();
        parent::__construct($data);
    }

    /**
     * Merchant Center links available for the requested customer
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.resources.MerchantCenterLink merchant_center_links = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMerchantCenterLinks()
    {
        return $this->merchant_center_links;
    }

    /**
     * Merchant Center links available for the requested customer
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.resources.MerchantCenterLink merchant_center_links = 1;</code>
     * @param \Google\Ads\GoogleAds\V11\Resources\MerchantCenterLink[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMerchantCenterLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Resources\MerchantCenterLink::class);
        $this->merchant_center_links = $arr;

        return $this;
    }

}

