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

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse</code>
 */
class CompanionCanonicalUserNonceFetchResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string nonce = 1;</code>
     */
    protected $nonce = null;
    /**
     * Generated from protobuf field <code>optional string waFbid = 2;</code>
     */
    protected $waFbid = null;
    /**
     * Generated from protobuf field <code>optional bool forceRefresh = 3;</code>
     */
    protected $forceRefresh = null;

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

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

    public function hasNonce()
    {
        return isset($this->nonce);
    }

    public function clearNonce()
    {
        unset($this->nonce);
    }

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

        return $this;
    }

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

    public function hasWaFbid()
    {
        return isset($this->waFbid);
    }

    public function clearWaFbid()
    {
        unset($this->waFbid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool forceRefresh = 3;</code>
     * @return bool
     */
    public function getForceRefresh()
    {
        return isset($this->forceRefresh) ? $this->forceRefresh : false;
    }

    public function hasForceRefresh()
    {
        return isset($this->forceRefresh);
    }

    public function clearForceRefresh()
    {
        unset($this->forceRefresh);
    }

    /**
     * Generated from protobuf field <code>optional bool forceRefresh = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setForceRefresh($var)
    {
        GPBUtil::checkBool($var);
        $this->forceRefresh = $var;

        return $this;
    }

}

