<?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.DataMessageReq</code>
 */
class DataMessageReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_sid = 2;</code>
     */
    protected $room_sid = '';
    /**
     * Generated from protobuf field <code>string user_id = 3;</code>
     */
    protected $user_id = '';
    /**
     * Generated from protobuf field <code>string user_sid = 4;</code>
     */
    protected $user_sid = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.DataMsgBodyType msg_body_type = 5;</code>
     */
    protected $msg_body_type = 0;
    /**
     * Generated from protobuf field <code>string msg = 6;</code>
     */
    protected $msg = '';
    /**
     * Generated from protobuf field <code>string Requested_user_id = 7;</code>
     */
    protected $Requested_user_id = '';
    /**
     * Generated from protobuf field <code>repeated string send_to = 8;</code>
     */
    private $send_to;
    /**
     * Generated from protobuf field <code>bool is_admin = 9;</code>
     */
    protected $is_admin = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_id
     *     @type string $room_sid
     *     @type string $user_id
     *     @type string $user_sid
     *     @type int $msg_body_type
     *     @type string $msg
     *     @type string $Requested_user_id
     *     @type string[] $send_to
     *     @type bool $is_admin
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommonApi::initOnce();
        parent::__construct($data);
    }

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

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

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.DataMsgBodyType msg_body_type = 5;</code>
     * @return int
     */
    public function getMsgBodyType()
    {
        return $this->msg_body_type;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string Requested_user_id = 7;</code>
     * @return string
     */
    public function getRequestedUserId()
    {
        return $this->Requested_user_id;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_admin = 9;</code>
     * @return bool
     */
    public function getIsAdmin()
    {
        return $this->is_admin;
    }

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

        return $this;
    }

}

