public function toProtobufRequest()
    {
        $request = new \POGOProtos\Networking\Requests\Request();
        $request->setRequestType($this->getType());

        if (($message = $this->getMessage()) !== null) {
            $request->setRequestMessage($message->toStream());
        }

        return $request;
    }
public function toProtobufRequest()
    {
        $request = new \POGOProtos\Networking\Requests\Request();
        $request->setRequestType($this->getType());

        if (($message = $this->getMessage()) !== null) {
            $request->setRequestMessage($message->toStream());
        }

        return $request;
    }
public function toProtobufRequest ( ) { $ request = new \ POGOProtos \ Networking \ Requests \ Request ( ) ; $ request -> setRequestType ( $ this -> getType ( ) ) ; if ( ( $ message = $ this -> getMessage ( ) ) !== null ) { $ request -> setRequestMessage ( $ message -> toStream ( ) ) ; } return $ request ; }
Converts Rpc Request to protobuf request

@return \POGOProtos\Networking\Requests\Request
Converts Rpc Request to protobuf request