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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * A summary of the sentiment for content related to a brand. Summaries are only
 * generated for positive and negative sentiment, not neutral. The summary is
 * generated by AI models.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.SentimentInsightSummary</code>
 */
class SentimentInsightSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * The sentiment for this summary.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;</code>
     */
    protected $sentiment = 0;
    /**
     * A summary of what was positive or negative about content related to the
     * brand.
     *
     * Generated from protobuf field <code>string summary = 2;</code>
     */
    protected $summary = '';
    /**
     * Sample videos that correspond to the sentiment.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;</code>
     */
    private $sample_videos;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $sentiment
     *           The sentiment for this summary.
     *     @type string $summary
     *           A summary of what was positive or negative about content related to the
     *           brand.
     *     @type \Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata[] $sample_videos
     *           Sample videos that correspond to the sentiment.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The sentiment for this summary.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;</code>
     * @return int
     */
    public function getSentiment()
    {
        return $this->sentiment;
    }

    /**
     * The sentiment for this summary.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setSentiment($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\SentimentEnum\Sentiment::class);
        $this->sentiment = $var;

        return $this;
    }

    /**
     * A summary of what was positive or negative about content related to the
     * brand.
     *
     * Generated from protobuf field <code>string summary = 2;</code>
     * @return string
     */
    public function getSummary()
    {
        return $this->summary;
    }

    /**
     * A summary of what was positive or negative about content related to the
     * brand.
     *
     * Generated from protobuf field <code>string summary = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSummary($var)
    {
        GPBUtil::checkString($var, True);
        $this->summary = $var;

        return $this;
    }

    /**
     * Sample videos that correspond to the sentiment.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata>
     */
    public function getSampleVideos()
    {
        return $this->sample_videos;
    }

    /**
     * Sample videos that correspond to the sentiment.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata[] $var
     * @return $this
     */
    public function setSampleVideos($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttributeMetadata::class);
        $this->sample_videos = $arr;

        return $this;
    }

}

