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

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.DeleteMessageForMeAction</code>
 */
class DeleteMessageForMeAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool deleteMedia = 1;</code>
     */
    protected $deleteMedia = null;
    /**
     * Generated from protobuf field <code>optional int64 messageTimestamp = 2;</code>
     */
    protected $messageTimestamp = null;

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

    /**
     * Generated from protobuf field <code>optional bool deleteMedia = 1;</code>
     * @return bool
     */
    public function getDeleteMedia()
    {
        return isset($this->deleteMedia) ? $this->deleteMedia : false;
    }

    public function hasDeleteMedia()
    {
        return isset($this->deleteMedia);
    }

    public function clearDeleteMedia()
    {
        unset($this->deleteMedia);
    }

    /**
     * Generated from protobuf field <code>optional bool deleteMedia = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDeleteMedia($var)
    {
        GPBUtil::checkBool($var);
        $this->deleteMedia = $var;

        return $this;
    }

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

    public function hasMessageTimestamp()
    {
        return isset($this->messageTimestamp);
    }

    public function clearMessageTimestamp()
    {
        unset($this->messageTimestamp);
    }

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

        return $this;
    }

}

