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

namespace Google\Ads\GoogleAds\V21\Common;

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

/**
 * Container for third party reach integration data for Campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.common.CampaignThirdPartyReachIntegrationPartner</code>
 */
class CampaignThirdPartyReachIntegrationPartner extends \Google\Protobuf\Internal\Message
{
    /**
     * Allowed third party integration partners for reach verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner reach_integration_partner = 1;</code>
     */
    protected $reach_integration_partner = 0;
    /**
     * Third party partner data for YouTube Reach verification. This is
     * optional metadata for partners to join or attach data to Ads campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.common.ThirdPartyIntegrationPartnerData reach_integration_partner_data = 2;</code>
     */
    protected $reach_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 $reach_integration_partner
     *           Allowed third party integration partners for reach verification.
     *     @type \Google\Ads\GoogleAds\V21\Common\ThirdPartyIntegrationPartnerData $reach_integration_partner_data
     *           Third party partner data for YouTube Reach 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\V21\Common\ThirdPartyIntegrationPartners::initOnce();
        parent::__construct($data);
    }

    /**
     * Allowed third party integration partners for reach verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner reach_integration_partner = 1;</code>
     * @return int
     */
    public function getReachIntegrationPartner()
    {
        return $this->reach_integration_partner;
    }

    /**
     * Allowed third party integration partners for reach verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner reach_integration_partner = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setReachIntegrationPartner($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V21\Enums\ThirdPartyReachIntegrationPartnerEnum\ThirdPartyReachIntegrationPartner::class);
        $this->reach_integration_partner = $var;

        return $this;
    }

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

    public function hasReachIntegrationPartnerData()
    {
        return isset($this->reach_integration_partner_data);
    }

    public function clearReachIntegrationPartnerData()
    {
        unset($this->reach_integration_partner_data);
    }

    /**
     * Third party partner data for YouTube Reach verification. This is
     * optional metadata for partners to join or attach data to Ads campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.common.ThirdPartyIntegrationPartnerData reach_integration_partner_data = 2;</code>
     * @param \Google\Ads\GoogleAds\V21\Common\ThirdPartyIntegrationPartnerData $var
     * @return $this
     */
    public function setReachIntegrationPartnerData($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V21\Common\ThirdPartyIntegrationPartnerData::class);
        $this->reach_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;
    }

}

