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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.PollEncValue</code>
 */
class PollEncValue extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes encPayload = 1;</code>
     */
    protected $encPayload = null;
    /**
     * Generated from protobuf field <code>optional bytes encIv = 2;</code>
     */
    protected $encIv = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $encPayload
     *     @type string $encIv
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasEncPayload()
    {
        return isset($this->encPayload);
    }

    public function clearEncPayload()
    {
        unset($this->encPayload);
    }

    /**
     * Generated from protobuf field <code>optional bytes encPayload = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEncPayload($var)
    {
        GPBUtil::checkString($var, False);
        $this->encPayload = $var;

        return $this;
    }

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

    public function hasEncIv()
    {
        return isset($this->encIv);
    }

    public function clearEncIv()
    {
        unset($this->encIv);
    }

    /**
     * Generated from protobuf field <code>optional bytes encIv = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEncIv($var)
    {
        GPBUtil::checkString($var, False);
        $this->encIv = $var;

        return $this;
    }

}

