<?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.CreateEtherpadSessionRes</code>
 */
class CreateEtherpadSessionRes extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     */
    protected $status = false;
    /**
     * Generated from protobuf field <code>string msg = 2;</code>
     */
    protected $msg = '';
    /**
     * Generated from protobuf field <code>optional string pad_id = 3;</code>
     */
    protected $pad_id = null;
    /**
     * Generated from protobuf field <code>optional string readonly_pad_id = 4;</code>
     */
    protected $readonly_pad_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $status
     *     @type string $msg
     *     @type string $pad_id
     *     @type string $readonly_pad_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommonApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     * @return bool
     */
    public function getStatus()
    {
        return $this->status;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string pad_id = 3;</code>
     * @return string
     */
    public function getPadId()
    {
        return isset($this->pad_id) ? $this->pad_id : '';
    }

    public function hasPadId()
    {
        return isset($this->pad_id);
    }

    public function clearPadId()
    {
        unset($this->pad_id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string readonly_pad_id = 4;</code>
     * @return string
     */
    public function getReadonlyPadId()
    {
        return isset($this->readonly_pad_id) ? $this->readonly_pad_id : '';
    }

    public function hasReadonlyPadId()
    {
        return isset($this->readonly_pad_id);
    }

    public function clearReadonlyPadId()
    {
        unset($this->readonly_pad_id);
    }

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

        return $this;
    }

}

