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

namespace PhpWA\Protocol\Proto\UrlTrackingMap;

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

/**
 * Generated from protobuf message <code>proto.UrlTrackingMap.UrlTrackingMapElement</code>
 */
class UrlTrackingMapElement extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string originalUrl = 1;</code>
     */
    protected $originalUrl = null;
    /**
     * Generated from protobuf field <code>optional string unconsentedUsersUrl = 2;</code>
     */
    protected $unconsentedUsersUrl = null;
    /**
     * Generated from protobuf field <code>optional string consentedUsersUrl = 3;</code>
     */
    protected $consentedUsersUrl = null;
    /**
     * Generated from protobuf field <code>optional uint32 cardIndex = 4;</code>
     */
    protected $cardIndex = null;

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

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

    public function hasOriginalUrl()
    {
        return isset($this->originalUrl);
    }

    public function clearOriginalUrl()
    {
        unset($this->originalUrl);
    }

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

        return $this;
    }

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

    public function hasUnconsentedUsersUrl()
    {
        return isset($this->unconsentedUsersUrl);
    }

    public function clearUnconsentedUsersUrl()
    {
        unset($this->unconsentedUsersUrl);
    }

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

        return $this;
    }

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

    public function hasConsentedUsersUrl()
    {
        return isset($this->consentedUsersUrl);
    }

    public function clearConsentedUsersUrl()
    {
        unset($this->consentedUsersUrl);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 cardIndex = 4;</code>
     * @return int
     */
    public function getCardIndex()
    {
        return isset($this->cardIndex) ? $this->cardIndex : 0;
    }

    public function hasCardIndex()
    {
        return isset($this->cardIndex);
    }

    public function clearCardIndex()
    {
        unset($this->cardIndex);
    }

    /**
     * Generated from protobuf field <code>optional uint32 cardIndex = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setCardIndex($var)
    {
        GPBUtil::checkUint32($var);
        $this->cardIndex = $var;

        return $this;
    }

}

