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

namespace Google\Ads\GoogleAds\V11\Common;

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

/**
 * Metadata for customer match user list.
 *
 * Generated from protobuf message <code>google.ads.googleads.v11.common.CustomerMatchUserListMetadata</code>
 */
class CustomerMatchUserListMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of remarketing list to update data.
     * Required for job of CUSTOMER_MATCH_USER_LIST type.
     *
     * Generated from protobuf field <code>optional string user_list = 2;</code>
     */
    protected $user_list = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $user_list
     *           The resource name of remarketing list to update data.
     *           Required for job of CUSTOMER_MATCH_USER_LIST type.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Common\OfflineUserData::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of remarketing list to update data.
     * Required for job of CUSTOMER_MATCH_USER_LIST type.
     *
     * Generated from protobuf field <code>optional string user_list = 2;</code>
     * @return string
     */
    public function getUserList()
    {
        return isset($this->user_list) ? $this->user_list : '';
    }

    public function hasUserList()
    {
        return isset($this->user_list);
    }

    public function clearUserList()
    {
        unset($this->user_list);
    }

    /**
     * The resource name of remarketing list to update data.
     * Required for job of CUSTOMER_MATCH_USER_LIST type.
     *
     * Generated from protobuf field <code>optional string user_list = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUserList($var)
    {
        GPBUtil::checkString($var, True);
        $this->user_list = $var;

        return $this;
    }

}

