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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Represents an extended demographic criterion.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.ExtendedDemographicInfo</code>
 */
class ExtendedDemographicInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Taxonomy id of the extended demographic group.
     *
     * Generated from protobuf field <code>optional int64 extended_demographic_id = 1;</code>
     */
    protected $extended_demographic_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $extended_demographic_id
     *           Taxonomy id of the extended demographic group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * Taxonomy id of the extended demographic group.
     *
     * Generated from protobuf field <code>optional int64 extended_demographic_id = 1;</code>
     * @return int|string
     */
    public function getExtendedDemographicId()
    {
        return isset($this->extended_demographic_id) ? $this->extended_demographic_id : 0;
    }

    public function hasExtendedDemographicId()
    {
        return isset($this->extended_demographic_id);
    }

    public function clearExtendedDemographicId()
    {
        unset($this->extended_demographic_id);
    }

    /**
     * Taxonomy id of the extended demographic group.
     *
     * Generated from protobuf field <code>optional int64 extended_demographic_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExtendedDemographicId($var)
    {
        GPBUtil::checkInt64($var);
        $this->extended_demographic_id = $var;

        return $this;
    }

}

