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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ReportInfo</code>
 */
class ReportInfo extends \Google\Protobuf\Internal\Message
{
    protected $message;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\FeatureUsageInfo $feature_usage
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAnalytics::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.FeatureUsageInfo feature_usage = 1;</code>
     * @return \Livekit\FeatureUsageInfo|null
     */
    public function getFeatureUsage()
    {
        return $this->readOneof(1);
    }

    public function hasFeatureUsage()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.livekit.FeatureUsageInfo feature_usage = 1;</code>
     * @param \Livekit\FeatureUsageInfo $var
     * @return $this
     */
    public function setFeatureUsage($var)
    {
        GPBUtil::checkMessage($var, \Livekit\FeatureUsageInfo::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getMessage()
    {
        return $this->whichOneof("message");
    }

}

