<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v16/common/feed_item_set_filter_type_infos.proto

namespace Google\Ads\GoogleAds\V16\Common;

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

/**
 * Represents a filter on affiliate locations in a FeedItemSet.
 * Only applicable if the parent Feed of the FeedItemSet is an
 * AFFILIATE_LOCATION feed.
 *
 * Generated from protobuf message <code>google.ads.googleads.v16.common.DynamicAffiliateLocationSetFilter</code>
 */
class DynamicAffiliateLocationSetFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Used to filter affiliate locations by chain ids. Only affiliate locations
     * that belong to the specified chain(s) will be added to the FeedItemSet.
     *
     * Generated from protobuf field <code>repeated int64 chain_ids = 1;</code>
     */
    private $chain_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $chain_ids
     *           Used to filter affiliate locations by chain ids. Only affiliate locations
     *           that belong to the specified chain(s) will be added to the FeedItemSet.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V16\Common\FeedItemSetFilterTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * Used to filter affiliate locations by chain ids. Only affiliate locations
     * that belong to the specified chain(s) will be added to the FeedItemSet.
     *
     * Generated from protobuf field <code>repeated int64 chain_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getChainIds()
    {
        return $this->chain_ids;
    }

    /**
     * Used to filter affiliate locations by chain ids. Only affiliate locations
     * that belong to the specified chain(s) will be added to the FeedItemSet.
     *
     * Generated from protobuf field <code>repeated int64 chain_ids = 1;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setChainIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->chain_ids = $arr;

        return $this;
    }

}

