<?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.FeatureUsageInfo</code>
 */
class FeatureUsageInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.FeatureUsageInfo.Feature feature = 1;</code>
     */
    protected $feature = 0;
    /**
     * Generated from protobuf field <code>string project_id = 2 [(.logger.name) = "projectID"];</code>
     */
    protected $project_id = '';
    /**
     * Generated from protobuf field <code>string room_name = 3;</code>
     */
    protected $room_name = '';
    /**
     * Generated from protobuf field <code>string room_id = 4 [(.logger.name) = "roomID"];</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string participant_identity = 5;</code>
     */
    protected $participant_identity = '';
    /**
     * Generated from protobuf field <code>string participant_id = 6 [(.logger.name) = "participantID"];</code>
     */
    protected $participant_id = '';
    /**
     * Generated from protobuf field <code>string track_id = 7 [(.logger.name) = "trackID"];</code>
     */
    protected $track_id = '';
    /**
     * time ranges during which the feature was enabled.
     * for e. g., noise cancellation may not be applied when a media track is paused/muted,
     * this allows reporting only periods during which a feature is active.
     *
     * Generated from protobuf field <code>repeated .livekit.TimeRange time_ranges = 8;</code>
     */
    private $time_ranges;
    /**
     * Feature specific metadata included in the report
     *
     * Generated from protobuf field <code>map<string, string> feature_info = 9;</code>
     */
    private $feature_info;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $feature
     *     @type string $project_id
     *     @type string $room_name
     *     @type string $room_id
     *     @type string $participant_identity
     *     @type string $participant_id
     *     @type string $track_id
     *     @type \Livekit\TimeRange[] $time_ranges
     *           time ranges during which the feature was enabled.
     *           for e. g., noise cancellation may not be applied when a media track is paused/muted,
     *           this allows reporting only periods during which a feature is active.
     *     @type array|\Google\Protobuf\Internal\MapField $feature_info
     *           Feature specific metadata included in the report
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAnalytics::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.FeatureUsageInfo.Feature feature = 1;</code>
     * @return int
     */
    public function getFeature()
    {
        return $this->feature;
    }

    /**
     * Generated from protobuf field <code>.livekit.FeatureUsageInfo.Feature feature = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setFeature($var)
    {
        GPBUtil::checkEnum($var, \Livekit\FeatureUsageInfo\Feature::class);
        $this->feature = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string project_id = 2 [(.logger.name) = "projectID"];</code>
     * @return string
     */
    public function getProjectId()
    {
        return $this->project_id;
    }

    /**
     * Generated from protobuf field <code>string project_id = 2 [(.logger.name) = "projectID"];</code>
     * @param string $var
     * @return $this
     */
    public function setProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->project_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_name = 3;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->room_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_id = 4 [(.logger.name) = "roomID"];</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

    /**
     * Generated from protobuf field <code>string room_id = 4 [(.logger.name) = "roomID"];</code>
     * @param string $var
     * @return $this
     */
    public function setRoomId($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string participant_identity = 5;</code>
     * @return string
     */
    public function getParticipantIdentity()
    {
        return $this->participant_identity;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string participant_id = 6 [(.logger.name) = "participantID"];</code>
     * @return string
     */
    public function getParticipantId()
    {
        return $this->participant_id;
    }

    /**
     * Generated from protobuf field <code>string participant_id = 6 [(.logger.name) = "participantID"];</code>
     * @param string $var
     * @return $this
     */
    public function setParticipantId($var)
    {
        GPBUtil::checkString($var, True);
        $this->participant_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string track_id = 7 [(.logger.name) = "trackID"];</code>
     * @return string
     */
    public function getTrackId()
    {
        return $this->track_id;
    }

    /**
     * Generated from protobuf field <code>string track_id = 7 [(.logger.name) = "trackID"];</code>
     * @param string $var
     * @return $this
     */
    public function setTrackId($var)
    {
        GPBUtil::checkString($var, True);
        $this->track_id = $var;

        return $this;
    }

    /**
     * time ranges during which the feature was enabled.
     * for e. g., noise cancellation may not be applied when a media track is paused/muted,
     * this allows reporting only periods during which a feature is active.
     *
     * Generated from protobuf field <code>repeated .livekit.TimeRange time_ranges = 8;</code>
     * @return RepeatedField<\Livekit\TimeRange>
     */
    public function getTimeRanges()
    {
        return $this->time_ranges;
    }

    /**
     * time ranges during which the feature was enabled.
     * for e. g., noise cancellation may not be applied when a media track is paused/muted,
     * this allows reporting only periods during which a feature is active.
     *
     * Generated from protobuf field <code>repeated .livekit.TimeRange time_ranges = 8;</code>
     * @param \Livekit\TimeRange[] $var
     * @return $this
     */
    public function setTimeRanges($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\TimeRange::class);
        $this->time_ranges = $arr;

        return $this;
    }

    /**
     * Feature specific metadata included in the report
     *
     * Generated from protobuf field <code>map<string, string> feature_info = 9;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getFeatureInfo()
    {
        return $this->feature_info;
    }

    /**
     * Feature specific metadata included in the report
     *
     * Generated from protobuf field <code>map<string, string> feature_info = 9;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setFeatureInfo($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->feature_info = $arr;

        return $this;
    }

}

