<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_auth_analytics.proto

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.FetchAnalyticsResult</code>
 */
class FetchAnalyticsResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 total_analytics = 1;</code>
     */
    protected $total_analytics = 0;
    /**
     * Generated from protobuf field <code>uint32 from = 2;</code>
     */
    protected $from = 0;
    /**
     * Generated from protobuf field <code>uint32 limit = 3;</code>
     */
    protected $limit = 0;
    /**
     * Generated from protobuf field <code>string order_by = 4;</code>
     */
    protected $order_by = '';
    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsInfo analytics_list = 5;</code>
     */
    private $analytics_list;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $total_analytics
     *     @type int $from
     *     @type int $limit
     *     @type string $order_by
     *     @type \Mynaparrot\PlugnmeetProto\AnalyticsInfo[] $analytics_list
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthAnalytics::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 total_analytics = 1;</code>
     * @return int|string
     */
    public function getTotalAnalytics()
    {
        return $this->total_analytics;
    }

    /**
     * Generated from protobuf field <code>int64 total_analytics = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTotalAnalytics($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_analytics = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 from = 2;</code>
     * @return int
     */
    public function getFrom()
    {
        return $this->from;
    }

    /**
     * Generated from protobuf field <code>uint32 from = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFrom($var)
    {
        GPBUtil::checkUint32($var);
        $this->from = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 limit = 3;</code>
     * @return int
     */
    public function getLimit()
    {
        return $this->limit;
    }

    /**
     * Generated from protobuf field <code>uint32 limit = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLimit($var)
    {
        GPBUtil::checkUint32($var);
        $this->limit = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string order_by = 4;</code>
     * @return string
     */
    public function getOrderBy()
    {
        return $this->order_by;
    }

    /**
     * Generated from protobuf field <code>string order_by = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setOrderBy($var)
    {
        GPBUtil::checkString($var, True);
        $this->order_by = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsInfo analytics_list = 5;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\AnalyticsInfo>
     */
    public function getAnalyticsList()
    {
        return $this->analytics_list;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsInfo analytics_list = 5;</code>
     * @param \Mynaparrot\PlugnmeetProto\AnalyticsInfo[] $var
     * @return $this
     */
    public function setAnalyticsList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mynaparrot\PlugnmeetProto\AnalyticsInfo::class);
        $this->analytics_list = $arr;

        return $this;
    }

}

