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

namespace Google\Ads\GoogleAds\V21\Services;

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

/**
 * A YouTube creator and the insights for this creator.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.services.YouTubeCreatorInsights</code>
 */
class YouTubeCreatorInsights extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the creator.
     *
     * Generated from protobuf field <code>string creator_name = 1;</code>
     */
    protected $creator_name = '';
    /**
     * The list of YouTube Channels
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.YouTubeChannelInsights creator_channels = 2;</code>
     */
    private $creator_channels;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $creator_name
     *           The name of the creator.
     *     @type array<\Google\Ads\GoogleAds\V21\Services\YouTubeChannelInsights>|\Google\Protobuf\Internal\RepeatedField $creator_channels
     *           The list of YouTube Channels
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the creator.
     *
     * Generated from protobuf field <code>string creator_name = 1;</code>
     * @return string
     */
    public function getCreatorName()
    {
        return $this->creator_name;
    }

    /**
     * The name of the creator.
     *
     * Generated from protobuf field <code>string creator_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCreatorName($var)
    {
        GPBUtil::checkString($var, True);
        $this->creator_name = $var;

        return $this;
    }

    /**
     * The list of YouTube Channels
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.YouTubeChannelInsights creator_channels = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCreatorChannels()
    {
        return $this->creator_channels;
    }

    /**
     * The list of YouTube Channels
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.YouTubeChannelInsights creator_channels = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V21\Services\YouTubeChannelInsights>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCreatorChannels($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V21\Services\YouTubeChannelInsights::class);
        $this->creator_channels = $arr;

        return $this;
    }

}

