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

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * Metadata specific to YouTube links.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.YoutubeLinkMetadata</code>
 */
class YoutubeLinkMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The ID of a YouTube brand channel to help creators understand
     * your brand. The channel must be linked to this account. This is a string
     * value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
     *
     * Generated from protobuf field <code>optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $brand_channel_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $brand_channel_id
     *           Immutable. The ID of a YouTube brand channel to help creators understand
     *           your brand. The channel must be linked to this account. This is a string
     *           value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\DataLink::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. The ID of a YouTube brand channel to help creators understand
     * your brand. The channel must be linked to this account. This is a string
     * value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
     *
     * Generated from protobuf field <code>optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getBrandChannelId()
    {
        return isset($this->brand_channel_id) ? $this->brand_channel_id : '';
    }

    public function hasBrandChannelId()
    {
        return isset($this->brand_channel_id);
    }

    public function clearBrandChannelId()
    {
        unset($this->brand_channel_id);
    }

    /**
     * Immutable. The ID of a YouTube brand channel to help creators understand
     * your brand. The channel must be linked to this account. This is a string
     * value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
     *
     * Generated from protobuf field <code>optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setBrandChannelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->brand_channel_id = $var;

        return $this;
    }

}

