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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Request to fetch a list of artifacts
 *
 * Generated from protobuf message <code>plugnmeet.FetchArtifactsReq</code>
 */
class FetchArtifactsReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string room_ids = 1;</code>
     */
    private $room_ids;
    /**
     * To get information about a particular session
     *
     * Generated from protobuf field <code>optional string room_sid = 2;</code>
     */
    protected $room_sid = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactType type = 3;</code>
     */
    protected $type = null;
    /**
     * Generated from protobuf field <code>uint64 from = 4;</code>
     */
    protected $from = 0;
    /**
     * Generated from protobuf field <code>uint64 limit = 5;</code>
     */
    protected $limit = 0;
    /**
     * Generated from protobuf field <code>string order_by = 6;</code>
     */
    protected $order_by = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $room_ids
     *     @type string $room_sid
     *           To get information about a particular session
     *     @type int $type
     *     @type int|string $from
     *     @type int|string $limit
     *     @type string $order_by
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthArtifact::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>repeated string room_ids = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRoomIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->room_ids = $arr;

        return $this;
    }

    /**
     * To get information about a particular session
     *
     * Generated from protobuf field <code>optional string room_sid = 2;</code>
     * @return string
     */
    public function getRoomSid()
    {
        return isset($this->room_sid) ? $this->room_sid : '';
    }

    public function hasRoomSid()
    {
        return isset($this->room_sid);
    }

    public function clearRoomSid()
    {
        unset($this->room_sid);
    }

    /**
     * To get information about a particular session
     *
     * Generated from protobuf field <code>optional string room_sid = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRoomSid($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_sid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactType type = 3;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactType type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\RoomArtifactType::class);
        $this->type = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>uint64 from = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFrom($var)
    {
        GPBUtil::checkUint64($var);
        $this->from = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>uint64 limit = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLimit($var)
    {
        GPBUtil::checkUint64($var);
        $this->limit = $var;

        return $this;
    }

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

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

        return $this;
    }

}

