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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A YouTube creator and the insights for this creator.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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 \Google\Ads\GoogleAds\V23\Services\YouTubeChannelInsights[] $creator_channels
     *           The list of YouTube Channels
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\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.v23.services.YouTubeChannelInsights creator_channels = 2;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Services\YouTubeChannelInsights>
     */
    public function getCreatorChannels()
    {
        return $this->creator_channels;
    }

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

        return $this;
    }

}

