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

namespace Google\Ads\GoogleAds\V14\Services;

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

/**
 * Response message for
 * [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v14.services.MerchantCenterLinkService.ListMerchantCenterLinks].
 *
 * Generated from protobuf message <code>google.ads.googleads.v14.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.v14.resources.MerchantCenterLink merchant_center_links = 1;</code>
     */
    private $merchant_center_links;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V14\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\V14\Services\MerchantCenterLinkService::initOnce();
        parent::__construct($data);
    }

    /**
     * Merchant Center links available for the requested customer
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v14.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.v14.resources.MerchantCenterLink merchant_center_links = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V14\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\V14\Resources\MerchantCenterLink::class);
        $this->merchant_center_links = $arr;

        return $this;
    }

}

