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

namespace Google\Ads\GoogleAds\V24\Common;

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

/**
 * Container for third party viewability integration data for Customer.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.CustomerThirdPartyViewabilityIntegrationPartner</code>
 */
class CustomerThirdPartyViewabilityIntegrationPartner extends \Google\Protobuf\Internal\Message
{
    /**
     * Allowed third party integration partners for YouTube viewability
     * verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ThirdPartyViewabilityIntegrationPartnerEnum.ThirdPartyViewabilityIntegrationPartner viewability_integration_partner = 1;</code>
     */
    protected $viewability_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 $viewability_integration_partner
     *           Allowed third party integration partners for YouTube viewability
     *           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\V24\Common\ThirdPartyIntegrationPartners::initOnce();
        parent::__construct($data);
    }

    /**
     * Allowed third party integration partners for YouTube viewability
     * verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ThirdPartyViewabilityIntegrationPartnerEnum.ThirdPartyViewabilityIntegrationPartner viewability_integration_partner = 1;</code>
     *
     * @return int
     */
    public function getViewabilityIntegrationPartner()
    {
        return $this->viewability_integration_partner;
    }

    /**
     * Allowed third party integration partners for YouTube viewability
     * verification.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ThirdPartyViewabilityIntegrationPartnerEnum.ThirdPartyViewabilityIntegrationPartner viewability_integration_partner = 1;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setViewabilityIntegrationPartner($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\ThirdPartyViewabilityIntegrationPartnerEnum\ThirdPartyViewabilityIntegrationPartner::class);
        $this->viewability_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;
    }

}

