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

namespace Google\Ads\GoogleAds\V23\Resources;

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

/**
 * Properties specific to an Advertising Partner link.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.AdvertisingPartnerProperties</code>
 */
class AdvertisingPartnerProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The allowed domain for the Advertising Partner link. The
     * advertising partner will only be able to advertise on this domain. The
     * field is immutable.
     *
     * Generated from protobuf field <code>optional string allowed_domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $allowed_domain = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $allowed_domain
     *           Output only. The allowed domain for the Advertising Partner link. The
     *           advertising partner will only be able to advertise on this domain. The
     *           field is immutable.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\ProductLink::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The allowed domain for the Advertising Partner link. The
     * advertising partner will only be able to advertise on this domain. The
     * field is immutable.
     *
     * Generated from protobuf field <code>optional string allowed_domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getAllowedDomain()
    {
        return isset($this->allowed_domain) ? $this->allowed_domain : '';
    }

    public function hasAllowedDomain()
    {
        return isset($this->allowed_domain);
    }

    public function clearAllowedDomain()
    {
        unset($this->allowed_domain);
    }

    /**
     * Output only. The allowed domain for the Advertising Partner link. The
     * advertising partner will only be able to advertise on this domain. The
     * field is immutable.
     *
     * Generated from protobuf field <code>optional string allowed_domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setAllowedDomain($var)
    {
        GPBUtil::checkString($var, true);
        $this->allowed_domain = $var;

        return $this;
    }

}

