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

namespace Google\Ads\GoogleAds\V23\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.v23.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;
    /**
     * The consent setting for all the users in this job.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.common.Consent consent = 3;</code>
     */
    protected $consent = 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.
     *     @type \Google\Ads\GoogleAds\V23\Common\Consent $consent
     *           The consent setting for all the users in this job.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\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;
    }

    /**
     * The consent setting for all the users in this job.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.common.Consent consent = 3;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\Consent|null
     */
    public function getConsent()
    {
        return $this->consent;
    }

    public function hasConsent()
    {
        return isset($this->consent);
    }

    public function clearConsent()
    {
        unset($this->consent);
    }

    /**
     * The consent setting for all the users in this job.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.common.Consent consent = 3;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\Consent $var
     * @return $this
     */
    public function setConsent($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\Consent::class);
        $this->consent = $var;

        return $this;
    }

}

