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

namespace Livekit;

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

/**
 * Unified file output — replaces v1 EncodedFileOutput and DirectFileOutput.
 * Whether transcoded depends on encoding options on the request.
 *
 * Generated from protobuf message <code>livekit.FileOutput</code>
 */
class FileOutput extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.EncodedFileType file_type = 1;</code>
     */
    protected $file_type = 0;
    /**
     * Generated from protobuf field <code>string filepath = 2;</code>
     */
    protected $filepath = '';
    /**
     * Generated from protobuf field <code>bool disable_manifest = 3;</code>
     */
    protected $disable_manifest = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $file_type
     *     @type string $filepath
     *     @type bool $disable_manifest
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.EncodedFileType file_type = 1;</code>
     * @return int
     */
    public function getFileType()
    {
        return $this->file_type;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string filepath = 2;</code>
     * @return string
     */
    public function getFilepath()
    {
        return $this->filepath;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool disable_manifest = 3;</code>
     * @return bool
     */
    public function getDisableManifest()
    {
        return $this->disable_manifest;
    }

    /**
     * Generated from protobuf field <code>bool disable_manifest = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisableManifest($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_manifest = $var;

        return $this;
    }

}

