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

namespace Rv\Analytics\Trackedevents;

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

/**
 * Generated from protobuf message <code>rv.analytics.trackedevents.Device</code>
 */
class Device extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string protocol = 1;</code>
     */
    protected $protocol = '';
    /**
     * Generated from protobuf field <code>string device_name = 2;</code>
     */
    protected $device_name = '';
    /**
     * Generated from protobuf field <code>string device_protocol = 3;</code>
     */
    protected $device_protocol = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $protocol
     *     @type string $device_name
     *     @type string $device_protocol
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTrackedEvents::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string protocol = 1;</code>
     * @return string
     */
    public function getProtocol()
    {
        return $this->protocol;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string device_name = 2;</code>
     * @return string
     */
    public function getDeviceName()
    {
        return $this->device_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string device_protocol = 3;</code>
     * @return string
     */
    public function getDeviceProtocol()
    {
        return $this->device_protocol;
    }

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

        return $this;
    }

}

