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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * The metadata associated with a plannable user list.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.PlannableUserListMetadata</code>
 */
class PlannableUserListMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The data source type of a CRM based user list.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType user_list_crm_data_source_type = 1;</code>
     */
    protected $user_list_crm_data_source_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $user_list_crm_data_source_type
     *           The data source type of a CRM based user list.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ReachPlanService::initOnce();
        parent::__construct($data);
    }

    /**
     * The data source type of a CRM based user list.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType user_list_crm_data_source_type = 1;</code>
     * @return int
     */
    public function getUserListCrmDataSourceType()
    {
        return $this->user_list_crm_data_source_type;
    }

    /**
     * The data source type of a CRM based user list.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType user_list_crm_data_source_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUserListCrmDataSourceType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\UserListCrmDataSourceTypeEnum\UserListCrmDataSourceType::class);
        $this->user_list_crm_data_source_type = $var;

        return $this;
    }

}

