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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.RoomUploadedFileMetadata</code>
 */
class RoomUploadedFileMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string file_id = 1;</code>
     */
    protected $file_id = '';
    /**
     * Generated from protobuf field <code>string file_name = 2;</code>
     */
    protected $file_name = '';
    /**
     * Generated from protobuf field <code>string file_path = 3;</code>
     */
    protected $file_path = '';
    /**
     * Generated from protobuf field <code>string mime_type = 4;</code>
     */
    protected $mime_type = '';
    /**
     * Generated from protobuf field <code>string uploaded_by_user_id = 5;</code>
     */
    protected $uploaded_by_user_id = '';
    /**
     * Generated from protobuf field <code>string uploaded_by_name = 6;</code>
     */
    protected $uploaded_by_name = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomUploadedFileType file_type = 7;</code>
     */
    protected $file_type = 0;
    /**
     * Generated from protobuf field <code>optional int32 total_pages = 8;</code>
     */
    protected $total_pages = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file_id
     *     @type string $file_name
     *     @type string $file_path
     *     @type string $mime_type
     *     @type string $uploaded_by_user_id
     *     @type string $uploaded_by_name
     *     @type int $file_type
     *     @type int $total_pages
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommonApi::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string uploaded_by_name = 6;</code>
     * @return string
     */
    public function getUploadedByName()
    {
        return $this->uploaded_by_name;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomUploadedFileType file_type = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setFileType($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\RoomUploadedFileType::class);
        $this->file_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 total_pages = 8;</code>
     * @return int
     */
    public function getTotalPages()
    {
        return isset($this->total_pages) ? $this->total_pages : 0;
    }

    public function hasTotalPages()
    {
        return isset($this->total_pages);
    }

    public function clearTotalPages()
    {
        unset($this->total_pages);
    }

    /**
     * Generated from protobuf field <code>optional int32 total_pages = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setTotalPages($var)
    {
        GPBUtil::checkInt32($var);
        $this->total_pages = $var;

        return $this;
    }

}

