<?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 reach integration data for Customer.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.CustomerThirdPartyReachIntegrationPartner</code>
 */
class CustomerThirdPartyReachIntegrationPartner extends \Google\Protobuf\Internal\Message
{
    /**
     * Allowed Third Party integration partners for reach verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner reach_integration_partner = 1;</code>
     */
    protected $reach_integration_partner = 0;
    /**
     * If true, cost data can be shared with this vendor.
     *
     * Generated from protobuf field <code>bool allow_share_cost = 2;</code>
     */
    protected $allow_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 bool $allow_share_cost
     *           If true, cost data can 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 reach verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.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.v23.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner reach_integration_partner = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setReachIntegrationPartner($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\ThirdPartyReachIntegrationPartnerEnum\ThirdPartyReachIntegrationPartner::class);
        $this->reach_integration_partner = $var;

        return $this;
    }

    /**
     * If true, cost data can be shared with this vendor.
     *
     * Generated from protobuf field <code>bool allow_share_cost = 2;</code>
     * @return bool
     */
    public function getAllowShareCost()
    {
        return $this->allow_share_cost;
    }

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

        return $this;
    }

}

