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

namespace PhpWA\Protocol\Proto;

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

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

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

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

    public function hasHash()
    {
        return isset($this->hash);
    }

    public function clearHash()
    {
        unset($this->hash);
    }

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

        return $this;
    }

}

