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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.SubmitPollResponseReq</code>
 */
class SubmitPollResponseReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string user_id = 2;</code>
     */
    protected $user_id = '';
    /**
     * Generated from protobuf field <code>string name = 3;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string poll_id = 4;</code>
     */
    protected $poll_id = '';
    /**
     * Generated from protobuf field <code>uint64 selected_option = 5;</code>
     */
    protected $selected_option = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_id
     *     @type string $user_id
     *     @type string $name
     *     @type string $poll_id
     *     @type int|string $selected_option
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetPolls::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 user_id = 2;</code>
     * @return string
     */
    public function getUserId()
    {
        return $this->user_id;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

