<?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;</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;</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;</code>
     */
    protected $participant_id = '';
    /**
     * Generated from protobuf field <code>string track_id = 7;</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 avtive.
     *
     * Generated from protobuf field <code>repeated .livekit.TimeRange time_ranges = 8;</code>
     */
    private $time_ranges;

    /**
     * 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 avtive.
     * }
     */
    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;</code>
     * @return string
     */
    public function getProjectId()
    {
        return $this->project_id;
    }

    /**
     * Generated from protobuf field <code>string project_id = 2;</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;</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

    /**
     * Generated from protobuf field <code>string room_id = 4;</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;</code>
     * @return string
     */
    public function getParticipantId()
    {
        return $this->participant_id;
    }

    /**
     * Generated from protobuf field <code>string participant_id = 6;</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;</code>
     * @return string
     */
    public function getTrackId()
    {
        return $this->track_id;
    }

    /**
     * Generated from protobuf field <code>string track_id = 7;</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 avtive.
     *
     * 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 avtive.
     *
     * 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;
    }

}

