<?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.NetworkApp</code>
 */
class NetworkApp extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.NetworkApp.AppID app_id = 1;</code>
     */
    protected $app_id = 0;
    /**
     * Generated from protobuf field <code>string device_id = 2;</code>
     */
    protected $device_id = '';

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

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.NetworkApp.AppID app_id = 1;</code>
     * @return int
     */
    public function getAppId()
    {
        return $this->app_id;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.NetworkApp.AppID app_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAppId($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trackedevents\NetworkApp\AppID::class);
        $this->app_id = $var;

        return $this;
    }

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

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

        return $this;
    }

}

