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

namespace Rv\Data\NetworkAPI;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.LinkStatus</code>
 */
class LinkStatus 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>string os_version = 2;</code>
     */
    protected $os_version = '';
    /**
     * Generated from protobuf field <code>string version = 3;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>string description = 4;</code>
     */
    protected $description = '';
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 5;</code>
     */
    protected $group_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $platform
     *     @type string $os_version
     *     @type string $version
     *     @type string $description
     *     @type \Rv\Data\NetworkAPI\Group $group_info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::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>string os_version = 2;</code>
     * @return string
     */
    public function getOsVersion()
    {
        return $this->os_version;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string description = 4;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 5;</code>
     * @return \Rv\Data\NetworkAPI\Group|null
     */
    public function getGroupInfo()
    {
        return $this->group_info;
    }

    public function hasGroupInfo()
    {
        return isset($this->group_info);
    }

    public function clearGroupInfo()
    {
        unset($this->group_info);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Group group_info = 5;</code>
     * @param \Rv\Data\NetworkAPI\Group $var
     * @return $this
     */
    public function setGroupInfo($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Group::class);
        $this->group_info = $var;

        return $this;
    }

}

