<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/targeting.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * Data Segment Targeting
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.DataSegmentTargeting</code>
 */
class DataSegmentTargeting extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Whether any data segments are currently targeted.
     *
     * Generated from protobuf field <code>bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $has_data_segment_targeting = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $has_data_segment_targeting
     *           Output only. Whether any data segments are currently targeted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Whether any data segments are currently targeted.
     *
     * Generated from protobuf field <code>bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return bool
     */
    public function getHasDataSegmentTargeting()
    {
        return $this->has_data_segment_targeting;
    }

    /**
     * Output only. Whether any data segments are currently targeted.
     *
     * Generated from protobuf field <code>bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param bool $var
     * @return $this
     */
    public function setHasDataSegmentTargeting($var)
    {
        GPBUtil::checkBool($var);
        $this->has_data_segment_targeting = $var;

        return $this;
    }

}

