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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * An incentive offer in the Choose-Your-Own Incentive feature where a user
 * can select from a set of incentives with different money amounts.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.CyoIncentives</code>
 */
class CyoIncentives extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The CYO incentive with low target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive low_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $low_offer = null;
    /**
     * Required. The CYO incentive with medium target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive medium_offer = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $medium_offer = null;
    /**
     * Required. The CYO incentive with high target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive high_offer = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $high_offer = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Services\Incentive $low_offer
     *           Required. The CYO incentive with low target and award amounts.
     *     @type \Google\Ads\GoogleAds\V23\Services\Incentive $medium_offer
     *           Required. The CYO incentive with medium target and award amounts.
     *     @type \Google\Ads\GoogleAds\V23\Services\Incentive $high_offer
     *           Required. The CYO incentive with high target and award amounts.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\IncentiveService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The CYO incentive with low target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive low_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\Incentive|null
     */
    public function getLowOffer()
    {
        return $this->low_offer;
    }

    public function hasLowOffer()
    {
        return isset($this->low_offer);
    }

    public function clearLowOffer()
    {
        unset($this->low_offer);
    }

    /**
     * Required. The CYO incentive with low target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive low_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\Incentive $var
     * @return $this
     */
    public function setLowOffer($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\Incentive::class);
        $this->low_offer = $var;

        return $this;
    }

    /**
     * Required. The CYO incentive with medium target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive medium_offer = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\Incentive|null
     */
    public function getMediumOffer()
    {
        return $this->medium_offer;
    }

    public function hasMediumOffer()
    {
        return isset($this->medium_offer);
    }

    public function clearMediumOffer()
    {
        unset($this->medium_offer);
    }

    /**
     * Required. The CYO incentive with medium target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive medium_offer = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\Incentive $var
     * @return $this
     */
    public function setMediumOffer($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\Incentive::class);
        $this->medium_offer = $var;

        return $this;
    }

    /**
     * Required. The CYO incentive with high target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive high_offer = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\Incentive|null
     */
    public function getHighOffer()
    {
        return $this->high_offer;
    }

    public function hasHighOffer()
    {
        return isset($this->high_offer);
    }

    public function clearHighOffer()
    {
        unset($this->high_offer);
    }

    /**
     * Required. The CYO incentive with high target and award amounts.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.Incentive high_offer = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\Incentive $var
     * @return $this
     */
    public function setHighOffer($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\Incentive::class);
        $this->high_offer = $var;

        return $this;
    }

}

