<?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.PaymentInviteMessage</code>
 */
class PaymentInviteMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentInviteMessage.ServiceType serviceType = 1;</code>
     */
    protected $serviceType = null;
    /**
     * Generated from protobuf field <code>optional int64 expiryTimestamp = 2;</code>
     */
    protected $expiryTimestamp = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentInviteMessage.ServiceType serviceType = 1;</code>
     * @return int
     */
    public function getServiceType()
    {
        return isset($this->serviceType) ? $this->serviceType : 0;
    }

    public function hasServiceType()
    {
        return isset($this->serviceType);
    }

    public function clearServiceType()
    {
        unset($this->serviceType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentInviteMessage.ServiceType serviceType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setServiceType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PaymentInviteMessage\ServiceType::class);
        $this->serviceType = $var;

        return $this;
    }

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

    public function hasExpiryTimestamp()
    {
        return isset($this->expiryTimestamp);
    }

    public function clearExpiryTimestamp()
    {
        unset($this->expiryTimestamp);
    }

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

        return $this;
    }

}

