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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * User interest segment.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.UserInterestSegment</code>
 */
class UserInterestSegment extends \Google\Protobuf\Internal\Message
{
    /**
     * The user interest resource.
     *
     * Generated from protobuf field <code>optional string user_interest_category = 1;</code>
     */
    protected $user_interest_category = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $user_interest_category
     *           The user interest resource.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Audiences::initOnce();
        parent::__construct($data);
    }

    /**
     * The user interest resource.
     *
     * Generated from protobuf field <code>optional string user_interest_category = 1;</code>
     *
     * @return string
     */
    public function getUserInterestCategory()
    {
        return isset($this->user_interest_category) ? $this->user_interest_category : '';
    }

    public function hasUserInterestCategory()
    {
        return isset($this->user_interest_category);
    }

    public function clearUserInterestCategory()
    {
        unset($this->user_interest_category);
    }

    /**
     * The user interest resource.
     *
     * Generated from protobuf field <code>optional string user_interest_category = 1;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setUserInterestCategory($var)
    {
        GPBUtil::checkString($var, true);
        $this->user_interest_category = $var;

        return $this;
    }

}

