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

namespace Rv\Data\ProLink\HandlerIn;

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

/**
 * Generated from protobuf message <code>rv.data.ProLink.HandlerIn.ServerState</code>
 */
class ServerState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string local_ip = 1;</code>
     */
    protected $local_ip = '';
    /**
     * Generated from protobuf field <code>string public_ip = 2;</code>
     */
    protected $public_ip = '';
    /**
     * Generated from protobuf field <code>uint32 port = 3;</code>
     */
    protected $port = 0;
    /**
     * Generated from protobuf field <code>bool success = 4;</code>
     */
    protected $success = false;
    /**
     * Generated from protobuf field <code>uint32 tcp_stream_port = 5;</code>
     */
    protected $tcp_stream_port = 0;
    /**
     * Generated from protobuf field <code>bool tcp_stream_success = 6;</code>
     */
    protected $tcp_stream_success = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $local_ip
     *     @type string $public_ip
     *     @type int $port
     *     @type bool $success
     *     @type int $tcp_stream_port
     *     @type bool $tcp_stream_success
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 port = 3;</code>
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * Generated from protobuf field <code>uint32 port = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setPort($var)
    {
        GPBUtil::checkUint32($var);
        $this->port = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool success = 4;</code>
     * @return bool
     */
    public function getSuccess()
    {
        return $this->success;
    }

    /**
     * Generated from protobuf field <code>bool success = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setSuccess($var)
    {
        GPBUtil::checkBool($var);
        $this->success = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 tcp_stream_port = 5;</code>
     * @return int
     */
    public function getTcpStreamPort()
    {
        return $this->tcp_stream_port;
    }

    /**
     * Generated from protobuf field <code>uint32 tcp_stream_port = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setTcpStreamPort($var)
    {
        GPBUtil::checkUint32($var);
        $this->tcp_stream_port = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool tcp_stream_success = 6;</code>
     * @return bool
     */
    public function getTcpStreamSuccess()
    {
        return $this->tcp_stream_success;
    }

    /**
     * Generated from protobuf field <code>bool tcp_stream_success = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setTcpStreamSuccess($var)
    {
        GPBUtil::checkBool($var);
        $this->tcp_stream_success = $var;

        return $this;
    }

}

