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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.StickerSyncRMRMessage</code>
 */
class StickerSyncRMRMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string filehash = 1;</code>
     */
    private $filehash;
    /**
     * Generated from protobuf field <code>optional string rmrSource = 2;</code>
     */
    protected $rmrSource = null;
    /**
     * Generated from protobuf field <code>optional int64 requestTimestamp = 3;</code>
     */
    protected $requestTimestamp = null;

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

    /**
     * Generated from protobuf field <code>repeated string filehash = 1;</code>
     * @return RepeatedField<string>
     */
    public function getFilehash()
    {
        return $this->filehash;
    }

    /**
     * Generated from protobuf field <code>repeated string filehash = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setFilehash($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->filehash = $arr;

        return $this;
    }

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

    public function hasRmrSource()
    {
        return isset($this->rmrSource);
    }

    public function clearRmrSource()
    {
        unset($this->rmrSource);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 requestTimestamp = 3;</code>
     * @return int|string
     */
    public function getRequestTimestamp()
    {
        return isset($this->requestTimestamp) ? $this->requestTimestamp : 0;
    }

    public function hasRequestTimestamp()
    {
        return isset($this->requestTimestamp);
    }

    public function clearRequestTimestamp()
    {
        unset($this->requestTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional int64 requestTimestamp = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRequestTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->requestTimestamp = $var;

        return $this;
    }

}

