<?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.StatusPSA</code>
 */
class StatusPSA extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint64 campaignId = 44;</code>
     */
    protected $campaignId = null;
    /**
     * Generated from protobuf field <code>optional uint64 campaignExpirationTimestamp = 45;</code>
     */
    protected $campaignExpirationTimestamp = null;

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

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

    public function hasCampaignId()
    {
        return isset($this->campaignId);
    }

    public function clearCampaignId()
    {
        unset($this->campaignId);
    }

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

        return $this;
    }

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

    public function hasCampaignExpirationTimestamp()
    {
        return isset($this->campaignExpirationTimestamp);
    }

    public function clearCampaignExpirationTimestamp()
    {
        unset($this->campaignExpirationTimestamp);
    }

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

        return $this;
    }

}

