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

namespace PhpWA\Protocol\Proto\UserPassword;

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

/**
 * Generated from protobuf message <code>proto.UserPassword.TransformerArg</code>
 */
class TransformerArg extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string key = 1;</code>
     */
    protected $key = null;
    /**
     * Generated from protobuf field <code>optional .proto.UserPassword.TransformerArg.Value value = 2;</code>
     */
    protected $value = null;

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

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

    public function hasKey()
    {
        return isset($this->key);
    }

    public function clearKey()
    {
        unset($this->key);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.UserPassword.TransformerArg.Value value = 2;</code>
     * @return \PhpWA\Protocol\Proto\UserPassword\TransformerArg\Value|null
     */
    public function getValue()
    {
        return $this->value;
    }

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

    /**
     * Generated from protobuf field <code>optional .proto.UserPassword.TransformerArg.Value value = 2;</code>
     * @param \PhpWA\Protocol\Proto\UserPassword\TransformerArg\Value $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\UserPassword\TransformerArg\Value::class);
        $this->value = $var;

        return $this;
    }

}

