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

namespace PhpWA\Protocol\Proto\Message\InteractiveMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.InteractiveMessage.ShopMessage</code>
 */
class ShopMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.ShopMessage.Surface surface = 2;</code>
     */
    protected $surface = null;
    /**
     * Generated from protobuf field <code>optional int32 messageVersion = 3;</code>
     */
    protected $messageVersion = null;

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

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

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.ShopMessage.Surface surface = 2;</code>
     * @return int
     */
    public function getSurface()
    {
        return isset($this->surface) ? $this->surface : 0;
    }

    public function hasSurface()
    {
        return isset($this->surface);
    }

    public function clearSurface()
    {
        unset($this->surface);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.ShopMessage.Surface surface = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSurface($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\ShopMessage\Surface::class);
        $this->surface = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 messageVersion = 3;</code>
     * @return int
     */
    public function getMessageVersion()
    {
        return isset($this->messageVersion) ? $this->messageVersion : 0;
    }

    public function hasMessageVersion()
    {
        return isset($this->messageVersion);
    }

    public function clearMessageVersion()
    {
        unset($this->messageVersion);
    }

    /**
     * Generated from protobuf field <code>optional int32 messageVersion = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMessageVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->messageVersion = $var;

        return $this;
    }

}

