<?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;

/**
 * A criterion for targeting a shared set of rules for item groups in Vertical
 * Ads (e.g., for hotel ads).
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.VerticalAdsItemGroupRuleListInfo</code>
 */
class VerticalAdsItemGroupRuleListInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The shared set resource name of the vertical ads item group rule list.
     *
     * Generated from protobuf field <code>optional string shared_set = 1;</code>
     */
    protected $shared_set = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $shared_set
     *           The shared set resource name of the vertical ads item group rule list.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * The shared set resource name of the vertical ads item group rule list.
     *
     * Generated from protobuf field <code>optional string shared_set = 1;</code>
     * @return string
     */
    public function getSharedSet()
    {
        return isset($this->shared_set) ? $this->shared_set : '';
    }

    public function hasSharedSet()
    {
        return isset($this->shared_set);
    }

    public function clearSharedSet()
    {
        unset($this->shared_set);
    }

    /**
     * The shared set resource name of the vertical ads item group rule list.
     *
     * Generated from protobuf field <code>optional string shared_set = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSharedSet($var)
    {
        GPBUtil::checkString($var, True);
        $this->shared_set = $var;

        return $this;
    }

}

