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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Container for third party Brand Lift integration data for Campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.CampaignThirdPartyBrandLiftIntegrationPartner</code>
 */
class CampaignThirdPartyBrandLiftIntegrationPartner extends \Google\Protobuf\Internal\Message
{
    /**
     * Allowed third party integration partners for Brand Lift verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.ThirdPartyBrandLiftIntegrationPartnerEnum.ThirdPartyBrandLiftIntegrationPartner brand_lift_integration_partner = 1;</code>
     */
    protected $brand_lift_integration_partner = 0;
    /**
     * Third party partner data for YouTube Brand Lift verification. This is
     * optional metadata for partners to join or attach data to Ads campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.ThirdPartyIntegrationPartnerData brand_lift_integration_partner_data = 2;</code>
     */
    protected $brand_lift_integration_partner_data = null;
    /**
     * If true, then cost data will be shared with this vendor.
     *
     * Generated from protobuf field <code>bool share_cost = 3;</code>
     */
    protected $share_cost = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $brand_lift_integration_partner
     *           Allowed third party integration partners for Brand Lift verification.
     *     @type \Google\Ads\GoogleAds\V23\Common\ThirdPartyIntegrationPartnerData $brand_lift_integration_partner_data
     *           Third party partner data for YouTube Brand Lift verification. This is
     *           optional metadata for partners to join or attach data to Ads campaigns.
     *     @type bool $share_cost
     *           If true, then cost data will be shared with this vendor.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\ThirdPartyIntegrationPartners::initOnce();
        parent::__construct($data);
    }

    /**
     * Allowed third party integration partners for Brand Lift verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.ThirdPartyBrandLiftIntegrationPartnerEnum.ThirdPartyBrandLiftIntegrationPartner brand_lift_integration_partner = 1;</code>
     * @return int
     */
    public function getBrandLiftIntegrationPartner()
    {
        return $this->brand_lift_integration_partner;
    }

    /**
     * Allowed third party integration partners for Brand Lift verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.ThirdPartyBrandLiftIntegrationPartnerEnum.ThirdPartyBrandLiftIntegrationPartner brand_lift_integration_partner = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setBrandLiftIntegrationPartner($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\ThirdPartyBrandLiftIntegrationPartnerEnum\ThirdPartyBrandLiftIntegrationPartner::class);
        $this->brand_lift_integration_partner = $var;

        return $this;
    }

    /**
     * Third party partner data for YouTube Brand Lift verification. This is
     * optional metadata for partners to join or attach data to Ads campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.ThirdPartyIntegrationPartnerData brand_lift_integration_partner_data = 2;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\ThirdPartyIntegrationPartnerData|null
     */
    public function getBrandLiftIntegrationPartnerData()
    {
        return $this->brand_lift_integration_partner_data;
    }

    public function hasBrandLiftIntegrationPartnerData()
    {
        return isset($this->brand_lift_integration_partner_data);
    }

    public function clearBrandLiftIntegrationPartnerData()
    {
        unset($this->brand_lift_integration_partner_data);
    }

    /**
     * Third party partner data for YouTube Brand Lift verification. This is
     * optional metadata for partners to join or attach data to Ads campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.ThirdPartyIntegrationPartnerData brand_lift_integration_partner_data = 2;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\ThirdPartyIntegrationPartnerData $var
     * @return $this
     */
    public function setBrandLiftIntegrationPartnerData($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\ThirdPartyIntegrationPartnerData::class);
        $this->brand_lift_integration_partner_data = $var;

        return $this;
    }

    /**
     * If true, then cost data will be shared with this vendor.
     *
     * Generated from protobuf field <code>bool share_cost = 3;</code>
     * @return bool
     */
    public function getShareCost()
    {
        return $this->share_cost;
    }

    /**
     * If true, then cost data will be shared with this vendor.
     *
     * Generated from protobuf field <code>bool share_cost = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setShareCost($var)
    {
        GPBUtil::checkBool($var);
        $this->share_cost = $var;

        return $this;
    }

}

