<?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.PollResponsesResult</code>
 */
class PollResponsesResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string question = 1;</code>
     */
    protected $question = '';
    /**
     * Generated from protobuf field <code>uint64 total_responses = 2;</code>
     */
    protected $total_responses = 0;
    /**
     * Generated from protobuf field <code>repeated .plugnmeet.PollResponsesResultOptions options = 3;</code>
     */
    private $options;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $question
     *     @type int|string $total_responses
     *     @type \Mynaparrot\PlugnmeetProto\PollResponsesResultOptions[] $options
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetPolls::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.PollResponsesResultOptions options = 3;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\PollResponsesResultOptions>
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.PollResponsesResultOptions options = 3;</code>
     * @param \Mynaparrot\PlugnmeetProto\PollResponsesResultOptions[] $var
     * @return $this
     */
    public function setOptions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mynaparrot\PlugnmeetProto\PollResponsesResultOptions::class);
        $this->options = $arr;

        return $this;
    }

}

