<?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.BotReminderMetadata</code>
 */
class BotReminderMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 1;</code>
     */
    protected $requestMessageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderAction action = 2;</code>
     */
    protected $action = null;
    /**
     * Generated from protobuf field <code>optional string name = 3;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional uint64 nextTriggerTimestamp = 4;</code>
     */
    protected $nextTriggerTimestamp = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderFrequency frequency = 5;</code>
     */
    protected $frequency = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 1;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getRequestMessageKey()
    {
        return $this->requestMessageKey;
    }

    public function hasRequestMessageKey()
    {
        return isset($this->requestMessageKey);
    }

    public function clearRequestMessageKey()
    {
        unset($this->requestMessageKey);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 1;</code>
     * @param \PhpWA\Protocol\Proto\MessageKey $var
     * @return $this
     */
    public function setRequestMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->requestMessageKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderAction action = 2;</code>
     * @return int
     */
    public function getAction()
    {
        return isset($this->action) ? $this->action : 0;
    }

    public function hasAction()
    {
        return isset($this->action);
    }

    public function clearAction()
    {
        unset($this->action);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderAction action = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setAction($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotReminderMetadata\ReminderAction::class);
        $this->action = $var;

        return $this;
    }

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

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 nextTriggerTimestamp = 4;</code>
     * @return int|string
     */
    public function getNextTriggerTimestamp()
    {
        return isset($this->nextTriggerTimestamp) ? $this->nextTriggerTimestamp : 0;
    }

    public function hasNextTriggerTimestamp()
    {
        return isset($this->nextTriggerTimestamp);
    }

    public function clearNextTriggerTimestamp()
    {
        unset($this->nextTriggerTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional uint64 nextTriggerTimestamp = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setNextTriggerTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->nextTriggerTimestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderFrequency frequency = 5;</code>
     * @return int
     */
    public function getFrequency()
    {
        return isset($this->frequency) ? $this->frequency : 0;
    }

    public function hasFrequency()
    {
        return isset($this->frequency);
    }

    public function clearFrequency()
    {
        unset($this->frequency);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotReminderMetadata.ReminderFrequency frequency = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setFrequency($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotReminderMetadata\ReminderFrequency::class);
        $this->frequency = $var;

        return $this;
    }

}

