<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_egress.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SegmentsInfo</code>
 */
class SegmentsInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string playlist_name = 1;</code>
     */
    protected $playlist_name = '';
    /**
     * Generated from protobuf field <code>string live_playlist_name = 8;</code>
     */
    protected $live_playlist_name = '';
    /**
     * Generated from protobuf field <code>int64 duration = 2;</code>
     */
    protected $duration = 0;
    /**
     * Generated from protobuf field <code>int64 size = 3;</code>
     */
    protected $size = 0;
    /**
     * Generated from protobuf field <code>string playlist_location = 4;</code>
     */
    protected $playlist_location = '';
    /**
     * Generated from protobuf field <code>string live_playlist_location = 9;</code>
     */
    protected $live_playlist_location = '';
    /**
     * Generated from protobuf field <code>int64 segment_count = 5;</code>
     */
    protected $segment_count = 0;
    /**
     * Generated from protobuf field <code>int64 started_at = 6;</code>
     */
    protected $started_at = 0;
    /**
     * Generated from protobuf field <code>int64 ended_at = 7;</code>
     */
    protected $ended_at = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $playlist_name
     *     @type string $live_playlist_name
     *     @type int|string $duration
     *     @type int|string $size
     *     @type string $playlist_location
     *     @type string $live_playlist_location
     *     @type int|string $segment_count
     *     @type int|string $started_at
     *     @type int|string $ended_at
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string playlist_name = 1;</code>
     * @return string
     */
    public function getPlaylistName()
    {
        return $this->playlist_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string live_playlist_name = 8;</code>
     * @return string
     */
    public function getLivePlaylistName()
    {
        return $this->live_playlist_name;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string live_playlist_location = 9;</code>
     * @return string
     */
    public function getLivePlaylistLocation()
    {
        return $this->live_playlist_location;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

