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

namespace PhpWA\Protocol\Proto\UserPassword\TransformerArg;

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

/**
 * Generated from protobuf message <code>proto.UserPassword.TransformerArg.Value</code>
 */
class Value extends \Google\Protobuf\Internal\Message
{
    protected $value;

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

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

    public function hasAsBlob()
    {
        return $this->hasOneof(1);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 asUnsignedInteger = 2;</code>
     * @return int
     */
    public function getAsUnsignedInteger()
    {
        return $this->readOneof(2);
    }

    public function hasAsUnsignedInteger()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>uint32 asUnsignedInteger = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setAsUnsignedInteger($var)
    {
        GPBUtil::checkUint32($var);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->whichOneof("value");
    }

}

