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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * A criterion to represent a single item group rule in Vertical Ads.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.VerticalAdsItemGroupRuleInfo</code>
 */
class VerticalAdsItemGroupRuleInfo extends \Google\Protobuf\Internal\Message
{
    protected $dimension;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $item_code
     *           The id specifying a particular Vertical Ad listing.
     *     @type string $country_criterion_id
     *           The resource name of the Geo Target Constant for the country.
     *     @type string $region_criterion_id
     *           The resource name of the Geo Target Constant for the region.
     *     @type string $city_criterion_id
     *           The resource name of the Geo Target Constant for the city.
     *     @type int|string $hotel_class
     *           Integer value specifying the class rating for a hotel. Ranges from 1 to 5
     *           stars.
     *     @type int|string $user_rating
     *           Integer value specifying the user rating for a Vertical Ad listing.
     *           Ranges from 1 to 5, where 5 is the best.
     *     @type string $venue
     *           A name for a specific location, like the venue for a concert event.
     *     @type string $event_participant_display_name
     *           The name of an associated participant for a given event. For example,
     *           headliner for a concert event.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * The id specifying a particular Vertical Ad listing.
     *
     * Generated from protobuf field <code>string item_code = 1;</code>
     * @return string
     */
    public function getItemCode()
    {
        return $this->readOneof(1);
    }

    public function hasItemCode()
    {
        return $this->hasOneof(1);
    }

    /**
     * The id specifying a particular Vertical Ad listing.
     *
     * Generated from protobuf field <code>string item_code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setItemCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * The resource name of the Geo Target Constant for the country.
     *
     * Generated from protobuf field <code>string country_criterion_id = 2;</code>
     * @return string
     */
    public function getCountryCriterionId()
    {
        return $this->readOneof(2);
    }

    public function hasCountryCriterionId()
    {
        return $this->hasOneof(2);
    }

    /**
     * The resource name of the Geo Target Constant for the country.
     *
     * Generated from protobuf field <code>string country_criterion_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCriterionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * The resource name of the Geo Target Constant for the region.
     *
     * Generated from protobuf field <code>string region_criterion_id = 3;</code>
     * @return string
     */
    public function getRegionCriterionId()
    {
        return $this->readOneof(3);
    }

    public function hasRegionCriterionId()
    {
        return $this->hasOneof(3);
    }

    /**
     * The resource name of the Geo Target Constant for the region.
     *
     * Generated from protobuf field <code>string region_criterion_id = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setRegionCriterionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * The resource name of the Geo Target Constant for the city.
     *
     * Generated from protobuf field <code>string city_criterion_id = 4;</code>
     * @return string
     */
    public function getCityCriterionId()
    {
        return $this->readOneof(4);
    }

    public function hasCityCriterionId()
    {
        return $this->hasOneof(4);
    }

    /**
     * The resource name of the Geo Target Constant for the city.
     *
     * Generated from protobuf field <code>string city_criterion_id = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setCityCriterionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Integer value specifying the class rating for a hotel. Ranges from 1 to 5
     * stars.
     *
     * Generated from protobuf field <code>int64 hotel_class = 6;</code>
     * @return int|string
     */
    public function getHotelClass()
    {
        return $this->readOneof(6);
    }

    public function hasHotelClass()
    {
        return $this->hasOneof(6);
    }

    /**
     * Integer value specifying the class rating for a hotel. Ranges from 1 to 5
     * stars.
     *
     * Generated from protobuf field <code>int64 hotel_class = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setHotelClass($var)
    {
        GPBUtil::checkInt64($var);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Integer value specifying the user rating for a Vertical Ad listing.
     * Ranges from 1 to 5, where 5 is the best.
     *
     * Generated from protobuf field <code>int64 user_rating = 7;</code>
     * @return int|string
     */
    public function getUserRating()
    {
        return $this->readOneof(7);
    }

    public function hasUserRating()
    {
        return $this->hasOneof(7);
    }

    /**
     * Integer value specifying the user rating for a Vertical Ad listing.
     * Ranges from 1 to 5, where 5 is the best.
     *
     * Generated from protobuf field <code>int64 user_rating = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUserRating($var)
    {
        GPBUtil::checkInt64($var);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * A name for a specific location, like the venue for a concert event.
     *
     * Generated from protobuf field <code>string venue = 8;</code>
     * @return string
     */
    public function getVenue()
    {
        return $this->readOneof(8);
    }

    public function hasVenue()
    {
        return $this->hasOneof(8);
    }

    /**
     * A name for a specific location, like the venue for a concert event.
     *
     * Generated from protobuf field <code>string venue = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setVenue($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * The name of an associated participant for a given event. For example,
     * headliner for a concert event.
     *
     * Generated from protobuf field <code>string event_participant_display_name = 9;</code>
     * @return string
     */
    public function getEventParticipantDisplayName()
    {
        return $this->readOneof(9);
    }

    public function hasEventParticipantDisplayName()
    {
        return $this->hasOneof(9);
    }

    /**
     * The name of an associated participant for a given event. For example,
     * headliner for a concert event.
     *
     * Generated from protobuf field <code>string event_participant_display_name = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setEventParticipantDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getDimension()
    {
        return $this->whichOneof("dimension");
    }

}

