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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Metadata associated with a User List attribute.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.UserListAttributeMetadata</code>
 */
class UserListAttributeMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The user list type.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListTypeEnum.UserListType user_list_type = 1;</code>
     */
    protected $user_list_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $user_list_type
     *           The user list type.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * The user list type.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListTypeEnum.UserListType user_list_type = 1;</code>
     * @return int
     */
    public function getUserListType()
    {
        return $this->user_list_type;
    }

    /**
     * The user list type.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListTypeEnum.UserListType user_list_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUserListType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\UserListTypeEnum\UserListType::class);
        $this->user_list_type = $var;

        return $this;
    }

}

