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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Request for getting the acquisition incentive for a user.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.FetchIncentiveRequest</code>
 */
class FetchIncentiveRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. User's language code.
     * If not provided, the server will default to "en".
     * Possible language codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     *
     * Generated from protobuf field <code>optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $language_code = null;
    /**
     * Optional. User's country code.
     * If not provided, the server will default to "US".
     * Possible country codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#country_codes
     *
     * Generated from protobuf field <code>optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $country_code = null;
    /**
     * Optional. Email of the user that the requested incentive is meant for.
     * Will be used for channel partners who do NOT use OAuth to authenticate on
     * behalf of user.
     *
     * Generated from protobuf field <code>optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $email = null;
    /**
     * Optional. The type of incentive to get.
     * Defaults to ACQUISITION.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $incentive_type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $language_code
     *           Optional. User's language code.
     *           If not provided, the server will default to "en".
     *           Possible language codes:
     *           https://developers.google.com/google-ads/api/data/codes-formats#languages
     *     @type string $country_code
     *           Optional. User's country code.
     *           If not provided, the server will default to "US".
     *           Possible country codes:
     *           https://developers.google.com/google-ads/api/data/codes-formats#country_codes
     *     @type string $email
     *           Optional. Email of the user that the requested incentive is meant for.
     *           Will be used for channel partners who do NOT use OAuth to authenticate on
     *           behalf of user.
     *     @type int $incentive_type
     *           Optional. The type of incentive to get.
     *           Defaults to ACQUISITION.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\IncentiveService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. User's language code.
     * If not provided, the server will default to "en".
     * Possible language codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     *
     * Generated from protobuf field <code>optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getLanguageCode()
    {
        return isset($this->language_code) ? $this->language_code : '';
    }

    public function hasLanguageCode()
    {
        return isset($this->language_code);
    }

    public function clearLanguageCode()
    {
        unset($this->language_code);
    }

    /**
     * Optional. User's language code.
     * If not provided, the server will default to "en".
     * Possible language codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     *
     * Generated from protobuf field <code>optional string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setLanguageCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->language_code = $var;

        return $this;
    }

    /**
     * Optional. User's country code.
     * If not provided, the server will default to "US".
     * Possible country codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#country_codes
     *
     * Generated from protobuf field <code>optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getCountryCode()
    {
        return isset($this->country_code) ? $this->country_code : '';
    }

    public function hasCountryCode()
    {
        return isset($this->country_code);
    }

    public function clearCountryCode()
    {
        unset($this->country_code);
    }

    /**
     * Optional. User's country code.
     * If not provided, the server will default to "US".
     * Possible country codes:
     * https://developers.google.com/google-ads/api/data/codes-formats#country_codes
     *
     * Generated from protobuf field <code>optional string country_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->country_code = $var;

        return $this;
    }

    /**
     * Optional. Email of the user that the requested incentive is meant for.
     * Will be used for channel partners who do NOT use OAuth to authenticate on
     * behalf of user.
     *
     * Generated from protobuf field <code>optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getEmail()
    {
        return isset($this->email) ? $this->email : '';
    }

    public function hasEmail()
    {
        return isset($this->email);
    }

    public function clearEmail()
    {
        unset($this->email);
    }

    /**
     * Optional. Email of the user that the requested incentive is meant for.
     * Will be used for channel partners who do NOT use OAuth to authenticate on
     * behalf of user.
     *
     * Generated from protobuf field <code>optional string email = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->email = $var;

        return $this;
    }

    /**
     * Optional. The type of incentive to get.
     * Defaults to ACQUISITION.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getIncentiveType()
    {
        return isset($this->incentive_type) ? $this->incentive_type : 0;
    }

    public function hasIncentiveType()
    {
        return isset($this->incentive_type);
    }

    public function clearIncentiveType()
    {
        unset($this->incentive_type);
    }

    /**
     * Optional. The type of incentive to get.
     * Defaults to ACQUISITION.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.enums.IncentiveTypeEnum.IncentiveType incentive_type = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setIncentiveType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\IncentiveTypeEnum\IncentiveType::class);
        $this->incentive_type = $var;

        return $this;
    }

}

