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

namespace RoadRunner\Centrifugal\API\DTO\V1;

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

/**
 * Generated from protobuf message <code>centrifugal.centrifugo.api.SendPushNotificationRequest</code>
 */
class SendPushNotificationRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushRecipient recipient = 1;</code>
     */
    protected $recipient = null;
    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushNotification notification = 2;</code>
     */
    protected $notification = null;
    /**
     * unique identifier for push notification, used for matching in Centrifugo analytics.
     *
     * Generated from protobuf field <code>string uid = 3;</code>
     */
    protected $uid = '';
    /**
     * Generated from protobuf field <code>int64 send_at = 4;</code>
     */
    protected $send_at = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \RoadRunner\Centrifugal\API\DTO\V1\PushRecipient $recipient
     *     @type \RoadRunner\Centrifugal\API\DTO\V1\PushNotification $notification
     *     @type string $uid
     *           unique identifier for push notification, used for matching in Centrifugo analytics.
     *     @type int|string $send_at
     * }
     */
    public function __construct($data = NULL) {
        \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushRecipient recipient = 1;</code>
     * @return \RoadRunner\Centrifugal\API\DTO\V1\PushRecipient|null
     */
    public function getRecipient()
    {
        return $this->recipient;
    }

    public function hasRecipient()
    {
        return isset($this->recipient);
    }

    public function clearRecipient()
    {
        unset($this->recipient);
    }

    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushRecipient recipient = 1;</code>
     * @param \RoadRunner\Centrifugal\API\DTO\V1\PushRecipient $var
     * @return $this
     */
    public function setRecipient($var)
    {
        GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushRecipient::class);
        $this->recipient = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushNotification notification = 2;</code>
     * @return \RoadRunner\Centrifugal\API\DTO\V1\PushNotification|null
     */
    public function getNotification()
    {
        return $this->notification;
    }

    public function hasNotification()
    {
        return isset($this->notification);
    }

    public function clearNotification()
    {
        unset($this->notification);
    }

    /**
     * Generated from protobuf field <code>.centrifugal.centrifugo.api.PushNotification notification = 2;</code>
     * @param \RoadRunner\Centrifugal\API\DTO\V1\PushNotification $var
     * @return $this
     */
    public function setNotification($var)
    {
        GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushNotification::class);
        $this->notification = $var;

        return $this;
    }

    /**
     * unique identifier for push notification, used for matching in Centrifugo analytics.
     *
     * Generated from protobuf field <code>string uid = 3;</code>
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * unique identifier for push notification, used for matching in Centrifugo analytics.
     *
     * Generated from protobuf field <code>string uid = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->uid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 send_at = 4;</code>
     * @return int|string
     */
    public function getSendAt()
    {
        return $this->send_at;
    }

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

        return $this;
    }

}

