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

namespace PhpWA\Protocol\Proto\ContextInfo;

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

/**
 * Generated from protobuf message <code>proto.ContextInfo.UTMInfo</code>
 */
class UTMInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string utmSource = 1;</code>
     */
    protected $utmSource = null;
    /**
     * Generated from protobuf field <code>optional string utmCampaign = 2;</code>
     */
    protected $utmCampaign = null;

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

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

    public function hasUtmSource()
    {
        return isset($this->utmSource);
    }

    public function clearUtmSource()
    {
        unset($this->utmSource);
    }

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

        return $this;
    }

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

    public function hasUtmCampaign()
    {
        return isset($this->utmCampaign);
    }

    public function clearUtmCampaign()
    {
        unset($this->utmCampaign);
    }

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

        return $this;
    }

}

