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

namespace Google\Ads\GoogleAds\V20\Services;

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

/**
 * Metrics associated with a trend insight.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.services.TrendInsightMetrics</code>
 */
class TrendInsightMetrics extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of views for this trend.
     *
     * Generated from protobuf field <code>int64 views_count = 1;</code>
     */
    protected $views_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $views_count
     *           The number of views for this trend.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Services\ContentCreatorInsightsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of views for this trend.
     *
     * Generated from protobuf field <code>int64 views_count = 1;</code>
     * @return int|string
     */
    public function getViewsCount()
    {
        return $this->views_count;
    }

    /**
     * The number of views for this trend.
     *
     * Generated from protobuf field <code>int64 views_count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setViewsCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->views_count = $var;

        return $this;
    }

}

