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

/**
 * Response from getting the acquisition incentive for a user when they visit a
 * specific marketing page.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.FetchIncentiveResponse</code>
 */
class FetchIncentiveResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The acquisition incentive offer for the user.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.IncentiveOffer incentive_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $incentive_offer = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Services\IncentiveOffer $incentive_offer
     *           Required. The acquisition incentive offer for the user.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\IncentiveService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The acquisition incentive offer for the user.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.IncentiveOffer incentive_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\IncentiveOffer|null
     */
    public function getIncentiveOffer()
    {
        return $this->incentive_offer;
    }

    public function hasIncentiveOffer()
    {
        return isset($this->incentive_offer);
    }

    public function clearIncentiveOffer()
    {
        unset($this->incentive_offer);
    }

    /**
     * Required. The acquisition incentive offer for the user.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.IncentiveOffer incentive_offer = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\IncentiveOffer $var
     * @return $this
     */
    public function setIncentiveOffer($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\IncentiveOffer::class);
        $this->incentive_offer = $var;

        return $this;
    }

}

