<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: analyticsCapture.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.Capture</code>
 */
class Capture extends \Google\Protobuf\Internal\Message
{
    protected $Event;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Capture\Start $start
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsCapture::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

}

