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

namespace Rv\Analytics;

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

/**
 * Generated from protobuf message <code>rv.analytics.WHMStore</code>
 */
class WHMStore extends \Google\Protobuf\Internal\Message
{
    protected $Event;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\WHMStore\ViewStore $view_store
     *     @type \Rv\Analytics\WHMStore\Download $download
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsWHMStore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore.ViewStore view_store = 1;</code>
     * @return \Rv\Analytics\WHMStore\ViewStore|null
     */
    public function getViewStore()
    {
        return $this->readOneof(1);
    }

    public function hasViewStore()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore.ViewStore view_store = 1;</code>
     * @param \Rv\Analytics\WHMStore\ViewStore $var
     * @return $this
     */
    public function setViewStore($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\WHMStore\ViewStore::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore.Download download = 2;</code>
     * @return \Rv\Analytics\WHMStore\Download|null
     */
    public function getDownload()
    {
        return $this->readOneof(2);
    }

    public function hasDownload()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore.Download download = 2;</code>
     * @param \Rv\Analytics\WHMStore\Download $var
     * @return $this
     */
    public function setDownload($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\WHMStore\Download::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getEvent()
    {
        return $this->whichOneof("Event");
    }

}

