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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.ApplicationInfo</code>
 */
class ApplicationInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Platform platform = 1;</code>
     */
    protected $platform = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Version platform_version = 2;</code>
     */
    protected $platform_version = null;
    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Application application = 3;</code>
     */
    protected $application = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Version application_version = 4;</code>
     */
    protected $application_version = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $platform
     *     @type \Rv\Data\Version $platform_version
     *     @type int $application
     *     @type \Rv\Data\Version $application_version
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ApplicationInfo::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Platform platform = 1;</code>
     * @return int
     */
    public function getPlatform()
    {
        return $this->platform;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Platform platform = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPlatform($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\ApplicationInfo\Platform::class);
        $this->platform = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Version platform_version = 2;</code>
     * @return \Rv\Data\Version|null
     */
    public function getPlatformVersion()
    {
        return $this->platform_version;
    }

    public function hasPlatformVersion()
    {
        return isset($this->platform_version);
    }

    public function clearPlatformVersion()
    {
        unset($this->platform_version);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Version platform_version = 2;</code>
     * @param \Rv\Data\Version $var
     * @return $this
     */
    public function setPlatformVersion($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Version::class);
        $this->platform_version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Application application = 3;</code>
     * @return int
     */
    public function getApplication()
    {
        return $this->application;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ApplicationInfo.Application application = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setApplication($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\ApplicationInfo\Application::class);
        $this->application = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Version application_version = 4;</code>
     * @return \Rv\Data\Version|null
     */
    public function getApplicationVersion()
    {
        return $this->application_version;
    }

    public function hasApplicationVersion()
    {
        return isset($this->application_version);
    }

    public function clearApplicationVersion()
    {
        unset($this->application_version);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Version application_version = 4;</code>
     * @param \Rv\Data\Version $var
     * @return $this
     */
    public function setApplicationVersion($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Version::class);
        $this->application_version = $var;

        return $this;
    }

}

