Page MenuHomePhabricator

D5596.id18318.diff
No OneTemporary

D5596.id18318.diff

This file is larger than 256 KB, so syntax highlighting was skipped.
diff --git a/native/cpp/CommonCpp/grpc/Client.h b/native/cpp/CommonCpp/grpc/Client.h
--- a/native/cpp/CommonCpp/grpc/Client.h
+++ b/native/cpp/CommonCpp/grpc/Client.h
@@ -29,18 +29,6 @@
std::shared_ptr<grpc::ChannelCredentials> credentials,
const std::string id,
const std::string deviceToken);
-
- CheckResponseType checkIfPrimaryDeviceOnline();
- bool becomeNewPrimaryDevice();
- void sendPong();
-
- grpc::Status send(
- std::string sessionID,
- std::string toDeviceID,
- std::string payload,
- std::vector<std::string> blobHashes);
-
- void get(std::string sessionID);
void setOnReadDoneCallback(std::function<void(std::string)> callback);
void setOnOpenCallback(std::function<void()> callback);
void setOnCloseCallback(std::function<void()> callback);
diff --git a/native/cpp/CommonCpp/grpc/Client.cpp b/native/cpp/CommonCpp/grpc/Client.cpp
--- a/native/cpp/CommonCpp/grpc/Client.cpp
+++ b/native/cpp/CommonCpp/grpc/Client.cpp
@@ -17,80 +17,6 @@
this->stub_ = TunnelbrokerService::NewStub(channel);
}
-tunnelbroker::CheckResponseType Client::checkIfPrimaryDeviceOnline() {
- grpc::ClientContext context;
- tunnelbroker::CheckRequest request;
- tunnelbroker::CheckResponse response;
-
- request.set_userid(this->id);
- request.set_devicetoken(this->deviceToken);
-
- grpc::Status status =
- stub_->CheckIfPrimaryDeviceOnline(&context, request, &response);
- if (!status.ok()) {
- throw std::runtime_error(status.error_message());
- }
- return response.checkresponsetype();
-}
-
-bool Client::becomeNewPrimaryDevice() {
- grpc::ClientContext context;
- tunnelbroker::NewPrimaryRequest request;
- tunnelbroker::NewPrimaryResponse response;
-
- request.set_userid(this->id);
- request.set_devicetoken(this->deviceToken);
-
- grpc::Status status =
- stub_->BecomeNewPrimaryDevice(&context, request, &response);
- if (!status.ok()) {
- throw std::runtime_error(status.error_message());
- }
- return response.success();
-}
-
-void Client::sendPong() {
- grpc::ClientContext context;
- tunnelbroker::PongRequest request;
- google::protobuf::Empty response;
-
- request.set_userid(this->id);
- request.set_devicetoken(this->deviceToken);
-
- Logger::log("Sending PONG");
- grpc::Status status = this->stub_->SendPong(&context, request, &response);
- if (!status.ok()) {
- std::ostringstream errorMsg;
- errorMsg << "Sending PONG failed: " << status.error_message() << std::endl;
- Logger::log(errorMsg.str());
- }
-}
-
-grpc::Status Client::send(
- std::string sessionID,
- std::string toDeviceID,
- std::string payload,
- std::vector<std::string> blobHashes) {
- grpc::ClientContext context;
- tunnelbroker::SendRequest request;
- google::protobuf::Empty response;
-
- request.set_sessionid(sessionID);
- request.set_todeviceid(toDeviceID);
- request.set_payload(payload);
-
- for (const auto &blob : blobHashes) {
- request.add_blobhashes(blob);
- }
-
- return this->stub_->Send(&context, request, &response);
-}
-
-void Client::get(std::string sessionID) {
- this->clientGetReadReactor =
- std::make_unique<ClientGetReadReactor>(this->stub_.get(), sessionID);
-}
-
void Client::setOnReadDoneCallback(std::function<void(std::string)> callback) {
if (!this->clientGetReadReactor) {
return;
diff --git a/services/tunnelbroker/src/server/mod.rs b/services/tunnelbroker/src/server/mod.rs
--- a/services/tunnelbroker/src/server/mod.rs
+++ b/services/tunnelbroker/src/server/mod.rs
@@ -42,46 +42,6 @@
) -> Result<Response<Self::MessagesStreamStream>, Status> {
Err(Status::unimplemented("Not implemented yet"))
}
-
- // These empty old API handlers are deprecated and should be removed.
- // They are implemented only to fix the building process.
- async fn check_if_primary_device_online(
- &self,
- _request: Request<tunnelbroker::CheckRequest>,
- ) -> Result<Response<tunnelbroker::CheckResponse>, Status> {
- Err(Status::cancelled("Deprecated"))
- }
-
- async fn become_new_primary_device(
- &self,
- _request: Request<tunnelbroker::NewPrimaryRequest>,
- ) -> Result<Response<tunnelbroker::NewPrimaryResponse>, Status> {
- Err(Status::cancelled("Deprecated"))
- }
-
- async fn send_pong(
- &self,
- _request: Request<tunnelbroker::PongRequest>,
- ) -> Result<Response<()>, Status> {
- Err(Status::cancelled("Deprecated"))
- }
-
- async fn send(
- &self,
- _request: Request<tunnelbroker::SendRequest>,
- ) -> Result<Response<()>, Status> {
- Err(Status::cancelled("Deprecated"))
- }
-
- type GetStream = Pin<
- Box<dyn Stream<Item = Result<tunnelbroker::GetResponse, Status>> + Send>,
- >;
- async fn get(
- &self,
- _request: Request<tunnelbroker::GetRequest>,
- ) -> Result<Response<Self::GetStream>, Status> {
- Err(Status::cancelled("Deprecated"))
- }
}
pub async fn run_grpc_server() -> Result<()> {
diff --git a/shared/protos/_generated/tunnelbroker.grpc.pb.h b/shared/protos/_generated/tunnelbroker.grpc.pb.h
--- a/shared/protos/_generated/tunnelbroker.grpc.pb.h
+++ b/shared/protos/_generated/tunnelbroker.grpc.pb.h
@@ -35,33 +35,6 @@
class StubInterface {
public:
virtual ~StubInterface() {}
- // The old API service methods
- // to support the native client build
- // until we switch to the new one
- //
- virtual ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::tunnelbroker::CheckResponse* response) = 0;
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>> AsyncCheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>>(AsyncCheckIfPrimaryDeviceOnlineRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>> PrepareAsyncCheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>>(PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(context, request, cq));
- }
- virtual ::grpc::Status BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::tunnelbroker::NewPrimaryResponse* response) = 0;
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>> AsyncBecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>>(AsyncBecomeNewPrimaryDeviceRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>> PrepareAsyncBecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>>(PrepareAsyncBecomeNewPrimaryDeviceRaw(context, request, cq));
- }
- virtual ::grpc::Status SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::google::protobuf::Empty* response) = 0;
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncSendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncSendPongRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncSendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncSendPongRaw(context, request, cq));
- }
- // New API service methods
- //
virtual ::grpc::Status SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::tunnelbroker::SessionSignatureResponse* response) = 0;
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::SessionSignatureResponse>> AsyncSessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::SessionSignatureResponse>>(AsyncSessionSignatureRaw(context, request, cq));
@@ -76,25 +49,6 @@
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewSessionResponse>> PrepareAsyncNewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewSessionResponse>>(PrepareAsyncNewSessionRaw(context, request, cq));
}
- virtual ::grpc::Status Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::google::protobuf::Empty* response) = 0;
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncSend(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncSendRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncSend(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncSendRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientReaderInterface< ::tunnelbroker::GetResponse>> Get(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request) {
- return std::unique_ptr< ::grpc::ClientReaderInterface< ::tunnelbroker::GetResponse>>(GetRaw(context, request));
- }
- std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>> AsyncGet(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
- return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>>(AsyncGetRaw(context, request, cq, tag));
- }
- std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>> PrepareAsyncGet(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>>(PrepareAsyncGetRaw(context, request, cq));
- }
- // Replacing Send and Get with a single bidirectional streaming RPC
- // The client should provide the valid `sessionID` identifier
- // from the `NewSession` in the stream request metadata
std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>> MessagesStream(::grpc::ClientContext* context) {
return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>>(MessagesStreamRaw(context));
}
@@ -107,49 +61,20 @@
class async_interface {
public:
virtual ~async_interface() {}
- // The old API service methods
- // to support the native client build
- // until we switch to the new one
- //
- virtual void CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, std::function<void(::grpc::Status)>) = 0;
- virtual void CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
- virtual void BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, std::function<void(::grpc::Status)>) = 0;
- virtual void BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
- virtual void SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
- virtual void SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
- // New API service methods
- //
virtual void SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response, std::function<void(::grpc::Status)>) = 0;
virtual void SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
virtual void NewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response, std::function<void(::grpc::Status)>) = 0;
virtual void NewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
- virtual void Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
- virtual void Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
- virtual void Get(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest* request, ::grpc::ClientReadReactor< ::tunnelbroker::GetResponse>* reactor) = 0;
- // Replacing Send and Get with a single bidirectional streaming RPC
- // The client should provide the valid `sessionID` identifier
- // from the `NewSession` in the stream request metadata
virtual void MessagesStream(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::tunnelbroker::MessageToTunnelbroker,::tunnelbroker::MessageToClient>* reactor) = 0;
};
typedef class async_interface experimental_async_interface;
virtual class async_interface* async() { return nullptr; }
class async_interface* experimental_async() { return async(); }
private:
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>* AsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::CheckResponse>* PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>* AsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewPrimaryResponse>* PrepareAsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::SessionSignatureResponse>* AsyncSessionSignatureRaw(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::SessionSignatureResponse>* PrepareAsyncSessionSignatureRaw(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewSessionResponse>* AsyncNewSessionRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::tunnelbroker::NewSessionResponse>* PrepareAsyncNewSessionRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientReaderInterface< ::tunnelbroker::GetResponse>* GetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request) = 0;
- virtual ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>* AsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
- virtual ::grpc::ClientAsyncReaderInterface< ::tunnelbroker::GetResponse>* PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientReaderWriterInterface< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* MessagesStreamRaw(::grpc::ClientContext* context) = 0;
virtual ::grpc::ClientAsyncReaderWriterInterface< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* AsyncMessagesStreamRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0;
virtual ::grpc::ClientAsyncReaderWriterInterface< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* PrepareAsyncMessagesStreamRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0;
@@ -157,27 +82,6 @@
class Stub final : public StubInterface {
public:
Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::tunnelbroker::CheckResponse* response) override;
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>> AsyncCheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>>(AsyncCheckIfPrimaryDeviceOnlineRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>> PrepareAsyncCheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>>(PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(context, request, cq));
- }
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::tunnelbroker::NewPrimaryResponse* response) override;
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>> AsyncBecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>>(AsyncBecomeNewPrimaryDeviceRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>> PrepareAsyncBecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>>(PrepareAsyncBecomeNewPrimaryDeviceRaw(context, request, cq));
- }
- ::grpc::Status SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::google::protobuf::Empty* response) override;
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncSendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncSendPongRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncSendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncSendPongRaw(context, request, cq));
- }
::grpc::Status SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::tunnelbroker::SessionSignatureResponse* response) override;
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::SessionSignatureResponse>> AsyncSessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::SessionSignatureResponse>>(AsyncSessionSignatureRaw(context, request, cq));
@@ -192,22 +96,6 @@
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewSessionResponse>> PrepareAsyncNewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewSessionResponse>>(PrepareAsyncNewSessionRaw(context, request, cq));
}
- ::grpc::Status Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::google::protobuf::Empty* response) override;
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncSend(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncSendRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncSend(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncSendRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientReader< ::tunnelbroker::GetResponse>> Get(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request) {
- return std::unique_ptr< ::grpc::ClientReader< ::tunnelbroker::GetResponse>>(GetRaw(context, request));
- }
- std::unique_ptr< ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>> AsyncGet(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
- return std::unique_ptr< ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>>(AsyncGetRaw(context, request, cq, tag));
- }
- std::unique_ptr< ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>> PrepareAsyncGet(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>>(PrepareAsyncGetRaw(context, request, cq));
- }
std::unique_ptr< ::grpc::ClientReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>> MessagesStream(::grpc::ClientContext* context) {
return std::unique_ptr< ::grpc::ClientReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>>(MessagesStreamRaw(context));
}
@@ -220,19 +108,10 @@
class async final :
public StubInterface::async_interface {
public:
- void CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, std::function<void(::grpc::Status)>) override;
- void CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
- void BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, std::function<void(::grpc::Status)>) override;
- void BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
- void SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
- void SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
void SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response, std::function<void(::grpc::Status)>) override;
void SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
void NewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response, std::function<void(::grpc::Status)>) override;
void NewSession(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
- void Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
- void Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
- void Get(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest* request, ::grpc::ClientReadReactor< ::tunnelbroker::GetResponse>* reactor) override;
void MessagesStream(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::tunnelbroker::MessageToTunnelbroker,::tunnelbroker::MessageToClient>* reactor) override;
private:
friend class Stub;
@@ -245,31 +124,15 @@
private:
std::shared_ptr< ::grpc::ChannelInterface> channel_;
class async async_stub_{this};
- ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>* AsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>* PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>* AsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>* PrepareAsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::tunnelbroker::SessionSignatureResponse>* AsyncSessionSignatureRaw(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::tunnelbroker::SessionSignatureResponse>* PrepareAsyncSessionSignatureRaw(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewSessionResponse>* AsyncNewSessionRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewSessionResponse>* PrepareAsyncNewSessionRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewSessionRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientReader< ::tunnelbroker::GetResponse>* GetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request) override;
- ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>* AsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq, void* tag) override;
- ::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>* PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* MessagesStreamRaw(::grpc::ClientContext* context) override;
::grpc::ClientAsyncReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* AsyncMessagesStreamRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override;
::grpc::ClientAsyncReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* PrepareAsyncMessagesStreamRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override;
- const ::grpc::internal::RpcMethod rpcmethod_CheckIfPrimaryDeviceOnline_;
- const ::grpc::internal::RpcMethod rpcmethod_BecomeNewPrimaryDevice_;
- const ::grpc::internal::RpcMethod rpcmethod_SendPong_;
const ::grpc::internal::RpcMethod rpcmethod_SessionSignature_;
const ::grpc::internal::RpcMethod rpcmethod_NewSession_;
- const ::grpc::internal::RpcMethod rpcmethod_Send_;
- const ::grpc::internal::RpcMethod rpcmethod_Get_;
const ::grpc::internal::RpcMethod rpcmethod_MessagesStream_;
};
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
@@ -278,91 +141,17 @@
public:
Service();
virtual ~Service();
- // The old API service methods
- // to support the native client build
- // until we switch to the new one
- //
- virtual ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response);
- virtual ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response);
- virtual ::grpc::Status SendPong(::grpc::ServerContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response);
- // New API service methods
- //
virtual ::grpc::Status SessionSignature(::grpc::ServerContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response);
virtual ::grpc::Status NewSession(::grpc::ServerContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response);
- virtual ::grpc::Status Send(::grpc::ServerContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response);
- virtual ::grpc::Status Get(::grpc::ServerContext* context, const ::tunnelbroker::GetRequest* request, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* writer);
- // Replacing Send and Get with a single bidirectional streaming RPC
- // The client should provide the valid `sessionID` identifier
- // from the `NewSession` in the stream request metadata
virtual ::grpc::Status MessagesStream(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::tunnelbroker::MessageToClient, ::tunnelbroker::MessageToTunnelbroker>* stream);
};
template <class BaseClass>
- class WithAsyncMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithAsyncMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodAsync(0);
- }
- ~WithAsyncMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestCheckIfPrimaryDeviceOnline(::grpc::ServerContext* context, ::tunnelbroker::CheckRequest* request, ::grpc::ServerAsyncResponseWriter< ::tunnelbroker::CheckResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithAsyncMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithAsyncMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodAsync(1);
- }
- ~WithAsyncMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestBecomeNewPrimaryDevice(::grpc::ServerContext* context, ::tunnelbroker::NewPrimaryRequest* request, ::grpc::ServerAsyncResponseWriter< ::tunnelbroker::NewPrimaryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithAsyncMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithAsyncMethod_SendPong() {
- ::grpc::Service::MarkMethodAsync(2);
- }
- ~WithAsyncMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestSendPong(::grpc::ServerContext* context, ::tunnelbroker::PongRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
class WithAsyncMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_SessionSignature() {
- ::grpc::Service::MarkMethodAsync(3);
+ ::grpc::Service::MarkMethodAsync(0);
}
~WithAsyncMethod_SessionSignature() override {
BaseClassMustBeDerivedFromService(this);
@@ -373,7 +162,7 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestSessionSignature(::grpc::ServerContext* context, ::tunnelbroker::SessionSignatureRequest* request, ::grpc::ServerAsyncResponseWriter< ::tunnelbroker::SessionSignatureResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
@@ -382,7 +171,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_NewSession() {
- ::grpc::Service::MarkMethodAsync(4);
+ ::grpc::Service::MarkMethodAsync(1);
}
~WithAsyncMethod_NewSession() override {
BaseClassMustBeDerivedFromService(this);
@@ -393,47 +182,7 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestNewSession(::grpc::ServerContext* context, ::tunnelbroker::NewSessionRequest* request, ::grpc::ServerAsyncResponseWriter< ::tunnelbroker::NewSessionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithAsyncMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithAsyncMethod_Send() {
- ::grpc::Service::MarkMethodAsync(5);
- }
- ~WithAsyncMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestSend(::grpc::ServerContext* context, ::tunnelbroker::SendRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithAsyncMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithAsyncMethod_Get() {
- ::grpc::Service::MarkMethodAsync(6);
- }
- ~WithAsyncMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestGet(::grpc::ServerContext* context, ::tunnelbroker::GetRequest* request, ::grpc::ServerAsyncWriter< ::tunnelbroker::GetResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncServerStreaming(6, context, request, writer, new_call_cq, notification_cq, tag);
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
@@ -442,7 +191,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_MessagesStream() {
- ::grpc::Service::MarkMethodAsync(7);
+ ::grpc::Service::MarkMethodAsync(2);
}
~WithAsyncMethod_MessagesStream() override {
BaseClassMustBeDerivedFromService(this);
@@ -453,104 +202,23 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestMessagesStream(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::tunnelbroker::MessageToClient, ::tunnelbroker::MessageToTunnelbroker>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncBidiStreaming(7, context, stream, new_call_cq, notification_cq, tag);
- }
- };
- typedef WithAsyncMethod_CheckIfPrimaryDeviceOnline<WithAsyncMethod_BecomeNewPrimaryDevice<WithAsyncMethod_SendPong<WithAsyncMethod_SessionSignature<WithAsyncMethod_NewSession<WithAsyncMethod_Send<WithAsyncMethod_Get<WithAsyncMethod_MessagesStream<Service > > > > > > > > AsyncService;
- template <class BaseClass>
- class WithCallbackMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithCallbackMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodCallback(0,
- new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse>(
- [this](
- ::grpc::CallbackServerContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response) { return this->CheckIfPrimaryDeviceOnline(context, request, response); }));}
- void SetMessageAllocatorFor_CheckIfPrimaryDeviceOnline(
- ::grpc::MessageAllocator< ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
- static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse>*>(handler)
- ->SetMessageAllocator(allocator);
- }
- ~WithCallbackMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* CheckIfPrimaryDeviceOnline(
- ::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithCallbackMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithCallbackMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodCallback(1,
- new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse>(
- [this](
- ::grpc::CallbackServerContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response) { return this->BecomeNewPrimaryDevice(context, request, response); }));}
- void SetMessageAllocatorFor_BecomeNewPrimaryDevice(
- ::grpc::MessageAllocator< ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
- static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse>*>(handler)
- ->SetMessageAllocator(allocator);
- }
- ~WithCallbackMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ ::grpc::Service::RequestAsyncBidiStreaming(2, context, stream, new_call_cq, notification_cq, tag);
}
- virtual ::grpc::ServerUnaryReactor* BecomeNewPrimaryDevice(
- ::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithCallbackMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithCallbackMethod_SendPong() {
- ::grpc::Service::MarkMethodCallback(2,
- new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::PongRequest, ::google::protobuf::Empty>(
- [this](
- ::grpc::CallbackServerContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response) { return this->SendPong(context, request, response); }));}
- void SetMessageAllocatorFor_SendPong(
- ::grpc::MessageAllocator< ::tunnelbroker::PongRequest, ::google::protobuf::Empty>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
- static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::PongRequest, ::google::protobuf::Empty>*>(handler)
- ->SetMessageAllocator(allocator);
- }
- ~WithCallbackMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* SendPong(
- ::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
};
+ typedef WithAsyncMethod_SessionSignature<WithAsyncMethod_NewSession<WithAsyncMethod_MessagesStream<Service > > > AsyncService;
template <class BaseClass>
class WithCallbackMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_SessionSignature() {
- ::grpc::Service::MarkMethodCallback(3,
+ ::grpc::Service::MarkMethodCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse>(
[this](
::grpc::CallbackServerContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response) { return this->SessionSignature(context, request, response); }));}
void SetMessageAllocatorFor_SessionSignature(
::grpc::MessageAllocator< ::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse>*>(handler)
->SetMessageAllocator(allocator);
}
@@ -571,13 +239,13 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_NewSession() {
- ::grpc::Service::MarkMethodCallback(4,
+ ::grpc::Service::MarkMethodCallback(1,
new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::NewSessionRequest, ::tunnelbroker::NewSessionResponse>(
[this](
::grpc::CallbackServerContext* context, const ::tunnelbroker::NewSessionRequest* request, ::tunnelbroker::NewSessionResponse* response) { return this->NewSession(context, request, response); }));}
void SetMessageAllocatorFor_NewSession(
::grpc::MessageAllocator< ::tunnelbroker::NewSessionRequest, ::tunnelbroker::NewSessionResponse>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4);
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::NewSessionRequest, ::tunnelbroker::NewSessionResponse>*>(handler)
->SetMessageAllocator(allocator);
}
@@ -593,61 +261,12 @@
::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::NewSessionRequest* /*request*/, ::tunnelbroker::NewSessionResponse* /*response*/) { return nullptr; }
};
template <class BaseClass>
- class WithCallbackMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithCallbackMethod_Send() {
- ::grpc::Service::MarkMethodCallback(5,
- new ::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::SendRequest, ::google::protobuf::Empty>(
- [this](
- ::grpc::CallbackServerContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response) { return this->Send(context, request, response); }));}
- void SetMessageAllocatorFor_Send(
- ::grpc::MessageAllocator< ::tunnelbroker::SendRequest, ::google::protobuf::Empty>* allocator) {
- ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
- static_cast<::grpc::internal::CallbackUnaryHandler< ::tunnelbroker::SendRequest, ::google::protobuf::Empty>*>(handler)
- ->SetMessageAllocator(allocator);
- }
- ~WithCallbackMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* Send(
- ::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithCallbackMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithCallbackMethod_Get() {
- ::grpc::Service::MarkMethodCallback(6,
- new ::grpc::internal::CallbackServerStreamingHandler< ::tunnelbroker::GetRequest, ::tunnelbroker::GetResponse>(
- [this](
- ::grpc::CallbackServerContext* context, const ::tunnelbroker::GetRequest* request) { return this->Get(context, request); }));
- }
- ~WithCallbackMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerWriteReactor< ::tunnelbroker::GetResponse>* Get(
- ::grpc::CallbackServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/) { return nullptr; }
- };
- template <class BaseClass>
class WithCallbackMethod_MessagesStream : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_MessagesStream() {
- ::grpc::Service::MarkMethodCallback(7,
+ ::grpc::Service::MarkMethodCallback(2,
new ::grpc::internal::CallbackBidiHandler< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>(
[this](
::grpc::CallbackServerContext* context) { return this->MessagesStream(context); }));
@@ -664,66 +283,15 @@
::grpc::CallbackServerContext* /*context*/)
{ return nullptr; }
};
- typedef WithCallbackMethod_CheckIfPrimaryDeviceOnline<WithCallbackMethod_BecomeNewPrimaryDevice<WithCallbackMethod_SendPong<WithCallbackMethod_SessionSignature<WithCallbackMethod_NewSession<WithCallbackMethod_Send<WithCallbackMethod_Get<WithCallbackMethod_MessagesStream<Service > > > > > > > > CallbackService;
+ typedef WithCallbackMethod_SessionSignature<WithCallbackMethod_NewSession<WithCallbackMethod_MessagesStream<Service > > > CallbackService;
typedef CallbackService ExperimentalCallbackService;
template <class BaseClass>
- class WithGenericMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithGenericMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodGeneric(0);
- }
- ~WithGenericMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
- class WithGenericMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithGenericMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodGeneric(1);
- }
- ~WithGenericMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
- class WithGenericMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithGenericMethod_SendPong() {
- ::grpc::Service::MarkMethodGeneric(2);
- }
- ~WithGenericMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
class WithGenericMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_SessionSignature() {
- ::grpc::Service::MarkMethodGeneric(3);
+ ::grpc::Service::MarkMethodGeneric(0);
}
~WithGenericMethod_SessionSignature() override {
BaseClassMustBeDerivedFromService(this);
@@ -740,7 +308,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_NewSession() {
- ::grpc::Service::MarkMethodGeneric(4);
+ ::grpc::Service::MarkMethodGeneric(1);
}
~WithGenericMethod_NewSession() override {
BaseClassMustBeDerivedFromService(this);
@@ -752,46 +320,12 @@
}
};
template <class BaseClass>
- class WithGenericMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithGenericMethod_Send() {
- ::grpc::Service::MarkMethodGeneric(5);
- }
- ~WithGenericMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
- class WithGenericMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithGenericMethod_Get() {
- ::grpc::Service::MarkMethodGeneric(6);
- }
- ~WithGenericMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
class WithGenericMethod_MessagesStream : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_MessagesStream() {
- ::grpc::Service::MarkMethodGeneric(7);
+ ::grpc::Service::MarkMethodGeneric(2);
}
~WithGenericMethod_MessagesStream() override {
BaseClassMustBeDerivedFromService(this);
@@ -803,72 +337,12 @@
}
};
template <class BaseClass>
- class WithRawMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodRaw(0);
- }
- ~WithRawMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestCheckIfPrimaryDeviceOnline(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithRawMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodRaw(1);
- }
- ~WithRawMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestBecomeNewPrimaryDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithRawMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawMethod_SendPong() {
- ::grpc::Service::MarkMethodRaw(2);
- }
- ~WithRawMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestSendPong(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
class WithRawMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_SessionSignature() {
- ::grpc::Service::MarkMethodRaw(3);
+ ::grpc::Service::MarkMethodRaw(0);
}
~WithRawMethod_SessionSignature() override {
BaseClassMustBeDerivedFromService(this);
@@ -879,7 +353,7 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestSessionSignature(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
@@ -888,7 +362,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_NewSession() {
- ::grpc::Service::MarkMethodRaw(4);
+ ::grpc::Service::MarkMethodRaw(1);
}
~WithRawMethod_NewSession() override {
BaseClassMustBeDerivedFromService(this);
@@ -899,47 +373,7 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestNewSession(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithRawMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawMethod_Send() {
- ::grpc::Service::MarkMethodRaw(5);
- }
- ~WithRawMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestSend(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
- }
- };
- template <class BaseClass>
- class WithRawMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawMethod_Get() {
- ::grpc::Service::MarkMethodRaw(6);
- }
- ~WithRawMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestGet(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncServerStreaming(6, context, request, writer, new_call_cq, notification_cq, tag);
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
@@ -948,7 +382,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_MessagesStream() {
- ::grpc::Service::MarkMethodRaw(7);
+ ::grpc::Service::MarkMethodRaw(2);
}
~WithRawMethod_MessagesStream() override {
BaseClassMustBeDerivedFromService(this);
@@ -959,82 +393,16 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestMessagesStream(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
- ::grpc::Service::RequestAsyncBidiStreaming(7, context, stream, new_call_cq, notification_cq, tag);
+ ::grpc::Service::RequestAsyncBidiStreaming(2, context, stream, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
- class WithRawCallbackMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawCallbackMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodRawCallback(0,
- new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
- [this](
- ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CheckIfPrimaryDeviceOnline(context, request, response); }));
- }
- ~WithRawCallbackMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* CheckIfPrimaryDeviceOnline(
- ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithRawCallbackMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawCallbackMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodRawCallback(1,
- new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
- [this](
- ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->BecomeNewPrimaryDevice(context, request, response); }));
- }
- ~WithRawCallbackMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* BecomeNewPrimaryDevice(
- ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithRawCallbackMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawCallbackMethod_SendPong() {
- ::grpc::Service::MarkMethodRawCallback(2,
- new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
- [this](
- ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendPong(context, request, response); }));
- }
- ~WithRawCallbackMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* SendPong(
- ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
class WithRawCallbackMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_SessionSignature() {
- ::grpc::Service::MarkMethodRawCallback(3,
+ ::grpc::Service::MarkMethodRawCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SessionSignature(context, request, response); }));
@@ -1056,7 +424,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_NewSession() {
- ::grpc::Service::MarkMethodRawCallback(4,
+ ::grpc::Service::MarkMethodRawCallback(1,
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewSession(context, request, response); }));
@@ -1073,56 +441,12 @@
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
};
template <class BaseClass>
- class WithRawCallbackMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawCallbackMethod_Send() {
- ::grpc::Service::MarkMethodRawCallback(5,
- new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
- [this](
- ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Send(context, request, response); }));
- }
- ~WithRawCallbackMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerUnaryReactor* Send(
- ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
- };
- template <class BaseClass>
- class WithRawCallbackMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithRawCallbackMethod_Get() {
- ::grpc::Service::MarkMethodRawCallback(6,
- new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
- [this](
- ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Get(context, request); }));
- }
- ~WithRawCallbackMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* Get(
- ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; }
- };
- template <class BaseClass>
class WithRawCallbackMethod_MessagesStream : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_MessagesStream() {
- ::grpc::Service::MarkMethodRawCallback(7,
+ ::grpc::Service::MarkMethodRawCallback(2,
new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context) { return this->MessagesStream(context); }));
@@ -1140,93 +464,12 @@
{ return nullptr; }
};
template <class BaseClass>
- class WithStreamedUnaryMethod_CheckIfPrimaryDeviceOnline : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithStreamedUnaryMethod_CheckIfPrimaryDeviceOnline() {
- ::grpc::Service::MarkMethodStreamed(0,
- new ::grpc::internal::StreamedUnaryHandler<
- ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse>(
- [this](::grpc::ServerContext* context,
- ::grpc::ServerUnaryStreamer<
- ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse>* streamer) {
- return this->StreamedCheckIfPrimaryDeviceOnline(context,
- streamer);
- }));
- }
- ~WithStreamedUnaryMethod_CheckIfPrimaryDeviceOnline() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status CheckIfPrimaryDeviceOnline(::grpc::ServerContext* /*context*/, const ::tunnelbroker::CheckRequest* /*request*/, ::tunnelbroker::CheckResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with streamed unary
- virtual ::grpc::Status StreamedCheckIfPrimaryDeviceOnline(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tunnelbroker::CheckRequest,::tunnelbroker::CheckResponse>* server_unary_streamer) = 0;
- };
- template <class BaseClass>
- class WithStreamedUnaryMethod_BecomeNewPrimaryDevice : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithStreamedUnaryMethod_BecomeNewPrimaryDevice() {
- ::grpc::Service::MarkMethodStreamed(1,
- new ::grpc::internal::StreamedUnaryHandler<
- ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse>(
- [this](::grpc::ServerContext* context,
- ::grpc::ServerUnaryStreamer<
- ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse>* streamer) {
- return this->StreamedBecomeNewPrimaryDevice(context,
- streamer);
- }));
- }
- ~WithStreamedUnaryMethod_BecomeNewPrimaryDevice() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status BecomeNewPrimaryDevice(::grpc::ServerContext* /*context*/, const ::tunnelbroker::NewPrimaryRequest* /*request*/, ::tunnelbroker::NewPrimaryResponse* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with streamed unary
- virtual ::grpc::Status StreamedBecomeNewPrimaryDevice(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tunnelbroker::NewPrimaryRequest,::tunnelbroker::NewPrimaryResponse>* server_unary_streamer) = 0;
- };
- template <class BaseClass>
- class WithStreamedUnaryMethod_SendPong : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithStreamedUnaryMethod_SendPong() {
- ::grpc::Service::MarkMethodStreamed(2,
- new ::grpc::internal::StreamedUnaryHandler<
- ::tunnelbroker::PongRequest, ::google::protobuf::Empty>(
- [this](::grpc::ServerContext* context,
- ::grpc::ServerUnaryStreamer<
- ::tunnelbroker::PongRequest, ::google::protobuf::Empty>* streamer) {
- return this->StreamedSendPong(context,
- streamer);
- }));
- }
- ~WithStreamedUnaryMethod_SendPong() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status SendPong(::grpc::ServerContext* /*context*/, const ::tunnelbroker::PongRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with streamed unary
- virtual ::grpc::Status StreamedSendPong(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tunnelbroker::PongRequest,::google::protobuf::Empty>* server_unary_streamer) = 0;
- };
- template <class BaseClass>
class WithStreamedUnaryMethod_SessionSignature : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithStreamedUnaryMethod_SessionSignature() {
- ::grpc::Service::MarkMethodStreamed(3,
+ ::grpc::Service::MarkMethodStreamed(0,
new ::grpc::internal::StreamedUnaryHandler<
::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse>(
[this](::grpc::ServerContext* context,
@@ -1253,7 +496,7 @@
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithStreamedUnaryMethod_NewSession() {
- ::grpc::Service::MarkMethodStreamed(4,
+ ::grpc::Service::MarkMethodStreamed(1,
new ::grpc::internal::StreamedUnaryHandler<
::tunnelbroker::NewSessionRequest, ::tunnelbroker::NewSessionResponse>(
[this](::grpc::ServerContext* context,
@@ -1274,63 +517,9 @@
// replace default version of method with streamed unary
virtual ::grpc::Status StreamedNewSession(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tunnelbroker::NewSessionRequest,::tunnelbroker::NewSessionResponse>* server_unary_streamer) = 0;
};
- template <class BaseClass>
- class WithStreamedUnaryMethod_Send : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithStreamedUnaryMethod_Send() {
- ::grpc::Service::MarkMethodStreamed(5,
- new ::grpc::internal::StreamedUnaryHandler<
- ::tunnelbroker::SendRequest, ::google::protobuf::Empty>(
- [this](::grpc::ServerContext* context,
- ::grpc::ServerUnaryStreamer<
- ::tunnelbroker::SendRequest, ::google::protobuf::Empty>* streamer) {
- return this->StreamedSend(context,
- streamer);
- }));
- }
- ~WithStreamedUnaryMethod_Send() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status Send(::grpc::ServerContext* /*context*/, const ::tunnelbroker::SendRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with streamed unary
- virtual ::grpc::Status StreamedSend(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tunnelbroker::SendRequest,::google::protobuf::Empty>* server_unary_streamer) = 0;
- };
- typedef WithStreamedUnaryMethod_CheckIfPrimaryDeviceOnline<WithStreamedUnaryMethod_BecomeNewPrimaryDevice<WithStreamedUnaryMethod_SendPong<WithStreamedUnaryMethod_SessionSignature<WithStreamedUnaryMethod_NewSession<WithStreamedUnaryMethod_Send<Service > > > > > > StreamedUnaryService;
- template <class BaseClass>
- class WithSplitStreamingMethod_Get : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
- public:
- WithSplitStreamingMethod_Get() {
- ::grpc::Service::MarkMethodStreamed(6,
- new ::grpc::internal::SplitServerStreamingHandler<
- ::tunnelbroker::GetRequest, ::tunnelbroker::GetResponse>(
- [this](::grpc::ServerContext* context,
- ::grpc::ServerSplitStreamer<
- ::tunnelbroker::GetRequest, ::tunnelbroker::GetResponse>* streamer) {
- return this->StreamedGet(context,
- streamer);
- }));
- }
- ~WithSplitStreamingMethod_Get() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status Get(::grpc::ServerContext* /*context*/, const ::tunnelbroker::GetRequest* /*request*/, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* /*writer*/) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with split streamed
- virtual ::grpc::Status StreamedGet(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::tunnelbroker::GetRequest,::tunnelbroker::GetResponse>* server_split_streamer) = 0;
- };
- typedef WithSplitStreamingMethod_Get<Service > SplitStreamedService;
- typedef WithStreamedUnaryMethod_CheckIfPrimaryDeviceOnline<WithStreamedUnaryMethod_BecomeNewPrimaryDevice<WithStreamedUnaryMethod_SendPong<WithStreamedUnaryMethod_SessionSignature<WithStreamedUnaryMethod_NewSession<WithStreamedUnaryMethod_Send<WithSplitStreamingMethod_Get<Service > > > > > > > StreamedService;
+ typedef WithStreamedUnaryMethod_SessionSignature<WithStreamedUnaryMethod_NewSession<Service > > StreamedUnaryService;
+ typedef Service SplitStreamedService;
+ typedef WithStreamedUnaryMethod_SessionSignature<WithStreamedUnaryMethod_NewSession<Service > > StreamedService;
};
} // namespace tunnelbroker
diff --git a/shared/protos/_generated/tunnelbroker.grpc.pb.cc b/shared/protos/_generated/tunnelbroker.grpc.pb.cc
--- a/shared/protos/_generated/tunnelbroker.grpc.pb.cc
+++ b/shared/protos/_generated/tunnelbroker.grpc.pb.cc
@@ -22,13 +22,8 @@
namespace tunnelbroker {
static const char* TunnelbrokerService_method_names[] = {
- "/tunnelbroker.TunnelbrokerService/CheckIfPrimaryDeviceOnline",
- "/tunnelbroker.TunnelbrokerService/BecomeNewPrimaryDevice",
- "/tunnelbroker.TunnelbrokerService/SendPong",
"/tunnelbroker.TunnelbrokerService/SessionSignature",
"/tunnelbroker.TunnelbrokerService/NewSession",
- "/tunnelbroker.TunnelbrokerService/Send",
- "/tunnelbroker.TunnelbrokerService/Get",
"/tunnelbroker.TunnelbrokerService/MessagesStream",
};
@@ -39,85 +34,11 @@
}
TunnelbrokerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
- : channel_(channel), rpcmethod_CheckIfPrimaryDeviceOnline_(TunnelbrokerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_BecomeNewPrimaryDevice_(TunnelbrokerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_SendPong_(TunnelbrokerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_SessionSignature_(TunnelbrokerService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_NewSession_(TunnelbrokerService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_Send_(TunnelbrokerService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- , rpcmethod_Get_(TunnelbrokerService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
- , rpcmethod_MessagesStream_(TunnelbrokerService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel)
+ : channel_(channel), rpcmethod_SessionSignature_(TunnelbrokerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_NewSession_(TunnelbrokerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_MessagesStream_(TunnelbrokerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel)
{}
-::grpc::Status TunnelbrokerService::Stub::CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::tunnelbroker::CheckResponse* response) {
- return ::grpc::internal::BlockingUnaryCall< ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CheckIfPrimaryDeviceOnline_, context, request, response);
-}
-
-void TunnelbrokerService::Stub::async::CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, std::function<void(::grpc::Status)> f) {
- ::grpc::internal::CallbackUnaryCall< ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CheckIfPrimaryDeviceOnline_, context, request, response, std::move(f));
-}
-
-void TunnelbrokerService::Stub::async::CheckIfPrimaryDeviceOnline(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response, ::grpc::ClientUnaryReactor* reactor) {
- ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CheckIfPrimaryDeviceOnline_, context, request, response, reactor);
-}
-
-::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>* TunnelbrokerService::Stub::PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::tunnelbroker::CheckResponse, ::tunnelbroker::CheckRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CheckIfPrimaryDeviceOnline_, context, request);
-}
-
-::grpc::ClientAsyncResponseReader< ::tunnelbroker::CheckResponse>* TunnelbrokerService::Stub::AsyncCheckIfPrimaryDeviceOnlineRaw(::grpc::ClientContext* context, const ::tunnelbroker::CheckRequest& request, ::grpc::CompletionQueue* cq) {
- auto* result =
- this->PrepareAsyncCheckIfPrimaryDeviceOnlineRaw(context, request, cq);
- result->StartCall();
- return result;
-}
-
-::grpc::Status TunnelbrokerService::Stub::BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::tunnelbroker::NewPrimaryResponse* response) {
- return ::grpc::internal::BlockingUnaryCall< ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_BecomeNewPrimaryDevice_, context, request, response);
-}
-
-void TunnelbrokerService::Stub::async::BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, std::function<void(::grpc::Status)> f) {
- ::grpc::internal::CallbackUnaryCall< ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BecomeNewPrimaryDevice_, context, request, response, std::move(f));
-}
-
-void TunnelbrokerService::Stub::async::BecomeNewPrimaryDevice(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response, ::grpc::ClientUnaryReactor* reactor) {
- ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BecomeNewPrimaryDevice_, context, request, response, reactor);
-}
-
-::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>* TunnelbrokerService::Stub::PrepareAsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::tunnelbroker::NewPrimaryResponse, ::tunnelbroker::NewPrimaryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_BecomeNewPrimaryDevice_, context, request);
-}
-
-::grpc::ClientAsyncResponseReader< ::tunnelbroker::NewPrimaryResponse>* TunnelbrokerService::Stub::AsyncBecomeNewPrimaryDeviceRaw(::grpc::ClientContext* context, const ::tunnelbroker::NewPrimaryRequest& request, ::grpc::CompletionQueue* cq) {
- auto* result =
- this->PrepareAsyncBecomeNewPrimaryDeviceRaw(context, request, cq);
- result->StartCall();
- return result;
-}
-
-::grpc::Status TunnelbrokerService::Stub::SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::google::protobuf::Empty* response) {
- return ::grpc::internal::BlockingUnaryCall< ::tunnelbroker::PongRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendPong_, context, request, response);
-}
-
-void TunnelbrokerService::Stub::async::SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
- ::grpc::internal::CallbackUnaryCall< ::tunnelbroker::PongRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPong_, context, request, response, std::move(f));
-}
-
-void TunnelbrokerService::Stub::async::SendPong(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) {
- ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPong_, context, request, response, reactor);
-}
-
-::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* TunnelbrokerService::Stub::PrepareAsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::tunnelbroker::PongRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendPong_, context, request);
-}
-
-::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* TunnelbrokerService::Stub::AsyncSendPongRaw(::grpc::ClientContext* context, const ::tunnelbroker::PongRequest& request, ::grpc::CompletionQueue* cq) {
- auto* result =
- this->PrepareAsyncSendPongRaw(context, request, cq);
- result->StartCall();
- return result;
-}
-
::grpc::Status TunnelbrokerService::Stub::SessionSignature(::grpc::ClientContext* context, const ::tunnelbroker::SessionSignatureRequest& request, ::tunnelbroker::SessionSignatureResponse* response) {
return ::grpc::internal::BlockingUnaryCall< ::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SessionSignature_, context, request, response);
}
@@ -164,45 +85,6 @@
return result;
}
-::grpc::Status TunnelbrokerService::Stub::Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::google::protobuf::Empty* response) {
- return ::grpc::internal::BlockingUnaryCall< ::tunnelbroker::SendRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Send_, context, request, response);
-}
-
-void TunnelbrokerService::Stub::async::Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
- ::grpc::internal::CallbackUnaryCall< ::tunnelbroker::SendRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Send_, context, request, response, std::move(f));
-}
-
-void TunnelbrokerService::Stub::async::Send(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) {
- ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Send_, context, request, response, reactor);
-}
-
-::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* TunnelbrokerService::Stub::PrepareAsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::tunnelbroker::SendRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Send_, context, request);
-}
-
-::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* TunnelbrokerService::Stub::AsyncSendRaw(::grpc::ClientContext* context, const ::tunnelbroker::SendRequest& request, ::grpc::CompletionQueue* cq) {
- auto* result =
- this->PrepareAsyncSendRaw(context, request, cq);
- result->StartCall();
- return result;
-}
-
-::grpc::ClientReader< ::tunnelbroker::GetResponse>* TunnelbrokerService::Stub::GetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request) {
- return ::grpc::internal::ClientReaderFactory< ::tunnelbroker::GetResponse>::Create(channel_.get(), rpcmethod_Get_, context, request);
-}
-
-void TunnelbrokerService::Stub::async::Get(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest* request, ::grpc::ClientReadReactor< ::tunnelbroker::GetResponse>* reactor) {
- ::grpc::internal::ClientCallbackReaderFactory< ::tunnelbroker::GetResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, reactor);
-}
-
-::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>* TunnelbrokerService::Stub::AsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
- return ::grpc::internal::ClientAsyncReaderFactory< ::tunnelbroker::GetResponse>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, true, tag);
-}
-
-::grpc::ClientAsyncReader< ::tunnelbroker::GetResponse>* TunnelbrokerService::Stub::PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::tunnelbroker::GetRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncReaderFactory< ::tunnelbroker::GetResponse>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, false, nullptr);
-}
-
::grpc::ClientReaderWriter< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>* TunnelbrokerService::Stub::MessagesStreamRaw(::grpc::ClientContext* context) {
return ::grpc::internal::ClientReaderWriterFactory< ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>::Create(channel_.get(), rpcmethod_MessagesStream_, context);
}
@@ -223,36 +105,6 @@
AddMethod(new ::grpc::internal::RpcServiceMethod(
TunnelbrokerService_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::CheckRequest, ::tunnelbroker::CheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
- [](TunnelbrokerService::Service* service,
- ::grpc::ServerContext* ctx,
- const ::tunnelbroker::CheckRequest* req,
- ::tunnelbroker::CheckResponse* resp) {
- return service->CheckIfPrimaryDeviceOnline(ctx, req, resp);
- }, this)));
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[1],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::NewPrimaryRequest, ::tunnelbroker::NewPrimaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
- [](TunnelbrokerService::Service* service,
- ::grpc::ServerContext* ctx,
- const ::tunnelbroker::NewPrimaryRequest* req,
- ::tunnelbroker::NewPrimaryResponse* resp) {
- return service->BecomeNewPrimaryDevice(ctx, req, resp);
- }, this)));
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[2],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::PongRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
- [](TunnelbrokerService::Service* service,
- ::grpc::ServerContext* ctx,
- const ::tunnelbroker::PongRequest* req,
- ::google::protobuf::Empty* resp) {
- return service->SendPong(ctx, req, resp);
- }, this)));
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[3],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::SessionSignatureRequest, ::tunnelbroker::SessionSignatureResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
[](TunnelbrokerService::Service* service,
::grpc::ServerContext* ctx,
@@ -261,7 +113,7 @@
return service->SessionSignature(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[4],
+ TunnelbrokerService_method_names[1],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::NewSessionRequest, ::tunnelbroker::NewSessionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
[](TunnelbrokerService::Service* service,
@@ -271,27 +123,7 @@
return service->NewSession(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[5],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< TunnelbrokerService::Service, ::tunnelbroker::SendRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
- [](TunnelbrokerService::Service* service,
- ::grpc::ServerContext* ctx,
- const ::tunnelbroker::SendRequest* req,
- ::google::protobuf::Empty* resp) {
- return service->Send(ctx, req, resp);
- }, this)));
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[6],
- ::grpc::internal::RpcMethod::SERVER_STREAMING,
- new ::grpc::internal::ServerStreamingHandler< TunnelbrokerService::Service, ::tunnelbroker::GetRequest, ::tunnelbroker::GetResponse>(
- [](TunnelbrokerService::Service* service,
- ::grpc::ServerContext* ctx,
- const ::tunnelbroker::GetRequest* req,
- ::grpc::ServerWriter<::tunnelbroker::GetResponse>* writer) {
- return service->Get(ctx, req, writer);
- }, this)));
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TunnelbrokerService_method_names[7],
+ TunnelbrokerService_method_names[2],
::grpc::internal::RpcMethod::BIDI_STREAMING,
new ::grpc::internal::BidiStreamingHandler< TunnelbrokerService::Service, ::tunnelbroker::MessageToTunnelbroker, ::tunnelbroker::MessageToClient>(
[](TunnelbrokerService::Service* service,
@@ -305,27 +137,6 @@
TunnelbrokerService::Service::~Service() {
}
-::grpc::Status TunnelbrokerService::Service::CheckIfPrimaryDeviceOnline(::grpc::ServerContext* context, const ::tunnelbroker::CheckRequest* request, ::tunnelbroker::CheckResponse* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
-}
-
-::grpc::Status TunnelbrokerService::Service::BecomeNewPrimaryDevice(::grpc::ServerContext* context, const ::tunnelbroker::NewPrimaryRequest* request, ::tunnelbroker::NewPrimaryResponse* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
-}
-
-::grpc::Status TunnelbrokerService::Service::SendPong(::grpc::ServerContext* context, const ::tunnelbroker::PongRequest* request, ::google::protobuf::Empty* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
-}
-
::grpc::Status TunnelbrokerService::Service::SessionSignature(::grpc::ServerContext* context, const ::tunnelbroker::SessionSignatureRequest* request, ::tunnelbroker::SessionSignatureResponse* response) {
(void) context;
(void) request;
@@ -340,20 +151,6 @@
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
-::grpc::Status TunnelbrokerService::Service::Send(::grpc::ServerContext* context, const ::tunnelbroker::SendRequest* request, ::google::protobuf::Empty* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
-}
-
-::grpc::Status TunnelbrokerService::Service::Get(::grpc::ServerContext* context, const ::tunnelbroker::GetRequest* request, ::grpc::ServerWriter< ::tunnelbroker::GetResponse>* writer) {
- (void) context;
- (void) request;
- (void) writer;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
-}
-
::grpc::Status TunnelbrokerService::Service::MessagesStream(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::tunnelbroker::MessageToClient, ::tunnelbroker::MessageToTunnelbroker>* stream) {
(void) context;
(void) stream;
diff --git a/shared/protos/_generated/tunnelbroker.pb.h b/shared/protos/_generated/tunnelbroker.pb.h
--- a/shared/protos/_generated/tunnelbroker.pb.h
+++ b/shared/protos/_generated/tunnelbroker.pb.h
@@ -48,7 +48,7 @@
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[20]
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[11]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
@@ -57,21 +57,6 @@
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tunnelbroker_2eproto;
::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_tunnelbroker_2eproto_metadata_getter(int index);
namespace tunnelbroker {
-class CheckRequest;
-struct CheckRequestDefaultTypeInternal;
-extern CheckRequestDefaultTypeInternal _CheckRequest_default_instance_;
-class CheckResponse;
-struct CheckResponseDefaultTypeInternal;
-extern CheckResponseDefaultTypeInternal _CheckResponse_default_instance_;
-class GetRequest;
-struct GetRequestDefaultTypeInternal;
-extern GetRequestDefaultTypeInternal _GetRequest_default_instance_;
-class GetResponse;
-struct GetResponseDefaultTypeInternal;
-extern GetResponseDefaultTypeInternal _GetResponse_default_instance_;
-class GetResponseMessage;
-struct GetResponseMessageDefaultTypeInternal;
-extern GetResponseMessageDefaultTypeInternal _GetResponseMessage_default_instance_;
class MessageToClient;
struct MessageToClientDefaultTypeInternal;
extern MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
@@ -90,27 +75,15 @@
class MessagesToSend;
struct MessagesToSendDefaultTypeInternal;
extern MessagesToSendDefaultTypeInternal _MessagesToSend_default_instance_;
-class NewPrimaryRequest;
-struct NewPrimaryRequestDefaultTypeInternal;
-extern NewPrimaryRequestDefaultTypeInternal _NewPrimaryRequest_default_instance_;
-class NewPrimaryResponse;
-struct NewPrimaryResponseDefaultTypeInternal;
-extern NewPrimaryResponseDefaultTypeInternal _NewPrimaryResponse_default_instance_;
class NewSessionRequest;
struct NewSessionRequestDefaultTypeInternal;
extern NewSessionRequestDefaultTypeInternal _NewSessionRequest_default_instance_;
class NewSessionResponse;
struct NewSessionResponseDefaultTypeInternal;
extern NewSessionResponseDefaultTypeInternal _NewSessionResponse_default_instance_;
-class PongRequest;
-struct PongRequestDefaultTypeInternal;
-extern PongRequestDefaultTypeInternal _PongRequest_default_instance_;
class ProcessedMessages;
struct ProcessedMessagesDefaultTypeInternal;
extern ProcessedMessagesDefaultTypeInternal _ProcessedMessages_default_instance_;
-class SendRequest;
-struct SendRequestDefaultTypeInternal;
-extern SendRequestDefaultTypeInternal _SendRequest_default_instance_;
class SessionSignatureRequest;
struct SessionSignatureRequestDefaultTypeInternal;
extern SessionSignatureRequestDefaultTypeInternal _SessionSignatureRequest_default_instance_;
@@ -119,24 +92,15 @@
extern SessionSignatureResponseDefaultTypeInternal _SessionSignatureResponse_default_instance_;
} // namespace tunnelbroker
PROTOBUF_NAMESPACE_OPEN
-template<> ::tunnelbroker::CheckRequest* Arena::CreateMaybeMessage<::tunnelbroker::CheckRequest>(Arena*);
-template<> ::tunnelbroker::CheckResponse* Arena::CreateMaybeMessage<::tunnelbroker::CheckResponse>(Arena*);
-template<> ::tunnelbroker::GetRequest* Arena::CreateMaybeMessage<::tunnelbroker::GetRequest>(Arena*);
-template<> ::tunnelbroker::GetResponse* Arena::CreateMaybeMessage<::tunnelbroker::GetResponse>(Arena*);
-template<> ::tunnelbroker::GetResponseMessage* Arena::CreateMaybeMessage<::tunnelbroker::GetResponseMessage>(Arena*);
template<> ::tunnelbroker::MessageToClient* Arena::CreateMaybeMessage<::tunnelbroker::MessageToClient>(Arena*);
template<> ::tunnelbroker::MessageToClientStruct* Arena::CreateMaybeMessage<::tunnelbroker::MessageToClientStruct>(Arena*);
template<> ::tunnelbroker::MessageToTunnelbroker* Arena::CreateMaybeMessage<::tunnelbroker::MessageToTunnelbroker>(Arena*);
template<> ::tunnelbroker::MessageToTunnelbrokerStruct* Arena::CreateMaybeMessage<::tunnelbroker::MessageToTunnelbrokerStruct>(Arena*);
template<> ::tunnelbroker::MessagesToDeliver* Arena::CreateMaybeMessage<::tunnelbroker::MessagesToDeliver>(Arena*);
template<> ::tunnelbroker::MessagesToSend* Arena::CreateMaybeMessage<::tunnelbroker::MessagesToSend>(Arena*);
-template<> ::tunnelbroker::NewPrimaryRequest* Arena::CreateMaybeMessage<::tunnelbroker::NewPrimaryRequest>(Arena*);
-template<> ::tunnelbroker::NewPrimaryResponse* Arena::CreateMaybeMessage<::tunnelbroker::NewPrimaryResponse>(Arena*);
template<> ::tunnelbroker::NewSessionRequest* Arena::CreateMaybeMessage<::tunnelbroker::NewSessionRequest>(Arena*);
template<> ::tunnelbroker::NewSessionResponse* Arena::CreateMaybeMessage<::tunnelbroker::NewSessionResponse>(Arena*);
-template<> ::tunnelbroker::PongRequest* Arena::CreateMaybeMessage<::tunnelbroker::PongRequest>(Arena*);
template<> ::tunnelbroker::ProcessedMessages* Arena::CreateMaybeMessage<::tunnelbroker::ProcessedMessages>(Arena*);
-template<> ::tunnelbroker::SendRequest* Arena::CreateMaybeMessage<::tunnelbroker::SendRequest>(Arena*);
template<> ::tunnelbroker::SessionSignatureRequest* Arena::CreateMaybeMessage<::tunnelbroker::SessionSignatureRequest>(Arena*);
template<> ::tunnelbroker::SessionSignatureResponse* Arena::CreateMaybeMessage<::tunnelbroker::SessionSignatureResponse>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
@@ -168,33 +132,6 @@
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<NewSessionRequest_DeviceTypes>(
NewSessionRequest_DeviceTypes_descriptor(), name, value);
}
-enum CheckResponseType : int {
- PRIMARY_DOESNT_EXIST = 0,
- PRIMARY_ONLINE = 1,
- PRIMARY_OFFLINE = 2,
- CURRENT_IS_PRIMARY = 3,
- CheckResponseType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
- CheckResponseType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
-};
-bool CheckResponseType_IsValid(int value);
-constexpr CheckResponseType CheckResponseType_MIN = PRIMARY_DOESNT_EXIST;
-constexpr CheckResponseType CheckResponseType_MAX = CURRENT_IS_PRIMARY;
-constexpr int CheckResponseType_ARRAYSIZE = CheckResponseType_MAX + 1;
-
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CheckResponseType_descriptor();
-template<typename T>
-inline const std::string& CheckResponseType_Name(T enum_t_value) {
- static_assert(::std::is_same<T, CheckResponseType>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function CheckResponseType_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- CheckResponseType_descriptor(), enum_t_value);
-}
-inline bool CheckResponseType_Parse(
- ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CheckResponseType* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CheckResponseType>(
- CheckResponseType_descriptor(), name, value);
-}
// ===================================================================
class SessionSignatureRequest PROTOBUF_FINAL :
@@ -911,24 +848,24 @@
};
// -------------------------------------------------------------------
-class SendRequest PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.SendRequest) */ {
+class ProcessedMessages PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.ProcessedMessages) */ {
public:
- inline SendRequest() : SendRequest(nullptr) {}
- virtual ~SendRequest();
- explicit constexpr SendRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline ProcessedMessages() : ProcessedMessages(nullptr) {}
+ virtual ~ProcessedMessages();
+ explicit constexpr ProcessedMessages(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SendRequest(const SendRequest& from);
- SendRequest(SendRequest&& from) noexcept
- : SendRequest() {
+ ProcessedMessages(const ProcessedMessages& from);
+ ProcessedMessages(ProcessedMessages&& from) noexcept
+ : ProcessedMessages() {
*this = ::std::move(from);
}
- inline SendRequest& operator=(const SendRequest& from) {
+ inline ProcessedMessages& operator=(const ProcessedMessages& from) {
CopyFrom(from);
return *this;
}
- inline SendRequest& operator=(SendRequest&& from) noexcept {
+ inline ProcessedMessages& operator=(ProcessedMessages&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -946,20 +883,172 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const SendRequest& default_instance() {
+ static const ProcessedMessages& default_instance() {
return *internal_default_instance();
}
- static inline const SendRequest* internal_default_instance() {
- return reinterpret_cast<const SendRequest*>(
- &_SendRequest_default_instance_);
+ static inline const ProcessedMessages* internal_default_instance() {
+ return reinterpret_cast<const ProcessedMessages*>(
+ &_ProcessedMessages_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
- friend void swap(SendRequest& a, SendRequest& b) {
+ friend void swap(ProcessedMessages& a, ProcessedMessages& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(ProcessedMessages* other) {
+ if (other == this) return;
+ if (GetArena() == other->GetArena()) {
+ InternalSwap(other);
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ }
+ }
+ void UnsafeArenaSwap(ProcessedMessages* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArena() == other->GetArena());
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ProcessedMessages* New() const final {
+ return CreateMaybeMessage<ProcessedMessages>(nullptr);
+ }
+
+ ProcessedMessages* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<ProcessedMessages>(arena);
+ }
+ void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void CopyFrom(const ProcessedMessages& from);
+ void MergeFrom(const ProcessedMessages& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ProcessedMessages* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "tunnelbroker.ProcessedMessages";
+ }
+ protected:
+ explicit ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ public:
+
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
+ }
+
+ public:
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kMessageIDFieldNumber = 1,
+ };
+ // repeated string messageID = 1;
+ int messageid_size() const;
+ private:
+ int _internal_messageid_size() const;
+ public:
+ void clear_messageid();
+ const std::string& messageid(int index) const;
+ std::string* mutable_messageid(int index);
+ void set_messageid(int index, const std::string& value);
+ void set_messageid(int index, std::string&& value);
+ void set_messageid(int index, const char* value);
+ void set_messageid(int index, const char* value, size_t size);
+ std::string* add_messageid();
+ void add_messageid(const std::string& value);
+ void add_messageid(std::string&& value);
+ void add_messageid(const char* value);
+ void add_messageid(const char* value, size_t size);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& messageid() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_messageid();
+ private:
+ const std::string& _internal_messageid(int index) const;
+ std::string* _internal_add_messageid();
+ public:
+
+ // @@protoc_insertion_point(class_scope:tunnelbroker.ProcessedMessages)
+ private:
+ class _Internal;
+
+ template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> messageid_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ friend struct ::TableStruct_tunnelbroker_2eproto;
+};
+// -------------------------------------------------------------------
+
+class MessageToTunnelbrokerStruct PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbrokerStruct) */ {
+ public:
+ inline MessageToTunnelbrokerStruct() : MessageToTunnelbrokerStruct(nullptr) {}
+ virtual ~MessageToTunnelbrokerStruct();
+ explicit constexpr MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+ MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from);
+ MessageToTunnelbrokerStruct(MessageToTunnelbrokerStruct&& from) noexcept
+ : MessageToTunnelbrokerStruct() {
+ *this = ::std::move(from);
+ }
+
+ inline MessageToTunnelbrokerStruct& operator=(const MessageToTunnelbrokerStruct& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline MessageToTunnelbrokerStruct& operator=(MessageToTunnelbrokerStruct&& from) noexcept {
+ if (GetArena() == from.GetArena()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
+ static const MessageToTunnelbrokerStruct& default_instance() {
+ return *internal_default_instance();
+ }
+ static inline const MessageToTunnelbrokerStruct* internal_default_instance() {
+ return reinterpret_cast<const MessageToTunnelbrokerStruct*>(
+ &_MessageToTunnelbrokerStruct_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 5;
+
+ friend void swap(MessageToTunnelbrokerStruct& a, MessageToTunnelbrokerStruct& b) {
a.Swap(&b);
}
- inline void Swap(SendRequest* other) {
+ inline void Swap(MessageToTunnelbrokerStruct* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -967,7 +1056,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SendRequest* other) {
+ void UnsafeArenaSwap(MessageToTunnelbrokerStruct* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -975,17 +1064,17 @@
// implements Message ----------------------------------------------
- inline SendRequest* New() const final {
- return CreateMaybeMessage<SendRequest>(nullptr);
+ inline MessageToTunnelbrokerStruct* New() const final {
+ return CreateMaybeMessage<MessageToTunnelbrokerStruct>(nullptr);
}
- SendRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<SendRequest>(arena);
+ MessageToTunnelbrokerStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessageToTunnelbrokerStruct>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const SendRequest& from);
- void MergeFrom(const SendRequest& from);
+ void CopyFrom(const MessageToTunnelbrokerStruct& from);
+ void MergeFrom(const MessageToTunnelbrokerStruct& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -999,13 +1088,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SendRequest* other);
+ void InternalSwap(MessageToTunnelbrokerStruct* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.SendRequest";
+ return "tunnelbroker.MessageToTunnelbrokerStruct";
}
protected:
- explicit SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1025,7 +1114,7 @@
enum : int {
kBlobHashesFieldNumber = 4,
- kSessionIDFieldNumber = 1,
+ kMessageIDFieldNumber = 1,
kToDeviceIDFieldNumber = 2,
kPayloadFieldNumber = 3,
};
@@ -1053,20 +1142,20 @@
std::string* _internal_add_blobhashes();
public:
- // string sessionID = 1;
- void clear_sessionid();
- const std::string& sessionid() const;
- void set_sessionid(const std::string& value);
- void set_sessionid(std::string&& value);
- void set_sessionid(const char* value);
- void set_sessionid(const char* value, size_t size);
- std::string* mutable_sessionid();
- std::string* release_sessionid();
- void set_allocated_sessionid(std::string* sessionid);
+ // string messageID = 1;
+ void clear_messageid();
+ const std::string& messageid() const;
+ void set_messageid(const std::string& value);
+ void set_messageid(std::string&& value);
+ void set_messageid(const char* value);
+ void set_messageid(const char* value, size_t size);
+ std::string* mutable_messageid();
+ std::string* release_messageid();
+ void set_allocated_messageid(std::string* messageid);
private:
- const std::string& _internal_sessionid() const;
- void _internal_set_sessionid(const std::string& value);
- std::string* _internal_mutable_sessionid();
+ const std::string& _internal_messageid() const;
+ void _internal_set_messageid(const std::string& value);
+ std::string* _internal_mutable_messageid();
public:
// string toDeviceID = 2;
@@ -1085,13 +1174,13 @@
std::string* _internal_mutable_todeviceid();
public:
- // bytes payload = 3;
+ // string payload = 3;
void clear_payload();
const std::string& payload() const;
void set_payload(const std::string& value);
void set_payload(std::string&& value);
void set_payload(const char* value);
- void set_payload(const void* value, size_t size);
+ void set_payload(const char* value, size_t size);
std::string* mutable_payload();
std::string* release_payload();
void set_allocated_payload(std::string* payload);
@@ -1101,7 +1190,7 @@
std::string* _internal_mutable_payload();
public:
- // @@protoc_insertion_point(class_scope:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToTunnelbrokerStruct)
private:
class _Internal;
@@ -1109,7 +1198,7 @@
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> blobhashes_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -1117,24 +1206,24 @@
};
// -------------------------------------------------------------------
-class GetRequest PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.GetRequest) */ {
+class MessagesToSend PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToSend) */ {
public:
- inline GetRequest() : GetRequest(nullptr) {}
- virtual ~GetRequest();
- explicit constexpr GetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline MessagesToSend() : MessagesToSend(nullptr) {}
+ virtual ~MessagesToSend();
+ explicit constexpr MessagesToSend(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- GetRequest(const GetRequest& from);
- GetRequest(GetRequest&& from) noexcept
- : GetRequest() {
+ MessagesToSend(const MessagesToSend& from);
+ MessagesToSend(MessagesToSend&& from) noexcept
+ : MessagesToSend() {
*this = ::std::move(from);
}
- inline GetRequest& operator=(const GetRequest& from) {
+ inline MessagesToSend& operator=(const MessagesToSend& from) {
CopyFrom(from);
return *this;
}
- inline GetRequest& operator=(GetRequest&& from) noexcept {
+ inline MessagesToSend& operator=(MessagesToSend&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -1152,20 +1241,20 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const GetRequest& default_instance() {
+ static const MessagesToSend& default_instance() {
return *internal_default_instance();
}
- static inline const GetRequest* internal_default_instance() {
- return reinterpret_cast<const GetRequest*>(
- &_GetRequest_default_instance_);
+ static inline const MessagesToSend* internal_default_instance() {
+ return reinterpret_cast<const MessagesToSend*>(
+ &_MessagesToSend_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 5;
+ 6;
- friend void swap(GetRequest& a, GetRequest& b) {
+ friend void swap(MessagesToSend& a, MessagesToSend& b) {
a.Swap(&b);
}
- inline void Swap(GetRequest* other) {
+ inline void Swap(MessagesToSend* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -1173,7 +1262,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(GetRequest* other) {
+ void UnsafeArenaSwap(MessagesToSend* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -1181,17 +1270,17 @@
// implements Message ----------------------------------------------
- inline GetRequest* New() const final {
- return CreateMaybeMessage<GetRequest>(nullptr);
+ inline MessagesToSend* New() const final {
+ return CreateMaybeMessage<MessagesToSend>(nullptr);
}
- GetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<GetRequest>(arena);
+ MessagesToSend* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessagesToSend>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const GetRequest& from);
- void MergeFrom(const GetRequest& from);
+ void CopyFrom(const MessagesToSend& from);
+ void MergeFrom(const MessagesToSend& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -1205,13 +1294,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(GetRequest* other);
+ void InternalSwap(MessagesToSend* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.GetRequest";
+ return "tunnelbroker.MessagesToSend";
}
protected:
- explicit GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1230,78 +1319,57 @@
// accessors -------------------------------------------------------
enum : int {
- kSessionIDFieldNumber = 1,
- kNewNotifyTokenFieldNumber = 2,
+ kMessagesFieldNumber = 1,
};
- // string sessionID = 1;
- void clear_sessionid();
- const std::string& sessionid() const;
- void set_sessionid(const std::string& value);
- void set_sessionid(std::string&& value);
- void set_sessionid(const char* value);
- void set_sessionid(const char* value, size_t size);
- std::string* mutable_sessionid();
- std::string* release_sessionid();
- void set_allocated_sessionid(std::string* sessionid);
- private:
- const std::string& _internal_sessionid() const;
- void _internal_set_sessionid(const std::string& value);
- std::string* _internal_mutable_sessionid();
- public:
-
- // string newNotifyToken = 2;
- bool has_newnotifytoken() const;
+ // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
+ int messages_size() const;
private:
- bool _internal_has_newnotifytoken() const;
+ int _internal_messages_size() const;
public:
- void clear_newnotifytoken();
- const std::string& newnotifytoken() const;
- void set_newnotifytoken(const std::string& value);
- void set_newnotifytoken(std::string&& value);
- void set_newnotifytoken(const char* value);
- void set_newnotifytoken(const char* value, size_t size);
- std::string* mutable_newnotifytoken();
- std::string* release_newnotifytoken();
- void set_allocated_newnotifytoken(std::string* newnotifytoken);
+ void clear_messages();
+ ::tunnelbroker::MessageToTunnelbrokerStruct* mutable_messages(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >*
+ mutable_messages();
private:
- const std::string& _internal_newnotifytoken() const;
- void _internal_set_newnotifytoken(const std::string& value);
- std::string* _internal_mutable_newnotifytoken();
+ const ::tunnelbroker::MessageToTunnelbrokerStruct& _internal_messages(int index) const;
+ ::tunnelbroker::MessageToTunnelbrokerStruct* _internal_add_messages();
public:
+ const ::tunnelbroker::MessageToTunnelbrokerStruct& messages(int index) const;
+ ::tunnelbroker::MessageToTunnelbrokerStruct* add_messages();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >&
+ messages() const;
- // @@protoc_insertion_point(class_scope:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessagesToSend)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct > messages_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newnotifytoken_;
friend struct ::TableStruct_tunnelbroker_2eproto;
};
// -------------------------------------------------------------------
-class GetResponseMessage PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.GetResponseMessage) */ {
+class MessageToTunnelbroker PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbroker) */ {
public:
- inline GetResponseMessage() : GetResponseMessage(nullptr) {}
- virtual ~GetResponseMessage();
- explicit constexpr GetResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline MessageToTunnelbroker() : MessageToTunnelbroker(nullptr) {}
+ virtual ~MessageToTunnelbroker();
+ explicit constexpr MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- GetResponseMessage(const GetResponseMessage& from);
- GetResponseMessage(GetResponseMessage&& from) noexcept
- : GetResponseMessage() {
+ MessageToTunnelbroker(const MessageToTunnelbroker& from);
+ MessageToTunnelbroker(MessageToTunnelbroker&& from) noexcept
+ : MessageToTunnelbroker() {
*this = ::std::move(from);
}
- inline GetResponseMessage& operator=(const GetResponseMessage& from) {
+ inline MessageToTunnelbroker& operator=(const MessageToTunnelbroker& from) {
CopyFrom(from);
return *this;
}
- inline GetResponseMessage& operator=(GetResponseMessage&& from) noexcept {
+ inline MessageToTunnelbroker& operator=(MessageToTunnelbroker&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -1319,20 +1387,27 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const GetResponseMessage& default_instance() {
+ static const MessageToTunnelbroker& default_instance() {
return *internal_default_instance();
}
- static inline const GetResponseMessage* internal_default_instance() {
- return reinterpret_cast<const GetResponseMessage*>(
- &_GetResponseMessage_default_instance_);
+ enum DataCase {
+ kMessagesToSend = 1,
+ kProcessedMessages = 2,
+ kNewNotifyToken = 3,
+ DATA_NOT_SET = 0,
+ };
+
+ static inline const MessageToTunnelbroker* internal_default_instance() {
+ return reinterpret_cast<const MessageToTunnelbroker*>(
+ &_MessageToTunnelbroker_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 6;
+ 7;
- friend void swap(GetResponseMessage& a, GetResponseMessage& b) {
+ friend void swap(MessageToTunnelbroker& a, MessageToTunnelbroker& b) {
a.Swap(&b);
}
- inline void Swap(GetResponseMessage* other) {
+ inline void Swap(MessageToTunnelbroker* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -1340,7 +1415,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(GetResponseMessage* other) {
+ void UnsafeArenaSwap(MessageToTunnelbroker* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -1348,17 +1423,17 @@
// implements Message ----------------------------------------------
- inline GetResponseMessage* New() const final {
- return CreateMaybeMessage<GetResponseMessage>(nullptr);
+ inline MessageToTunnelbroker* New() const final {
+ return CreateMaybeMessage<MessageToTunnelbroker>(nullptr);
}
- GetResponseMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<GetResponseMessage>(arena);
+ MessageToTunnelbroker* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessageToTunnelbroker>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const GetResponseMessage& from);
- void MergeFrom(const GetResponseMessage& from);
+ void CopyFrom(const MessageToTunnelbroker& from);
+ void MergeFrom(const MessageToTunnelbroker& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -1372,13 +1447,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(GetResponseMessage* other);
+ void InternalSwap(MessageToTunnelbroker* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.GetResponseMessage";
+ return "tunnelbroker.MessageToTunnelbroker";
}
protected:
- explicit GetResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1397,99 +1472,113 @@
// accessors -------------------------------------------------------
enum : int {
- kBlobHashesFieldNumber = 3,
- kFromDeviceIDFieldNumber = 1,
- kPayloadFieldNumber = 2,
+ kMessagesToSendFieldNumber = 1,
+ kProcessedMessagesFieldNumber = 2,
+ kNewNotifyTokenFieldNumber = 3,
};
- // repeated string blobHashes = 3;
- int blobhashes_size() const;
+ // .tunnelbroker.MessagesToSend messagesToSend = 1;
+ bool has_messagestosend() const;
private:
- int _internal_blobhashes_size() const;
+ bool _internal_has_messagestosend() const;
public:
- void clear_blobhashes();
- const std::string& blobhashes(int index) const;
- std::string* mutable_blobhashes(int index);
- void set_blobhashes(int index, const std::string& value);
- void set_blobhashes(int index, std::string&& value);
- void set_blobhashes(int index, const char* value);
- void set_blobhashes(int index, const char* value, size_t size);
- std::string* add_blobhashes();
- void add_blobhashes(const std::string& value);
- void add_blobhashes(std::string&& value);
- void add_blobhashes(const char* value);
- void add_blobhashes(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& blobhashes() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_blobhashes();
+ void clear_messagestosend();
+ const ::tunnelbroker::MessagesToSend& messagestosend() const;
+ ::tunnelbroker::MessagesToSend* release_messagestosend();
+ ::tunnelbroker::MessagesToSend* mutable_messagestosend();
+ void set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend);
private:
- const std::string& _internal_blobhashes(int index) const;
- std::string* _internal_add_blobhashes();
+ const ::tunnelbroker::MessagesToSend& _internal_messagestosend() const;
+ ::tunnelbroker::MessagesToSend* _internal_mutable_messagestosend();
public:
+ void unsafe_arena_set_allocated_messagestosend(
+ ::tunnelbroker::MessagesToSend* messagestosend);
+ ::tunnelbroker::MessagesToSend* unsafe_arena_release_messagestosend();
- // string fromDeviceID = 1;
- void clear_fromdeviceid();
- const std::string& fromdeviceid() const;
- void set_fromdeviceid(const std::string& value);
- void set_fromdeviceid(std::string&& value);
- void set_fromdeviceid(const char* value);
- void set_fromdeviceid(const char* value, size_t size);
- std::string* mutable_fromdeviceid();
- std::string* release_fromdeviceid();
- void set_allocated_fromdeviceid(std::string* fromdeviceid);
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ bool has_processedmessages() const;
private:
- const std::string& _internal_fromdeviceid() const;
- void _internal_set_fromdeviceid(const std::string& value);
- std::string* _internal_mutable_fromdeviceid();
+ bool _internal_has_processedmessages() const;
+ public:
+ void clear_processedmessages();
+ const ::tunnelbroker::ProcessedMessages& processedmessages() const;
+ ::tunnelbroker::ProcessedMessages* release_processedmessages();
+ ::tunnelbroker::ProcessedMessages* mutable_processedmessages();
+ void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages);
+ private:
+ const ::tunnelbroker::ProcessedMessages& _internal_processedmessages() const;
+ ::tunnelbroker::ProcessedMessages* _internal_mutable_processedmessages();
public:
+ void unsafe_arena_set_allocated_processedmessages(
+ ::tunnelbroker::ProcessedMessages* processedmessages);
+ ::tunnelbroker::ProcessedMessages* unsafe_arena_release_processedmessages();
- // bytes payload = 2;
- void clear_payload();
- const std::string& payload() const;
- void set_payload(const std::string& value);
- void set_payload(std::string&& value);
- void set_payload(const char* value);
- void set_payload(const void* value, size_t size);
- std::string* mutable_payload();
- std::string* release_payload();
- void set_allocated_payload(std::string* payload);
+ // string newNotifyToken = 3;
+ bool has_newnotifytoken() const;
private:
- const std::string& _internal_payload() const;
- void _internal_set_payload(const std::string& value);
- std::string* _internal_mutable_payload();
+ bool _internal_has_newnotifytoken() const;
+ public:
+ void clear_newnotifytoken();
+ const std::string& newnotifytoken() const;
+ void set_newnotifytoken(const std::string& value);
+ void set_newnotifytoken(std::string&& value);
+ void set_newnotifytoken(const char* value);
+ void set_newnotifytoken(const char* value, size_t size);
+ std::string* mutable_newnotifytoken();
+ std::string* release_newnotifytoken();
+ void set_allocated_newnotifytoken(std::string* newnotifytoken);
+ private:
+ const std::string& _internal_newnotifytoken() const;
+ void _internal_set_newnotifytoken(const std::string& value);
+ std::string* _internal_mutable_newnotifytoken();
public:
- // @@protoc_insertion_point(class_scope:tunnelbroker.GetResponseMessage)
+ void clear_data();
+ DataCase data_case() const;
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToTunnelbroker)
private:
class _Internal;
+ void set_has_messagestosend();
+ void set_has_processedmessages();
+ void set_has_newnotifytoken();
+
+ inline bool has_data() const;
+ inline void clear_has_data();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> blobhashes_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
+ union DataUnion {
+ constexpr DataUnion() : _constinit_{} {}
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
+ ::tunnelbroker::MessagesToSend* messagestosend_;
+ ::tunnelbroker::ProcessedMessages* processedmessages_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newnotifytoken_;
+ } data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
+
friend struct ::TableStruct_tunnelbroker_2eproto;
};
// -------------------------------------------------------------------
-class GetResponse PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.GetResponse) */ {
+class MessageToClientStruct PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClientStruct) */ {
public:
- inline GetResponse() : GetResponse(nullptr) {}
- virtual ~GetResponse();
- explicit constexpr GetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline MessageToClientStruct() : MessageToClientStruct(nullptr) {}
+ virtual ~MessageToClientStruct();
+ explicit constexpr MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- GetResponse(const GetResponse& from);
- GetResponse(GetResponse&& from) noexcept
- : GetResponse() {
+ MessageToClientStruct(const MessageToClientStruct& from);
+ MessageToClientStruct(MessageToClientStruct&& from) noexcept
+ : MessageToClientStruct() {
*this = ::std::move(from);
}
- inline GetResponse& operator=(const GetResponse& from) {
+ inline MessageToClientStruct& operator=(const MessageToClientStruct& from) {
CopyFrom(from);
return *this;
}
- inline GetResponse& operator=(GetResponse&& from) noexcept {
+ inline MessageToClientStruct& operator=(MessageToClientStruct&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -1507,27 +1596,20 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const GetResponse& default_instance() {
+ static const MessageToClientStruct& default_instance() {
return *internal_default_instance();
}
- enum DataCase {
- kResponseMessage = 1,
- kPing = 2,
- kNewNotifyTokenRequired = 3,
- DATA_NOT_SET = 0,
- };
-
- static inline const GetResponse* internal_default_instance() {
- return reinterpret_cast<const GetResponse*>(
- &_GetResponse_default_instance_);
+ static inline const MessageToClientStruct* internal_default_instance() {
+ return reinterpret_cast<const MessageToClientStruct*>(
+ &_MessageToClientStruct_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 7;
+ 8;
- friend void swap(GetResponse& a, GetResponse& b) {
+ friend void swap(MessageToClientStruct& a, MessageToClientStruct& b) {
a.Swap(&b);
}
- inline void Swap(GetResponse* other) {
+ inline void Swap(MessageToClientStruct* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -1535,7 +1617,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(GetResponse* other) {
+ void UnsafeArenaSwap(MessageToClientStruct* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -1543,17 +1625,17 @@
// implements Message ----------------------------------------------
- inline GetResponse* New() const final {
- return CreateMaybeMessage<GetResponse>(nullptr);
+ inline MessageToClientStruct* New() const final {
+ return CreateMaybeMessage<MessageToClientStruct>(nullptr);
}
- GetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<GetResponse>(arena);
+ MessageToClientStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessageToClientStruct>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const GetResponse& from);
- void MergeFrom(const GetResponse& from);
+ void CopyFrom(const MessageToClientStruct& from);
+ void MergeFrom(const MessageToClientStruct& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -1567,13 +1649,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(GetResponse* other);
+ void InternalSwap(MessageToClientStruct* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.GetResponse";
+ return "tunnelbroker.MessageToClientStruct";
}
protected:
- explicit GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1592,111 +1674,117 @@
// accessors -------------------------------------------------------
enum : int {
- kResponseMessageFieldNumber = 1,
- kPingFieldNumber = 2,
- kNewNotifyTokenRequiredFieldNumber = 3,
+ kBlobHashesFieldNumber = 4,
+ kMessageIDFieldNumber = 1,
+ kFromDeviceIDFieldNumber = 2,
+ kPayloadFieldNumber = 3,
};
- // .tunnelbroker.GetResponseMessage responseMessage = 1;
- bool has_responsemessage() const;
+ // repeated string blobHashes = 4;
+ int blobhashes_size() const;
private:
- bool _internal_has_responsemessage() const;
+ int _internal_blobhashes_size() const;
public:
- void clear_responsemessage();
- const ::tunnelbroker::GetResponseMessage& responsemessage() const;
- ::tunnelbroker::GetResponseMessage* release_responsemessage();
- ::tunnelbroker::GetResponseMessage* mutable_responsemessage();
- void set_allocated_responsemessage(::tunnelbroker::GetResponseMessage* responsemessage);
+ void clear_blobhashes();
+ const std::string& blobhashes(int index) const;
+ std::string* mutable_blobhashes(int index);
+ void set_blobhashes(int index, const std::string& value);
+ void set_blobhashes(int index, std::string&& value);
+ void set_blobhashes(int index, const char* value);
+ void set_blobhashes(int index, const char* value, size_t size);
+ std::string* add_blobhashes();
+ void add_blobhashes(const std::string& value);
+ void add_blobhashes(std::string&& value);
+ void add_blobhashes(const char* value);
+ void add_blobhashes(const char* value, size_t size);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& blobhashes() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_blobhashes();
private:
- const ::tunnelbroker::GetResponseMessage& _internal_responsemessage() const;
- ::tunnelbroker::GetResponseMessage* _internal_mutable_responsemessage();
+ const std::string& _internal_blobhashes(int index) const;
+ std::string* _internal_add_blobhashes();
public:
- void unsafe_arena_set_allocated_responsemessage(
- ::tunnelbroker::GetResponseMessage* responsemessage);
- ::tunnelbroker::GetResponseMessage* unsafe_arena_release_responsemessage();
- // .google.protobuf.Empty ping = 2;
- bool has_ping() const;
+ // string messageID = 1;
+ void clear_messageid();
+ const std::string& messageid() const;
+ void set_messageid(const std::string& value);
+ void set_messageid(std::string&& value);
+ void set_messageid(const char* value);
+ void set_messageid(const char* value, size_t size);
+ std::string* mutable_messageid();
+ std::string* release_messageid();
+ void set_allocated_messageid(std::string* messageid);
private:
- bool _internal_has_ping() const;
+ const std::string& _internal_messageid() const;
+ void _internal_set_messageid(const std::string& value);
+ std::string* _internal_mutable_messageid();
public:
- void clear_ping();
- const PROTOBUF_NAMESPACE_ID::Empty& ping() const;
- PROTOBUF_NAMESPACE_ID::Empty* release_ping();
- PROTOBUF_NAMESPACE_ID::Empty* mutable_ping();
- void set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping);
- private:
- const PROTOBUF_NAMESPACE_ID::Empty& _internal_ping() const;
- PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_ping();
- public:
- void unsafe_arena_set_allocated_ping(
- PROTOBUF_NAMESPACE_ID::Empty* ping);
- PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_ping();
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- bool has_newnotifytokenrequired() const;
+ // string fromDeviceID = 2;
+ void clear_fromdeviceid();
+ const std::string& fromdeviceid() const;
+ void set_fromdeviceid(const std::string& value);
+ void set_fromdeviceid(std::string&& value);
+ void set_fromdeviceid(const char* value);
+ void set_fromdeviceid(const char* value, size_t size);
+ std::string* mutable_fromdeviceid();
+ std::string* release_fromdeviceid();
+ void set_allocated_fromdeviceid(std::string* fromdeviceid);
private:
- bool _internal_has_newnotifytokenrequired() const;
+ const std::string& _internal_fromdeviceid() const;
+ void _internal_set_fromdeviceid(const std::string& value);
+ std::string* _internal_mutable_fromdeviceid();
public:
- void clear_newnotifytokenrequired();
- const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired() const;
- PROTOBUF_NAMESPACE_ID::Empty* release_newnotifytokenrequired();
- PROTOBUF_NAMESPACE_ID::Empty* mutable_newnotifytokenrequired();
- void set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
+
+ // string payload = 3;
+ void clear_payload();
+ const std::string& payload() const;
+ void set_payload(const std::string& value);
+ void set_payload(std::string&& value);
+ void set_payload(const char* value);
+ void set_payload(const char* value, size_t size);
+ std::string* mutable_payload();
+ std::string* release_payload();
+ void set_allocated_payload(std::string* payload);
private:
- const PROTOBUF_NAMESPACE_ID::Empty& _internal_newnotifytokenrequired() const;
- PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_newnotifytokenrequired();
+ const std::string& _internal_payload() const;
+ void _internal_set_payload(const std::string& value);
+ std::string* _internal_mutable_payload();
public:
- void unsafe_arena_set_allocated_newnotifytokenrequired(
- PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
- PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_newnotifytokenrequired();
- void clear_data();
- DataCase data_case() const;
- // @@protoc_insertion_point(class_scope:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToClientStruct)
private:
class _Internal;
- void set_has_responsemessage();
- void set_has_ping();
- void set_has_newnotifytokenrequired();
-
- inline bool has_data() const;
- inline void clear_has_data();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
- union DataUnion {
- constexpr DataUnion() : _constinit_{} {}
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
- ::tunnelbroker::GetResponseMessage* responsemessage_;
- PROTOBUF_NAMESPACE_ID::Empty* ping_;
- PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired_;
- } data_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> blobhashes_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
-
friend struct ::TableStruct_tunnelbroker_2eproto;
};
// -------------------------------------------------------------------
-class ProcessedMessages PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.ProcessedMessages) */ {
+class MessagesToDeliver PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToDeliver) */ {
public:
- inline ProcessedMessages() : ProcessedMessages(nullptr) {}
- virtual ~ProcessedMessages();
- explicit constexpr ProcessedMessages(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline MessagesToDeliver() : MessagesToDeliver(nullptr) {}
+ virtual ~MessagesToDeliver();
+ explicit constexpr MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- ProcessedMessages(const ProcessedMessages& from);
- ProcessedMessages(ProcessedMessages&& from) noexcept
- : ProcessedMessages() {
+ MessagesToDeliver(const MessagesToDeliver& from);
+ MessagesToDeliver(MessagesToDeliver&& from) noexcept
+ : MessagesToDeliver() {
*this = ::std::move(from);
}
- inline ProcessedMessages& operator=(const ProcessedMessages& from) {
+ inline MessagesToDeliver& operator=(const MessagesToDeliver& from) {
CopyFrom(from);
return *this;
}
- inline ProcessedMessages& operator=(ProcessedMessages&& from) noexcept {
+ inline MessagesToDeliver& operator=(MessagesToDeliver&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -1714,20 +1802,20 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const ProcessedMessages& default_instance() {
+ static const MessagesToDeliver& default_instance() {
return *internal_default_instance();
}
- static inline const ProcessedMessages* internal_default_instance() {
- return reinterpret_cast<const ProcessedMessages*>(
- &_ProcessedMessages_default_instance_);
+ static inline const MessagesToDeliver* internal_default_instance() {
+ return reinterpret_cast<const MessagesToDeliver*>(
+ &_MessagesToDeliver_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 8;
+ 9;
- friend void swap(ProcessedMessages& a, ProcessedMessages& b) {
+ friend void swap(MessagesToDeliver& a, MessagesToDeliver& b) {
a.Swap(&b);
}
- inline void Swap(ProcessedMessages* other) {
+ inline void Swap(MessagesToDeliver* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -1735,7 +1823,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(ProcessedMessages* other) {
+ void UnsafeArenaSwap(MessagesToDeliver* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -1743,17 +1831,17 @@
// implements Message ----------------------------------------------
- inline ProcessedMessages* New() const final {
- return CreateMaybeMessage<ProcessedMessages>(nullptr);
+ inline MessagesToDeliver* New() const final {
+ return CreateMaybeMessage<MessagesToDeliver>(nullptr);
}
- ProcessedMessages* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<ProcessedMessages>(arena);
+ MessagesToDeliver* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessagesToDeliver>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const ProcessedMessages& from);
- void MergeFrom(const ProcessedMessages& from);
+ void CopyFrom(const MessagesToDeliver& from);
+ void MergeFrom(const MessagesToDeliver& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -1767,13 +1855,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(ProcessedMessages* other);
+ void InternalSwap(MessagesToDeliver* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.ProcessedMessages";
+ return "tunnelbroker.MessagesToDeliver";
}
protected:
- explicit ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1792,63 +1880,57 @@
// accessors -------------------------------------------------------
enum : int {
- kMessageIDFieldNumber = 1,
+ kMessagesFieldNumber = 1,
};
- // repeated string messageID = 1;
- int messageid_size() const;
+ // repeated .tunnelbroker.MessageToClientStruct messages = 1;
+ int messages_size() const;
private:
- int _internal_messageid_size() const;
+ int _internal_messages_size() const;
public:
- void clear_messageid();
- const std::string& messageid(int index) const;
- std::string* mutable_messageid(int index);
- void set_messageid(int index, const std::string& value);
- void set_messageid(int index, std::string&& value);
- void set_messageid(int index, const char* value);
- void set_messageid(int index, const char* value, size_t size);
- std::string* add_messageid();
- void add_messageid(const std::string& value);
- void add_messageid(std::string&& value);
- void add_messageid(const char* value);
- void add_messageid(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& messageid() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_messageid();
+ void clear_messages();
+ ::tunnelbroker::MessageToClientStruct* mutable_messages(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >*
+ mutable_messages();
private:
- const std::string& _internal_messageid(int index) const;
- std::string* _internal_add_messageid();
+ const ::tunnelbroker::MessageToClientStruct& _internal_messages(int index) const;
+ ::tunnelbroker::MessageToClientStruct* _internal_add_messages();
public:
+ const ::tunnelbroker::MessageToClientStruct& messages(int index) const;
+ ::tunnelbroker::MessageToClientStruct* add_messages();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >&
+ messages() const;
- // @@protoc_insertion_point(class_scope:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessagesToDeliver)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> messageid_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct > messages_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_tunnelbroker_2eproto;
};
// -------------------------------------------------------------------
-class MessageToTunnelbrokerStruct PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbrokerStruct) */ {
+class MessageToClient PROTOBUF_FINAL :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClient) */ {
public:
- inline MessageToTunnelbrokerStruct() : MessageToTunnelbrokerStruct(nullptr) {}
- virtual ~MessageToTunnelbrokerStruct();
- explicit constexpr MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline MessageToClient() : MessageToClient(nullptr) {}
+ virtual ~MessageToClient();
+ explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from);
- MessageToTunnelbrokerStruct(MessageToTunnelbrokerStruct&& from) noexcept
- : MessageToTunnelbrokerStruct() {
+ MessageToClient(const MessageToClient& from);
+ MessageToClient(MessageToClient&& from) noexcept
+ : MessageToClient() {
*this = ::std::move(from);
}
- inline MessageToTunnelbrokerStruct& operator=(const MessageToTunnelbrokerStruct& from) {
+ inline MessageToClient& operator=(const MessageToClient& from) {
CopyFrom(from);
return *this;
}
- inline MessageToTunnelbrokerStruct& operator=(MessageToTunnelbrokerStruct&& from) noexcept {
+ inline MessageToClient& operator=(MessageToClient&& from) noexcept {
if (GetArena() == from.GetArena()) {
if (this != &from) InternalSwap(&from);
} else {
@@ -1866,20 +1948,28 @@
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
- static const MessageToTunnelbrokerStruct& default_instance() {
+ static const MessageToClient& default_instance() {
return *internal_default_instance();
}
- static inline const MessageToTunnelbrokerStruct* internal_default_instance() {
- return reinterpret_cast<const MessageToTunnelbrokerStruct*>(
- &_MessageToTunnelbrokerStruct_default_instance_);
+ enum DataCase {
+ kMessagesToDeliver = 1,
+ kProcessedMessages = 2,
+ kNewNotifyTokenRequired = 3,
+ kPing = 4,
+ DATA_NOT_SET = 0,
+ };
+
+ static inline const MessageToClient* internal_default_instance() {
+ return reinterpret_cast<const MessageToClient*>(
+ &_MessageToClient_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 9;
+ 10;
- friend void swap(MessageToTunnelbrokerStruct& a, MessageToTunnelbrokerStruct& b) {
+ friend void swap(MessageToClient& a, MessageToClient& b) {
a.Swap(&b);
}
- inline void Swap(MessageToTunnelbrokerStruct* other) {
+ inline void Swap(MessageToClient* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
@@ -1887,7 +1977,7 @@
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(MessageToTunnelbrokerStruct* other) {
+ void UnsafeArenaSwap(MessageToClient* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
@@ -1895,17 +1985,17 @@
// implements Message ----------------------------------------------
- inline MessageToTunnelbrokerStruct* New() const final {
- return CreateMaybeMessage<MessageToTunnelbrokerStruct>(nullptr);
+ inline MessageToClient* New() const final {
+ return CreateMaybeMessage<MessageToClient>(nullptr);
}
- MessageToTunnelbrokerStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessageToTunnelbrokerStruct>(arena);
+ MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MessageToClient>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessageToTunnelbrokerStruct& from);
- void MergeFrom(const MessageToTunnelbrokerStruct& from);
+ void CopyFrom(const MessageToClient& from);
+ void MergeFrom(const MessageToClient& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@@ -1919,13 +2009,13 @@
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(MessageToTunnelbrokerStruct* other);
+ void InternalSwap(MessageToClient* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessageToTunnelbrokerStruct";
+ return "tunnelbroker.MessageToClient";
}
protected:
- explicit MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
@@ -1944,436 +2034,95 @@
// accessors -------------------------------------------------------
enum : int {
- kBlobHashesFieldNumber = 4,
- kMessageIDFieldNumber = 1,
- kToDeviceIDFieldNumber = 2,
- kPayloadFieldNumber = 3,
+ kMessagesToDeliverFieldNumber = 1,
+ kProcessedMessagesFieldNumber = 2,
+ kNewNotifyTokenRequiredFieldNumber = 3,
+ kPingFieldNumber = 4,
};
- // repeated string blobHashes = 4;
- int blobhashes_size() const;
+ // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
+ bool has_messagestodeliver() const;
private:
- int _internal_blobhashes_size() const;
+ bool _internal_has_messagestodeliver() const;
public:
- void clear_blobhashes();
- const std::string& blobhashes(int index) const;
- std::string* mutable_blobhashes(int index);
- void set_blobhashes(int index, const std::string& value);
- void set_blobhashes(int index, std::string&& value);
- void set_blobhashes(int index, const char* value);
- void set_blobhashes(int index, const char* value, size_t size);
- std::string* add_blobhashes();
- void add_blobhashes(const std::string& value);
- void add_blobhashes(std::string&& value);
- void add_blobhashes(const char* value);
- void add_blobhashes(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& blobhashes() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_blobhashes();
- private:
- const std::string& _internal_blobhashes(int index) const;
- std::string* _internal_add_blobhashes();
- public:
-
- // string messageID = 1;
- void clear_messageid();
- const std::string& messageid() const;
- void set_messageid(const std::string& value);
- void set_messageid(std::string&& value);
- void set_messageid(const char* value);
- void set_messageid(const char* value, size_t size);
- std::string* mutable_messageid();
- std::string* release_messageid();
- void set_allocated_messageid(std::string* messageid);
+ void clear_messagestodeliver();
+ const ::tunnelbroker::MessagesToDeliver& messagestodeliver() const;
+ ::tunnelbroker::MessagesToDeliver* release_messagestodeliver();
+ ::tunnelbroker::MessagesToDeliver* mutable_messagestodeliver();
+ void set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver);
private:
- const std::string& _internal_messageid() const;
- void _internal_set_messageid(const std::string& value);
- std::string* _internal_mutable_messageid();
+ const ::tunnelbroker::MessagesToDeliver& _internal_messagestodeliver() const;
+ ::tunnelbroker::MessagesToDeliver* _internal_mutable_messagestodeliver();
public:
+ void unsafe_arena_set_allocated_messagestodeliver(
+ ::tunnelbroker::MessagesToDeliver* messagestodeliver);
+ ::tunnelbroker::MessagesToDeliver* unsafe_arena_release_messagestodeliver();
- // string toDeviceID = 2;
- void clear_todeviceid();
- const std::string& todeviceid() const;
- void set_todeviceid(const std::string& value);
- void set_todeviceid(std::string&& value);
- void set_todeviceid(const char* value);
- void set_todeviceid(const char* value, size_t size);
- std::string* mutable_todeviceid();
- std::string* release_todeviceid();
- void set_allocated_todeviceid(std::string* todeviceid);
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ bool has_processedmessages() const;
private:
- const std::string& _internal_todeviceid() const;
- void _internal_set_todeviceid(const std::string& value);
- std::string* _internal_mutable_todeviceid();
+ bool _internal_has_processedmessages() const;
public:
-
- // string payload = 3;
- void clear_payload();
- const std::string& payload() const;
- void set_payload(const std::string& value);
- void set_payload(std::string&& value);
- void set_payload(const char* value);
- void set_payload(const char* value, size_t size);
- std::string* mutable_payload();
- std::string* release_payload();
- void set_allocated_payload(std::string* payload);
+ void clear_processedmessages();
+ const ::tunnelbroker::ProcessedMessages& processedmessages() const;
+ ::tunnelbroker::ProcessedMessages* release_processedmessages();
+ ::tunnelbroker::ProcessedMessages* mutable_processedmessages();
+ void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages);
private:
- const std::string& _internal_payload() const;
- void _internal_set_payload(const std::string& value);
- std::string* _internal_mutable_payload();
+ const ::tunnelbroker::ProcessedMessages& _internal_processedmessages() const;
+ ::tunnelbroker::ProcessedMessages* _internal_mutable_processedmessages();
public:
+ void unsafe_arena_set_allocated_processedmessages(
+ ::tunnelbroker::ProcessedMessages* processedmessages);
+ ::tunnelbroker::ProcessedMessages* unsafe_arena_release_processedmessages();
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToTunnelbrokerStruct)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> blobhashes_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class MessagesToSend PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToSend) */ {
- public:
- inline MessagesToSend() : MessagesToSend(nullptr) {}
- virtual ~MessagesToSend();
- explicit constexpr MessagesToSend(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- MessagesToSend(const MessagesToSend& from);
- MessagesToSend(MessagesToSend&& from) noexcept
- : MessagesToSend() {
- *this = ::std::move(from);
- }
-
- inline MessagesToSend& operator=(const MessagesToSend& from) {
- CopyFrom(from);
- return *this;
- }
- inline MessagesToSend& operator=(MessagesToSend&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const MessagesToSend& default_instance() {
- return *internal_default_instance();
- }
- static inline const MessagesToSend* internal_default_instance() {
- return reinterpret_cast<const MessagesToSend*>(
- &_MessagesToSend_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 10;
-
- friend void swap(MessagesToSend& a, MessagesToSend& b) {
- a.Swap(&b);
- }
- inline void Swap(MessagesToSend* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(MessagesToSend* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline MessagesToSend* New() const final {
- return CreateMaybeMessage<MessagesToSend>(nullptr);
- }
-
- MessagesToSend* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessagesToSend>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessagesToSend& from);
- void MergeFrom(const MessagesToSend& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MessagesToSend* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessagesToSend";
- }
- protected:
- explicit MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ // .google.protobuf.Empty newNotifyTokenRequired = 3;
+ bool has_newnotifytokenrequired() const;
private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ bool _internal_has_newnotifytokenrequired() const;
public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ void clear_newnotifytokenrequired();
+ const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired() const;
+ PROTOBUF_NAMESPACE_ID::Empty* release_newnotifytokenrequired();
+ PROTOBUF_NAMESPACE_ID::Empty* mutable_newnotifytokenrequired();
+ void set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
+ const PROTOBUF_NAMESPACE_ID::Empty& _internal_newnotifytokenrequired() const;
+ PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_newnotifytokenrequired();
public:
+ void unsafe_arena_set_allocated_newnotifytokenrequired(
+ PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
+ PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_newnotifytokenrequired();
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kMessagesFieldNumber = 1,
- };
- // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
- int messages_size() const;
+ // .google.protobuf.Empty ping = 4;
+ bool has_ping() const;
private:
- int _internal_messages_size() const;
+ bool _internal_has_ping() const;
public:
- void clear_messages();
- ::tunnelbroker::MessageToTunnelbrokerStruct* mutable_messages(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >*
- mutable_messages();
+ void clear_ping();
+ const PROTOBUF_NAMESPACE_ID::Empty& ping() const;
+ PROTOBUF_NAMESPACE_ID::Empty* release_ping();
+ PROTOBUF_NAMESPACE_ID::Empty* mutable_ping();
+ void set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping);
private:
- const ::tunnelbroker::MessageToTunnelbrokerStruct& _internal_messages(int index) const;
- ::tunnelbroker::MessageToTunnelbrokerStruct* _internal_add_messages();
+ const PROTOBUF_NAMESPACE_ID::Empty& _internal_ping() const;
+ PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_ping();
public:
- const ::tunnelbroker::MessageToTunnelbrokerStruct& messages(int index) const;
- ::tunnelbroker::MessageToTunnelbrokerStruct* add_messages();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >&
- messages() const;
+ void unsafe_arena_set_allocated_ping(
+ PROTOBUF_NAMESPACE_ID::Empty* ping);
+ PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_ping();
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessagesToSend)
+ void clear_data();
+ DataCase data_case() const;
+ // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToClient)
private:
class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct > messages_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class MessageToTunnelbroker PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbroker) */ {
- public:
- inline MessageToTunnelbroker() : MessageToTunnelbroker(nullptr) {}
- virtual ~MessageToTunnelbroker();
- explicit constexpr MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- MessageToTunnelbroker(const MessageToTunnelbroker& from);
- MessageToTunnelbroker(MessageToTunnelbroker&& from) noexcept
- : MessageToTunnelbroker() {
- *this = ::std::move(from);
- }
-
- inline MessageToTunnelbroker& operator=(const MessageToTunnelbroker& from) {
- CopyFrom(from);
- return *this;
- }
- inline MessageToTunnelbroker& operator=(MessageToTunnelbroker&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const MessageToTunnelbroker& default_instance() {
- return *internal_default_instance();
- }
- enum DataCase {
- kMessagesToSend = 1,
- kProcessedMessages = 2,
- kNewNotifyToken = 3,
- DATA_NOT_SET = 0,
- };
-
- static inline const MessageToTunnelbroker* internal_default_instance() {
- return reinterpret_cast<const MessageToTunnelbroker*>(
- &_MessageToTunnelbroker_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 11;
-
- friend void swap(MessageToTunnelbroker& a, MessageToTunnelbroker& b) {
- a.Swap(&b);
- }
- inline void Swap(MessageToTunnelbroker* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(MessageToTunnelbroker* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline MessageToTunnelbroker* New() const final {
- return CreateMaybeMessage<MessageToTunnelbroker>(nullptr);
- }
-
- MessageToTunnelbroker* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessageToTunnelbroker>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessageToTunnelbroker& from);
- void MergeFrom(const MessageToTunnelbroker& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MessageToTunnelbroker* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessageToTunnelbroker";
- }
- protected:
- explicit MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kMessagesToSendFieldNumber = 1,
- kProcessedMessagesFieldNumber = 2,
- kNewNotifyTokenFieldNumber = 3,
- };
- // .tunnelbroker.MessagesToSend messagesToSend = 1;
- bool has_messagestosend() const;
- private:
- bool _internal_has_messagestosend() const;
- public:
- void clear_messagestosend();
- const ::tunnelbroker::MessagesToSend& messagestosend() const;
- ::tunnelbroker::MessagesToSend* release_messagestosend();
- ::tunnelbroker::MessagesToSend* mutable_messagestosend();
- void set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend);
- private:
- const ::tunnelbroker::MessagesToSend& _internal_messagestosend() const;
- ::tunnelbroker::MessagesToSend* _internal_mutable_messagestosend();
- public:
- void unsafe_arena_set_allocated_messagestosend(
- ::tunnelbroker::MessagesToSend* messagestosend);
- ::tunnelbroker::MessagesToSend* unsafe_arena_release_messagestosend();
-
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- bool has_processedmessages() const;
- private:
- bool _internal_has_processedmessages() const;
- public:
- void clear_processedmessages();
- const ::tunnelbroker::ProcessedMessages& processedmessages() const;
- ::tunnelbroker::ProcessedMessages* release_processedmessages();
- ::tunnelbroker::ProcessedMessages* mutable_processedmessages();
- void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages);
- private:
- const ::tunnelbroker::ProcessedMessages& _internal_processedmessages() const;
- ::tunnelbroker::ProcessedMessages* _internal_mutable_processedmessages();
- public:
- void unsafe_arena_set_allocated_processedmessages(
- ::tunnelbroker::ProcessedMessages* processedmessages);
- ::tunnelbroker::ProcessedMessages* unsafe_arena_release_processedmessages();
-
- // string newNotifyToken = 3;
- bool has_newnotifytoken() const;
- private:
- bool _internal_has_newnotifytoken() const;
- public:
- void clear_newnotifytoken();
- const std::string& newnotifytoken() const;
- void set_newnotifytoken(const std::string& value);
- void set_newnotifytoken(std::string&& value);
- void set_newnotifytoken(const char* value);
- void set_newnotifytoken(const char* value, size_t size);
- std::string* mutable_newnotifytoken();
- std::string* release_newnotifytoken();
- void set_allocated_newnotifytoken(std::string* newnotifytoken);
- private:
- const std::string& _internal_newnotifytoken() const;
- void _internal_set_newnotifytoken(const std::string& value);
- std::string* _internal_mutable_newnotifytoken();
- public:
-
- void clear_data();
- DataCase data_case() const;
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToTunnelbroker)
- private:
- class _Internal;
- void set_has_messagestosend();
- void set_has_processedmessages();
- void set_has_newnotifytoken();
-
- inline bool has_data() const;
- inline void clear_has_data();
+ void set_has_messagestodeliver();
+ void set_has_processedmessages();
+ void set_has_newnotifytokenrequired();
+ void set_has_ping();
+
+ inline bool has_data() const;
+ inline void clear_has_data();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
@@ -2381,2775 +2130,620 @@
union DataUnion {
constexpr DataUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
- ::tunnelbroker::MessagesToSend* messagestosend_;
+ ::tunnelbroker::MessagesToDeliver* messagestodeliver_;
::tunnelbroker::ProcessedMessages* processedmessages_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newnotifytoken_;
+ PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired_;
+ PROTOBUF_NAMESPACE_ID::Empty* ping_;
} data_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
-
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class MessageToClientStruct PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClientStruct) */ {
- public:
- inline MessageToClientStruct() : MessageToClientStruct(nullptr) {}
- virtual ~MessageToClientStruct();
- explicit constexpr MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- MessageToClientStruct(const MessageToClientStruct& from);
- MessageToClientStruct(MessageToClientStruct&& from) noexcept
- : MessageToClientStruct() {
- *this = ::std::move(from);
- }
-
- inline MessageToClientStruct& operator=(const MessageToClientStruct& from) {
- CopyFrom(from);
- return *this;
- }
- inline MessageToClientStruct& operator=(MessageToClientStruct&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const MessageToClientStruct& default_instance() {
- return *internal_default_instance();
- }
- static inline const MessageToClientStruct* internal_default_instance() {
- return reinterpret_cast<const MessageToClientStruct*>(
- &_MessageToClientStruct_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 12;
-
- friend void swap(MessageToClientStruct& a, MessageToClientStruct& b) {
- a.Swap(&b);
- }
- inline void Swap(MessageToClientStruct* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(MessageToClientStruct* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline MessageToClientStruct* New() const final {
- return CreateMaybeMessage<MessageToClientStruct>(nullptr);
- }
-
- MessageToClientStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessageToClientStruct>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessageToClientStruct& from);
- void MergeFrom(const MessageToClientStruct& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MessageToClientStruct* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessageToClientStruct";
- }
- protected:
- explicit MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kBlobHashesFieldNumber = 4,
- kMessageIDFieldNumber = 1,
- kFromDeviceIDFieldNumber = 2,
- kPayloadFieldNumber = 3,
- };
- // repeated string blobHashes = 4;
- int blobhashes_size() const;
- private:
- int _internal_blobhashes_size() const;
- public:
- void clear_blobhashes();
- const std::string& blobhashes(int index) const;
- std::string* mutable_blobhashes(int index);
- void set_blobhashes(int index, const std::string& value);
- void set_blobhashes(int index, std::string&& value);
- void set_blobhashes(int index, const char* value);
- void set_blobhashes(int index, const char* value, size_t size);
- std::string* add_blobhashes();
- void add_blobhashes(const std::string& value);
- void add_blobhashes(std::string&& value);
- void add_blobhashes(const char* value);
- void add_blobhashes(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& blobhashes() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_blobhashes();
- private:
- const std::string& _internal_blobhashes(int index) const;
- std::string* _internal_add_blobhashes();
- public:
-
- // string messageID = 1;
- void clear_messageid();
- const std::string& messageid() const;
- void set_messageid(const std::string& value);
- void set_messageid(std::string&& value);
- void set_messageid(const char* value);
- void set_messageid(const char* value, size_t size);
- std::string* mutable_messageid();
- std::string* release_messageid();
- void set_allocated_messageid(std::string* messageid);
- private:
- const std::string& _internal_messageid() const;
- void _internal_set_messageid(const std::string& value);
- std::string* _internal_mutable_messageid();
- public:
-
- // string fromDeviceID = 2;
- void clear_fromdeviceid();
- const std::string& fromdeviceid() const;
- void set_fromdeviceid(const std::string& value);
- void set_fromdeviceid(std::string&& value);
- void set_fromdeviceid(const char* value);
- void set_fromdeviceid(const char* value, size_t size);
- std::string* mutable_fromdeviceid();
- std::string* release_fromdeviceid();
- void set_allocated_fromdeviceid(std::string* fromdeviceid);
- private:
- const std::string& _internal_fromdeviceid() const;
- void _internal_set_fromdeviceid(const std::string& value);
- std::string* _internal_mutable_fromdeviceid();
- public:
-
- // string payload = 3;
- void clear_payload();
- const std::string& payload() const;
- void set_payload(const std::string& value);
- void set_payload(std::string&& value);
- void set_payload(const char* value);
- void set_payload(const char* value, size_t size);
- std::string* mutable_payload();
- std::string* release_payload();
- void set_allocated_payload(std::string* payload);
- private:
- const std::string& _internal_payload() const;
- void _internal_set_payload(const std::string& value);
- std::string* _internal_mutable_payload();
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToClientStruct)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> blobhashes_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class MessagesToDeliver PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToDeliver) */ {
- public:
- inline MessagesToDeliver() : MessagesToDeliver(nullptr) {}
- virtual ~MessagesToDeliver();
- explicit constexpr MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- MessagesToDeliver(const MessagesToDeliver& from);
- MessagesToDeliver(MessagesToDeliver&& from) noexcept
- : MessagesToDeliver() {
- *this = ::std::move(from);
- }
-
- inline MessagesToDeliver& operator=(const MessagesToDeliver& from) {
- CopyFrom(from);
- return *this;
- }
- inline MessagesToDeliver& operator=(MessagesToDeliver&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const MessagesToDeliver& default_instance() {
- return *internal_default_instance();
- }
- static inline const MessagesToDeliver* internal_default_instance() {
- return reinterpret_cast<const MessagesToDeliver*>(
- &_MessagesToDeliver_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 13;
-
- friend void swap(MessagesToDeliver& a, MessagesToDeliver& b) {
- a.Swap(&b);
- }
- inline void Swap(MessagesToDeliver* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(MessagesToDeliver* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline MessagesToDeliver* New() const final {
- return CreateMaybeMessage<MessagesToDeliver>(nullptr);
- }
-
- MessagesToDeliver* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessagesToDeliver>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessagesToDeliver& from);
- void MergeFrom(const MessagesToDeliver& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MessagesToDeliver* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessagesToDeliver";
- }
- protected:
- explicit MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kMessagesFieldNumber = 1,
- };
- // repeated .tunnelbroker.MessageToClientStruct messages = 1;
- int messages_size() const;
- private:
- int _internal_messages_size() const;
- public:
- void clear_messages();
- ::tunnelbroker::MessageToClientStruct* mutable_messages(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >*
- mutable_messages();
- private:
- const ::tunnelbroker::MessageToClientStruct& _internal_messages(int index) const;
- ::tunnelbroker::MessageToClientStruct* _internal_add_messages();
- public:
- const ::tunnelbroker::MessageToClientStruct& messages(int index) const;
- ::tunnelbroker::MessageToClientStruct* add_messages();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >&
- messages() const;
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessagesToDeliver)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct > messages_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class MessageToClient PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClient) */ {
- public:
- inline MessageToClient() : MessageToClient(nullptr) {}
- virtual ~MessageToClient();
- explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- MessageToClient(const MessageToClient& from);
- MessageToClient(MessageToClient&& from) noexcept
- : MessageToClient() {
- *this = ::std::move(from);
- }
-
- inline MessageToClient& operator=(const MessageToClient& from) {
- CopyFrom(from);
- return *this;
- }
- inline MessageToClient& operator=(MessageToClient&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const MessageToClient& default_instance() {
- return *internal_default_instance();
- }
- enum DataCase {
- kMessagesToDeliver = 1,
- kProcessedMessages = 2,
- kNewNotifyTokenRequired = 3,
- kPing = 4,
- DATA_NOT_SET = 0,
- };
-
- static inline const MessageToClient* internal_default_instance() {
- return reinterpret_cast<const MessageToClient*>(
- &_MessageToClient_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 14;
-
- friend void swap(MessageToClient& a, MessageToClient& b) {
- a.Swap(&b);
- }
- inline void Swap(MessageToClient* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(MessageToClient* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline MessageToClient* New() const final {
- return CreateMaybeMessage<MessageToClient>(nullptr);
- }
-
- MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<MessageToClient>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const MessageToClient& from);
- void MergeFrom(const MessageToClient& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MessageToClient* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.MessageToClient";
- }
- protected:
- explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kMessagesToDeliverFieldNumber = 1,
- kProcessedMessagesFieldNumber = 2,
- kNewNotifyTokenRequiredFieldNumber = 3,
- kPingFieldNumber = 4,
- };
- // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
- bool has_messagestodeliver() const;
- private:
- bool _internal_has_messagestodeliver() const;
- public:
- void clear_messagestodeliver();
- const ::tunnelbroker::MessagesToDeliver& messagestodeliver() const;
- ::tunnelbroker::MessagesToDeliver* release_messagestodeliver();
- ::tunnelbroker::MessagesToDeliver* mutable_messagestodeliver();
- void set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver);
- private:
- const ::tunnelbroker::MessagesToDeliver& _internal_messagestodeliver() const;
- ::tunnelbroker::MessagesToDeliver* _internal_mutable_messagestodeliver();
- public:
- void unsafe_arena_set_allocated_messagestodeliver(
- ::tunnelbroker::MessagesToDeliver* messagestodeliver);
- ::tunnelbroker::MessagesToDeliver* unsafe_arena_release_messagestodeliver();
-
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- bool has_processedmessages() const;
- private:
- bool _internal_has_processedmessages() const;
- public:
- void clear_processedmessages();
- const ::tunnelbroker::ProcessedMessages& processedmessages() const;
- ::tunnelbroker::ProcessedMessages* release_processedmessages();
- ::tunnelbroker::ProcessedMessages* mutable_processedmessages();
- void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages);
- private:
- const ::tunnelbroker::ProcessedMessages& _internal_processedmessages() const;
- ::tunnelbroker::ProcessedMessages* _internal_mutable_processedmessages();
- public:
- void unsafe_arena_set_allocated_processedmessages(
- ::tunnelbroker::ProcessedMessages* processedmessages);
- ::tunnelbroker::ProcessedMessages* unsafe_arena_release_processedmessages();
-
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- bool has_newnotifytokenrequired() const;
- private:
- bool _internal_has_newnotifytokenrequired() const;
- public:
- void clear_newnotifytokenrequired();
- const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired() const;
- PROTOBUF_NAMESPACE_ID::Empty* release_newnotifytokenrequired();
- PROTOBUF_NAMESPACE_ID::Empty* mutable_newnotifytokenrequired();
- void set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
- private:
- const PROTOBUF_NAMESPACE_ID::Empty& _internal_newnotifytokenrequired() const;
- PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_newnotifytokenrequired();
- public:
- void unsafe_arena_set_allocated_newnotifytokenrequired(
- PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired);
- PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_newnotifytokenrequired();
-
- // .google.protobuf.Empty ping = 4;
- bool has_ping() const;
- private:
- bool _internal_has_ping() const;
- public:
- void clear_ping();
- const PROTOBUF_NAMESPACE_ID::Empty& ping() const;
- PROTOBUF_NAMESPACE_ID::Empty* release_ping();
- PROTOBUF_NAMESPACE_ID::Empty* mutable_ping();
- void set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping);
- private:
- const PROTOBUF_NAMESPACE_ID::Empty& _internal_ping() const;
- PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_ping();
- public:
- void unsafe_arena_set_allocated_ping(
- PROTOBUF_NAMESPACE_ID::Empty* ping);
- PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_ping();
-
- void clear_data();
- DataCase data_case() const;
- // @@protoc_insertion_point(class_scope:tunnelbroker.MessageToClient)
- private:
- class _Internal;
- void set_has_messagestodeliver();
- void set_has_processedmessages();
- void set_has_newnotifytokenrequired();
- void set_has_ping();
-
- inline bool has_data() const;
- inline void clear_has_data();
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- union DataUnion {
- constexpr DataUnion() : _constinit_{} {}
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
- ::tunnelbroker::MessagesToDeliver* messagestodeliver_;
- ::tunnelbroker::ProcessedMessages* processedmessages_;
- PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired_;
- PROTOBUF_NAMESPACE_ID::Empty* ping_;
- } data_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
-
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class CheckRequest PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.CheckRequest) */ {
- public:
- inline CheckRequest() : CheckRequest(nullptr) {}
- virtual ~CheckRequest();
- explicit constexpr CheckRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- CheckRequest(const CheckRequest& from);
- CheckRequest(CheckRequest&& from) noexcept
- : CheckRequest() {
- *this = ::std::move(from);
- }
-
- inline CheckRequest& operator=(const CheckRequest& from) {
- CopyFrom(from);
- return *this;
- }
- inline CheckRequest& operator=(CheckRequest&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const CheckRequest& default_instance() {
- return *internal_default_instance();
- }
- static inline const CheckRequest* internal_default_instance() {
- return reinterpret_cast<const CheckRequest*>(
- &_CheckRequest_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 15;
-
- friend void swap(CheckRequest& a, CheckRequest& b) {
- a.Swap(&b);
- }
- inline void Swap(CheckRequest* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(CheckRequest* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline CheckRequest* New() const final {
- return CreateMaybeMessage<CheckRequest>(nullptr);
- }
-
- CheckRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<CheckRequest>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const CheckRequest& from);
- void MergeFrom(const CheckRequest& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(CheckRequest* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.CheckRequest";
- }
- protected:
- explicit CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kUserIdFieldNumber = 1,
- kDeviceTokenFieldNumber = 2,
- };
- // string userId = 1;
- void clear_userid();
- const std::string& userid() const;
- void set_userid(const std::string& value);
- void set_userid(std::string&& value);
- void set_userid(const char* value);
- void set_userid(const char* value, size_t size);
- std::string* mutable_userid();
- std::string* release_userid();
- void set_allocated_userid(std::string* userid);
- private:
- const std::string& _internal_userid() const;
- void _internal_set_userid(const std::string& value);
- std::string* _internal_mutable_userid();
- public:
-
- // string deviceToken = 2;
- void clear_devicetoken();
- const std::string& devicetoken() const;
- void set_devicetoken(const std::string& value);
- void set_devicetoken(std::string&& value);
- void set_devicetoken(const char* value);
- void set_devicetoken(const char* value, size_t size);
- std::string* mutable_devicetoken();
- std::string* release_devicetoken();
- void set_allocated_devicetoken(std::string* devicetoken);
- private:
- const std::string& _internal_devicetoken() const;
- void _internal_set_devicetoken(const std::string& value);
- std::string* _internal_mutable_devicetoken();
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.CheckRequest)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class CheckResponse PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.CheckResponse) */ {
- public:
- inline CheckResponse() : CheckResponse(nullptr) {}
- virtual ~CheckResponse();
- explicit constexpr CheckResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- CheckResponse(const CheckResponse& from);
- CheckResponse(CheckResponse&& from) noexcept
- : CheckResponse() {
- *this = ::std::move(from);
- }
-
- inline CheckResponse& operator=(const CheckResponse& from) {
- CopyFrom(from);
- return *this;
- }
- inline CheckResponse& operator=(CheckResponse&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const CheckResponse& default_instance() {
- return *internal_default_instance();
- }
- static inline const CheckResponse* internal_default_instance() {
- return reinterpret_cast<const CheckResponse*>(
- &_CheckResponse_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 16;
-
- friend void swap(CheckResponse& a, CheckResponse& b) {
- a.Swap(&b);
- }
- inline void Swap(CheckResponse* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(CheckResponse* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline CheckResponse* New() const final {
- return CreateMaybeMessage<CheckResponse>(nullptr);
- }
-
- CheckResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<CheckResponse>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const CheckResponse& from);
- void MergeFrom(const CheckResponse& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(CheckResponse* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.CheckResponse";
- }
- protected:
- explicit CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kCheckResponseTypeFieldNumber = 1,
- };
- // .tunnelbroker.CheckResponseType checkResponseType = 1;
- void clear_checkresponsetype();
- ::tunnelbroker::CheckResponseType checkresponsetype() const;
- void set_checkresponsetype(::tunnelbroker::CheckResponseType value);
- private:
- ::tunnelbroker::CheckResponseType _internal_checkresponsetype() const;
- void _internal_set_checkresponsetype(::tunnelbroker::CheckResponseType value);
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.CheckResponse)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- int checkresponsetype_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class NewPrimaryRequest PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewPrimaryRequest) */ {
- public:
- inline NewPrimaryRequest() : NewPrimaryRequest(nullptr) {}
- virtual ~NewPrimaryRequest();
- explicit constexpr NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- NewPrimaryRequest(const NewPrimaryRequest& from);
- NewPrimaryRequest(NewPrimaryRequest&& from) noexcept
- : NewPrimaryRequest() {
- *this = ::std::move(from);
- }
-
- inline NewPrimaryRequest& operator=(const NewPrimaryRequest& from) {
- CopyFrom(from);
- return *this;
- }
- inline NewPrimaryRequest& operator=(NewPrimaryRequest&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const NewPrimaryRequest& default_instance() {
- return *internal_default_instance();
- }
- static inline const NewPrimaryRequest* internal_default_instance() {
- return reinterpret_cast<const NewPrimaryRequest*>(
- &_NewPrimaryRequest_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 17;
-
- friend void swap(NewPrimaryRequest& a, NewPrimaryRequest& b) {
- a.Swap(&b);
- }
- inline void Swap(NewPrimaryRequest* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(NewPrimaryRequest* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline NewPrimaryRequest* New() const final {
- return CreateMaybeMessage<NewPrimaryRequest>(nullptr);
- }
-
- NewPrimaryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<NewPrimaryRequest>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const NewPrimaryRequest& from);
- void MergeFrom(const NewPrimaryRequest& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(NewPrimaryRequest* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.NewPrimaryRequest";
- }
- protected:
- explicit NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kUserIdFieldNumber = 1,
- kDeviceTokenFieldNumber = 2,
- };
- // string userId = 1;
- void clear_userid();
- const std::string& userid() const;
- void set_userid(const std::string& value);
- void set_userid(std::string&& value);
- void set_userid(const char* value);
- void set_userid(const char* value, size_t size);
- std::string* mutable_userid();
- std::string* release_userid();
- void set_allocated_userid(std::string* userid);
- private:
- const std::string& _internal_userid() const;
- void _internal_set_userid(const std::string& value);
- std::string* _internal_mutable_userid();
- public:
-
- // string deviceToken = 2;
- void clear_devicetoken();
- const std::string& devicetoken() const;
- void set_devicetoken(const std::string& value);
- void set_devicetoken(std::string&& value);
- void set_devicetoken(const char* value);
- void set_devicetoken(const char* value, size_t size);
- std::string* mutable_devicetoken();
- std::string* release_devicetoken();
- void set_allocated_devicetoken(std::string* devicetoken);
- private:
- const std::string& _internal_devicetoken() const;
- void _internal_set_devicetoken(const std::string& value);
- std::string* _internal_mutable_devicetoken();
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.NewPrimaryRequest)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class NewPrimaryResponse PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewPrimaryResponse) */ {
- public:
- inline NewPrimaryResponse() : NewPrimaryResponse(nullptr) {}
- virtual ~NewPrimaryResponse();
- explicit constexpr NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- NewPrimaryResponse(const NewPrimaryResponse& from);
- NewPrimaryResponse(NewPrimaryResponse&& from) noexcept
- : NewPrimaryResponse() {
- *this = ::std::move(from);
- }
-
- inline NewPrimaryResponse& operator=(const NewPrimaryResponse& from) {
- CopyFrom(from);
- return *this;
- }
- inline NewPrimaryResponse& operator=(NewPrimaryResponse&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const NewPrimaryResponse& default_instance() {
- return *internal_default_instance();
- }
- static inline const NewPrimaryResponse* internal_default_instance() {
- return reinterpret_cast<const NewPrimaryResponse*>(
- &_NewPrimaryResponse_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 18;
-
- friend void swap(NewPrimaryResponse& a, NewPrimaryResponse& b) {
- a.Swap(&b);
- }
- inline void Swap(NewPrimaryResponse* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(NewPrimaryResponse* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline NewPrimaryResponse* New() const final {
- return CreateMaybeMessage<NewPrimaryResponse>(nullptr);
- }
-
- NewPrimaryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<NewPrimaryResponse>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const NewPrimaryResponse& from);
- void MergeFrom(const NewPrimaryResponse& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(NewPrimaryResponse* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.NewPrimaryResponse";
- }
- protected:
- explicit NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kSuccessFieldNumber = 1,
- };
- // bool success = 1;
- void clear_success();
- bool success() const;
- void set_success(bool value);
- private:
- bool _internal_success() const;
- void _internal_set_success(bool value);
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.NewPrimaryResponse)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- bool success_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// -------------------------------------------------------------------
-
-class PongRequest PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.PongRequest) */ {
- public:
- inline PongRequest() : PongRequest(nullptr) {}
- virtual ~PongRequest();
- explicit constexpr PongRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- PongRequest(const PongRequest& from);
- PongRequest(PongRequest&& from) noexcept
- : PongRequest() {
- *this = ::std::move(from);
- }
-
- inline PongRequest& operator=(const PongRequest& from) {
- CopyFrom(from);
- return *this;
- }
- inline PongRequest& operator=(PongRequest&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const PongRequest& default_instance() {
- return *internal_default_instance();
- }
- static inline const PongRequest* internal_default_instance() {
- return reinterpret_cast<const PongRequest*>(
- &_PongRequest_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 19;
-
- friend void swap(PongRequest& a, PongRequest& b) {
- a.Swap(&b);
- }
- inline void Swap(PongRequest* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(PongRequest* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- inline PongRequest* New() const final {
- return CreateMaybeMessage<PongRequest>(nullptr);
- }
-
- PongRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<PongRequest>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const PongRequest& from);
- void MergeFrom(const PongRequest& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
-
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(PongRequest* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "tunnelbroker.PongRequest";
- }
- protected:
- explicit PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages);
- }
-
- public:
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int {
- kUserIdFieldNumber = 1,
- kDeviceTokenFieldNumber = 2,
- };
- // string userId = 1;
- void clear_userid();
- const std::string& userid() const;
- void set_userid(const std::string& value);
- void set_userid(std::string&& value);
- void set_userid(const char* value);
- void set_userid(const char* value, size_t size);
- std::string* mutable_userid();
- std::string* release_userid();
- void set_allocated_userid(std::string* userid);
- private:
- const std::string& _internal_userid() const;
- void _internal_set_userid(const std::string& value);
- std::string* _internal_mutable_userid();
- public:
-
- // string deviceToken = 2;
- void clear_devicetoken();
- const std::string& devicetoken() const;
- void set_devicetoken(const std::string& value);
- void set_devicetoken(std::string&& value);
- void set_devicetoken(const char* value);
- void set_devicetoken(const char* value, size_t size);
- std::string* mutable_devicetoken();
- std::string* release_devicetoken();
- void set_allocated_devicetoken(std::string* devicetoken);
- private:
- const std::string& _internal_devicetoken() const;
- void _internal_set_devicetoken(const std::string& value);
- std::string* _internal_mutable_devicetoken();
- public:
-
- // @@protoc_insertion_point(class_scope:tunnelbroker.PongRequest)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_tunnelbroker_2eproto;
-};
-// ===================================================================
-
-
-// ===================================================================
-
-#ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
-#endif // __GNUC__
-// SessionSignatureRequest
-
-// string deviceID = 1;
-inline void SessionSignatureRequest::clear_deviceid() {
- deviceid_.ClearToEmpty();
-}
-inline const std::string& SessionSignatureRequest::deviceid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureRequest.deviceID)
- return _internal_deviceid();
-}
-inline void SessionSignatureRequest::set_deviceid(const std::string& value) {
- _internal_set_deviceid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureRequest.deviceID)
-}
-inline std::string* SessionSignatureRequest::mutable_deviceid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureRequest.deviceID)
- return _internal_mutable_deviceid();
-}
-inline const std::string& SessionSignatureRequest::_internal_deviceid() const {
- return deviceid_.Get();
-}
-inline void SessionSignatureRequest::_internal_set_deviceid(const std::string& value) {
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void SessionSignatureRequest::set_deviceid(std::string&& value) {
-
- deviceid_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureRequest.deviceID)
-}
-inline void SessionSignatureRequest::set_deviceid(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureRequest.deviceID)
-}
-inline void SessionSignatureRequest::set_deviceid(const char* value,
- size_t size) {
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureRequest.deviceID)
-}
-inline std::string* SessionSignatureRequest::_internal_mutable_deviceid() {
-
- return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* SessionSignatureRequest::release_deviceid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureRequest.deviceID)
- return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void SessionSignatureRequest::set_allocated_deviceid(std::string* deviceid) {
- if (deviceid != nullptr) {
-
- } else {
-
- }
- deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureRequest.deviceID)
-}
-
-// -------------------------------------------------------------------
-
-// SessionSignatureResponse
-
-// string toSign = 1;
-inline void SessionSignatureResponse::clear_tosign() {
- tosign_.ClearToEmpty();
-}
-inline const std::string& SessionSignatureResponse::tosign() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureResponse.toSign)
- return _internal_tosign();
-}
-inline void SessionSignatureResponse::set_tosign(const std::string& value) {
- _internal_set_tosign(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureResponse.toSign)
-}
-inline std::string* SessionSignatureResponse::mutable_tosign() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureResponse.toSign)
- return _internal_mutable_tosign();
-}
-inline const std::string& SessionSignatureResponse::_internal_tosign() const {
- return tosign_.Get();
-}
-inline void SessionSignatureResponse::_internal_set_tosign(const std::string& value) {
-
- tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void SessionSignatureResponse::set_tosign(std::string&& value) {
-
- tosign_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureResponse.toSign)
-}
-inline void SessionSignatureResponse::set_tosign(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureResponse.toSign)
-}
-inline void SessionSignatureResponse::set_tosign(const char* value,
- size_t size) {
-
- tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureResponse.toSign)
-}
-inline std::string* SessionSignatureResponse::_internal_mutable_tosign() {
-
- return tosign_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* SessionSignatureResponse::release_tosign() {
- // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureResponse.toSign)
- return tosign_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void SessionSignatureResponse::set_allocated_tosign(std::string* tosign) {
- if (tosign != nullptr) {
-
- } else {
-
- }
- tosign_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tosign,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureResponse.toSign)
-}
-
-// -------------------------------------------------------------------
-
-// NewSessionRequest
-
-// string deviceID = 1;
-inline void NewSessionRequest::clear_deviceid() {
- deviceid_.ClearToEmpty();
-}
-inline const std::string& NewSessionRequest::deviceid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceID)
- return _internal_deviceid();
-}
-inline void NewSessionRequest::set_deviceid(const std::string& value) {
- _internal_set_deviceid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceID)
-}
-inline std::string* NewSessionRequest::mutable_deviceid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceID)
- return _internal_mutable_deviceid();
-}
-inline const std::string& NewSessionRequest::_internal_deviceid() const {
- return deviceid_.Get();
-}
-inline void NewSessionRequest::_internal_set_deviceid(const std::string& value) {
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_deviceid(std::string&& value) {
-
- deviceid_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceID)
-}
-inline void NewSessionRequest::set_deviceid(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceID)
-}
-inline void NewSessionRequest::set_deviceid(const char* value,
- size_t size) {
-
- deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceID)
-}
-inline std::string* NewSessionRequest::_internal_mutable_deviceid() {
-
- return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_deviceid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceID)
- return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_deviceid(std::string* deviceid) {
- if (deviceid != nullptr) {
-
- } else {
-
- }
- deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceID)
-}
-
-// string publicKey = 2;
-inline void NewSessionRequest::clear_publickey() {
- publickey_.ClearToEmpty();
-}
-inline const std::string& NewSessionRequest::publickey() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.publicKey)
- return _internal_publickey();
-}
-inline void NewSessionRequest::set_publickey(const std::string& value) {
- _internal_set_publickey(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.publicKey)
-}
-inline std::string* NewSessionRequest::mutable_publickey() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.publicKey)
- return _internal_mutable_publickey();
-}
-inline const std::string& NewSessionRequest::_internal_publickey() const {
- return publickey_.Get();
-}
-inline void NewSessionRequest::_internal_set_publickey(const std::string& value) {
-
- publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_publickey(std::string&& value) {
-
- publickey_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.publicKey)
-}
-inline void NewSessionRequest::set_publickey(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.publicKey)
-}
-inline void NewSessionRequest::set_publickey(const char* value,
- size_t size) {
-
- publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.publicKey)
-}
-inline std::string* NewSessionRequest::_internal_mutable_publickey() {
-
- return publickey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_publickey() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.publicKey)
- return publickey_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_publickey(std::string* publickey) {
- if (publickey != nullptr) {
-
- } else {
-
- }
- publickey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), publickey,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.publicKey)
-}
-
-// string signature = 3;
-inline void NewSessionRequest::clear_signature() {
- signature_.ClearToEmpty();
-}
-inline const std::string& NewSessionRequest::signature() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.signature)
- return _internal_signature();
-}
-inline void NewSessionRequest::set_signature(const std::string& value) {
- _internal_set_signature(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.signature)
-}
-inline std::string* NewSessionRequest::mutable_signature() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.signature)
- return _internal_mutable_signature();
-}
-inline const std::string& NewSessionRequest::_internal_signature() const {
- return signature_.Get();
-}
-inline void NewSessionRequest::_internal_set_signature(const std::string& value) {
-
- signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_signature(std::string&& value) {
-
- signature_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.signature)
-}
-inline void NewSessionRequest::set_signature(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.signature)
-}
-inline void NewSessionRequest::set_signature(const char* value,
- size_t size) {
-
- signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.signature)
-}
-inline std::string* NewSessionRequest::_internal_mutable_signature() {
-
- return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_signature() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.signature)
- return signature_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_signature(std::string* signature) {
- if (signature != nullptr) {
-
- } else {
-
- }
- signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.signature)
-}
-
-// string notifyToken = 4;
-inline bool NewSessionRequest::_internal_has_notifytoken() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
-}
-inline bool NewSessionRequest::has_notifytoken() const {
- return _internal_has_notifytoken();
-}
-inline void NewSessionRequest::clear_notifytoken() {
- notifytoken_.ClearToEmpty();
- _has_bits_[0] &= ~0x00000001u;
-}
-inline const std::string& NewSessionRequest::notifytoken() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.notifyToken)
- return _internal_notifytoken();
-}
-inline void NewSessionRequest::set_notifytoken(const std::string& value) {
- _internal_set_notifytoken(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.notifyToken)
-}
-inline std::string* NewSessionRequest::mutable_notifytoken() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.notifyToken)
- return _internal_mutable_notifytoken();
-}
-inline const std::string& NewSessionRequest::_internal_notifytoken() const {
- return notifytoken_.Get();
-}
-inline void NewSessionRequest::_internal_set_notifytoken(const std::string& value) {
- _has_bits_[0] |= 0x00000001u;
- notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_notifytoken(std::string&& value) {
- _has_bits_[0] |= 0x00000001u;
- notifytoken_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.notifyToken)
-}
-inline void NewSessionRequest::set_notifytoken(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- _has_bits_[0] |= 0x00000001u;
- notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.notifyToken)
-}
-inline void NewSessionRequest::set_notifytoken(const char* value,
- size_t size) {
- _has_bits_[0] |= 0x00000001u;
- notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.notifyToken)
-}
-inline std::string* NewSessionRequest::_internal_mutable_notifytoken() {
- _has_bits_[0] |= 0x00000001u;
- return notifytoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_notifytoken() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.notifyToken)
- if (!_internal_has_notifytoken()) {
- return nullptr;
- }
- _has_bits_[0] &= ~0x00000001u;
- return notifytoken_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_notifytoken(std::string* notifytoken) {
- if (notifytoken != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- notifytoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), notifytoken,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.notifyToken)
-}
-
-// .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5;
-inline void NewSessionRequest::clear_devicetype() {
- devicetype_ = 0;
-}
-inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::_internal_devicetype() const {
- return static_cast< ::tunnelbroker::NewSessionRequest_DeviceTypes >(devicetype_);
-}
-inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::devicetype() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceType)
- return _internal_devicetype();
-}
-inline void NewSessionRequest::_internal_set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) {
-
- devicetype_ = value;
-}
-inline void NewSessionRequest::set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) {
- _internal_set_devicetype(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceType)
-}
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
-// string deviceAppVersion = 6;
-inline void NewSessionRequest::clear_deviceappversion() {
- deviceappversion_.ClearToEmpty();
-}
-inline const std::string& NewSessionRequest::deviceappversion() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceAppVersion)
- return _internal_deviceappversion();
-}
-inline void NewSessionRequest::set_deviceappversion(const std::string& value) {
- _internal_set_deviceappversion(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceAppVersion)
-}
-inline std::string* NewSessionRequest::mutable_deviceappversion() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceAppVersion)
- return _internal_mutable_deviceappversion();
-}
-inline const std::string& NewSessionRequest::_internal_deviceappversion() const {
- return deviceappversion_.Get();
-}
-inline void NewSessionRequest::_internal_set_deviceappversion(const std::string& value) {
-
- deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_deviceappversion(std::string&& value) {
-
- deviceappversion_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceAppVersion)
-}
-inline void NewSessionRequest::set_deviceappversion(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceAppVersion)
-}
-inline void NewSessionRequest::set_deviceappversion(const char* value,
- size_t size) {
-
- deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceAppVersion)
-}
-inline std::string* NewSessionRequest::_internal_mutable_deviceappversion() {
-
- return deviceappversion_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_deviceappversion() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceAppVersion)
- return deviceappversion_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_deviceappversion(std::string* deviceappversion) {
- if (deviceappversion != nullptr) {
-
- } else {
-
- }
- deviceappversion_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceappversion,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceAppVersion)
-}
+ friend struct ::TableStruct_tunnelbroker_2eproto;
+};
+// ===================================================================
-// string deviceOS = 7;
-inline void NewSessionRequest::clear_deviceos() {
- deviceos_.ClearToEmpty();
-}
-inline const std::string& NewSessionRequest::deviceos() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceOS)
- return _internal_deviceos();
-}
-inline void NewSessionRequest::set_deviceos(const std::string& value) {
- _internal_set_deviceos(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceOS)
-}
-inline std::string* NewSessionRequest::mutable_deviceos() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceOS)
- return _internal_mutable_deviceos();
-}
-inline const std::string& NewSessionRequest::_internal_deviceos() const {
- return deviceos_.Get();
-}
-inline void NewSessionRequest::_internal_set_deviceos(const std::string& value) {
-
- deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewSessionRequest::set_deviceos(std::string&& value) {
-
- deviceos_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceOS)
-}
-inline void NewSessionRequest::set_deviceos(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceOS)
-}
-inline void NewSessionRequest::set_deviceos(const char* value,
- size_t size) {
-
- deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceOS)
-}
-inline std::string* NewSessionRequest::_internal_mutable_deviceos() {
-
- return deviceos_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewSessionRequest::release_deviceos() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceOS)
- return deviceos_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewSessionRequest::set_allocated_deviceos(std::string* deviceos) {
- if (deviceos != nullptr) {
-
- } else {
-
- }
- deviceos_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceos,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceOS)
-}
-// -------------------------------------------------------------------
+// ===================================================================
-// NewSessionResponse
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// SessionSignatureRequest
-// string sessionID = 1;
-inline void NewSessionResponse::clear_sessionid() {
- sessionid_.ClearToEmpty();
+// string deviceID = 1;
+inline void SessionSignatureRequest::clear_deviceid() {
+ deviceid_.ClearToEmpty();
}
-inline const std::string& NewSessionResponse::sessionid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionResponse.sessionID)
- return _internal_sessionid();
+inline const std::string& SessionSignatureRequest::deviceid() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureRequest.deviceID)
+ return _internal_deviceid();
}
-inline void NewSessionResponse::set_sessionid(const std::string& value) {
- _internal_set_sessionid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionResponse.sessionID)
+inline void SessionSignatureRequest::set_deviceid(const std::string& value) {
+ _internal_set_deviceid(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureRequest.deviceID)
}
-inline std::string* NewSessionResponse::mutable_sessionid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionResponse.sessionID)
- return _internal_mutable_sessionid();
+inline std::string* SessionSignatureRequest::mutable_deviceid() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureRequest.deviceID)
+ return _internal_mutable_deviceid();
}
-inline const std::string& NewSessionResponse::_internal_sessionid() const {
- return sessionid_.Get();
+inline const std::string& SessionSignatureRequest::_internal_deviceid() const {
+ return deviceid_.Get();
}
-inline void NewSessionResponse::_internal_set_sessionid(const std::string& value) {
+inline void SessionSignatureRequest::_internal_set_deviceid(const std::string& value) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void NewSessionResponse::set_sessionid(std::string&& value) {
+inline void SessionSignatureRequest::set_deviceid(std::string&& value) {
- sessionid_.Set(
+ deviceid_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionResponse.sessionID)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureRequest.deviceID)
}
-inline void NewSessionResponse::set_sessionid(const char* value) {
+inline void SessionSignatureRequest::set_deviceid(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionResponse.sessionID)
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureRequest.deviceID)
}
-inline void NewSessionResponse::set_sessionid(const char* value,
+inline void SessionSignatureRequest::set_deviceid(const char* value,
size_t size) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionResponse.sessionID)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureRequest.deviceID)
}
-inline std::string* NewSessionResponse::_internal_mutable_sessionid() {
+inline std::string* SessionSignatureRequest::_internal_mutable_deviceid() {
- return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* NewSessionResponse::release_sessionid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionResponse.sessionID)
- return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* SessionSignatureRequest::release_deviceid() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureRequest.deviceID)
+ return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void NewSessionResponse::set_allocated_sessionid(std::string* sessionid) {
- if (sessionid != nullptr) {
+inline void SessionSignatureRequest::set_allocated_deviceid(std::string* deviceid) {
+ if (deviceid != nullptr) {
} else {
}
- sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid,
+ deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionResponse.sessionID)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureRequest.deviceID)
}
// -------------------------------------------------------------------
-// SendRequest
+// SessionSignatureResponse
-// string sessionID = 1;
-inline void SendRequest::clear_sessionid() {
- sessionid_.ClearToEmpty();
+// string toSign = 1;
+inline void SessionSignatureResponse::clear_tosign() {
+ tosign_.ClearToEmpty();
}
-inline const std::string& SendRequest::sessionid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.sessionID)
- return _internal_sessionid();
+inline const std::string& SessionSignatureResponse::tosign() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureResponse.toSign)
+ return _internal_tosign();
}
-inline void SendRequest::set_sessionid(const std::string& value) {
- _internal_set_sessionid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.sessionID)
+inline void SessionSignatureResponse::set_tosign(const std::string& value) {
+ _internal_set_tosign(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureResponse.toSign)
}
-inline std::string* SendRequest::mutable_sessionid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.sessionID)
- return _internal_mutable_sessionid();
+inline std::string* SessionSignatureResponse::mutable_tosign() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureResponse.toSign)
+ return _internal_mutable_tosign();
}
-inline const std::string& SendRequest::_internal_sessionid() const {
- return sessionid_.Get();
+inline const std::string& SessionSignatureResponse::_internal_tosign() const {
+ return tosign_.Get();
}
-inline void SendRequest::_internal_set_sessionid(const std::string& value) {
+inline void SessionSignatureResponse::_internal_set_tosign(const std::string& value) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void SendRequest::set_sessionid(std::string&& value) {
+inline void SessionSignatureResponse::set_tosign(std::string&& value) {
- sessionid_.Set(
+ tosign_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.sessionID)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureResponse.toSign)
}
-inline void SendRequest::set_sessionid(const char* value) {
+inline void SessionSignatureResponse::set_tosign(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.sessionID)
+ tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureResponse.toSign)
}
-inline void SendRequest::set_sessionid(const char* value,
+inline void SessionSignatureResponse::set_tosign(const char* value,
size_t size) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.sessionID)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureResponse.toSign)
}
-inline std::string* SendRequest::_internal_mutable_sessionid() {
+inline std::string* SessionSignatureResponse::_internal_mutable_tosign() {
- return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return tosign_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* SendRequest::release_sessionid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.sessionID)
- return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* SessionSignatureResponse::release_tosign() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureResponse.toSign)
+ return tosign_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void SendRequest::set_allocated_sessionid(std::string* sessionid) {
- if (sessionid != nullptr) {
+inline void SessionSignatureResponse::set_allocated_tosign(std::string* tosign) {
+ if (tosign != nullptr) {
} else {
}
- sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid,
+ tosign_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tosign,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.sessionID)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureResponse.toSign)
}
-// string toDeviceID = 2;
-inline void SendRequest::clear_todeviceid() {
- todeviceid_.ClearToEmpty();
+// -------------------------------------------------------------------
+
+// NewSessionRequest
+
+// string deviceID = 1;
+inline void NewSessionRequest::clear_deviceid() {
+ deviceid_.ClearToEmpty();
}
-inline const std::string& SendRequest::todeviceid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.toDeviceID)
- return _internal_todeviceid();
+inline const std::string& NewSessionRequest::deviceid() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceID)
+ return _internal_deviceid();
}
-inline void SendRequest::set_todeviceid(const std::string& value) {
- _internal_set_todeviceid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.toDeviceID)
+inline void NewSessionRequest::set_deviceid(const std::string& value) {
+ _internal_set_deviceid(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceID)
}
-inline std::string* SendRequest::mutable_todeviceid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.toDeviceID)
- return _internal_mutable_todeviceid();
+inline std::string* NewSessionRequest::mutable_deviceid() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceID)
+ return _internal_mutable_deviceid();
}
-inline const std::string& SendRequest::_internal_todeviceid() const {
- return todeviceid_.Get();
+inline const std::string& NewSessionRequest::_internal_deviceid() const {
+ return deviceid_.Get();
}
-inline void SendRequest::_internal_set_todeviceid(const std::string& value) {
+inline void NewSessionRequest::_internal_set_deviceid(const std::string& value) {
- todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void SendRequest::set_todeviceid(std::string&& value) {
+inline void NewSessionRequest::set_deviceid(std::string&& value) {
- todeviceid_.Set(
+ deviceid_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.toDeviceID)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceID)
}
-inline void SendRequest::set_todeviceid(const char* value) {
+inline void NewSessionRequest::set_deviceid(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.toDeviceID)
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceID)
}
-inline void SendRequest::set_todeviceid(const char* value,
+inline void NewSessionRequest::set_deviceid(const char* value,
size_t size) {
- todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.toDeviceID)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceID)
}
-inline std::string* SendRequest::_internal_mutable_todeviceid() {
+inline std::string* NewSessionRequest::_internal_mutable_deviceid() {
- return todeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* SendRequest::release_todeviceid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.toDeviceID)
- return todeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* NewSessionRequest::release_deviceid() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceID)
+ return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void SendRequest::set_allocated_todeviceid(std::string* todeviceid) {
- if (todeviceid != nullptr) {
+inline void NewSessionRequest::set_allocated_deviceid(std::string* deviceid) {
+ if (deviceid != nullptr) {
} else {
}
- todeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), todeviceid,
+ deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.toDeviceID)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceID)
}
-// bytes payload = 3;
-inline void SendRequest::clear_payload() {
- payload_.ClearToEmpty();
+// string publicKey = 2;
+inline void NewSessionRequest::clear_publickey() {
+ publickey_.ClearToEmpty();
}
-inline const std::string& SendRequest::payload() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.payload)
- return _internal_payload();
+inline const std::string& NewSessionRequest::publickey() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.publicKey)
+ return _internal_publickey();
}
-inline void SendRequest::set_payload(const std::string& value) {
- _internal_set_payload(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.payload)
+inline void NewSessionRequest::set_publickey(const std::string& value) {
+ _internal_set_publickey(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.publicKey)
}
-inline std::string* SendRequest::mutable_payload() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.payload)
- return _internal_mutable_payload();
+inline std::string* NewSessionRequest::mutable_publickey() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.publicKey)
+ return _internal_mutable_publickey();
}
-inline const std::string& SendRequest::_internal_payload() const {
- return payload_.Get();
+inline const std::string& NewSessionRequest::_internal_publickey() const {
+ return publickey_.Get();
}
-inline void SendRequest::_internal_set_payload(const std::string& value) {
+inline void NewSessionRequest::_internal_set_publickey(const std::string& value) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void SendRequest::set_payload(std::string&& value) {
+inline void NewSessionRequest::set_publickey(std::string&& value) {
- payload_.Set(
+ publickey_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.payload)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.publicKey)
}
-inline void SendRequest::set_payload(const char* value) {
+inline void NewSessionRequest::set_publickey(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.payload)
+ publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.publicKey)
}
-inline void SendRequest::set_payload(const void* value,
+inline void NewSessionRequest::set_publickey(const char* value,
size_t size) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.payload)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.publicKey)
}
-inline std::string* SendRequest::_internal_mutable_payload() {
+inline std::string* NewSessionRequest::_internal_mutable_publickey() {
- return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return publickey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* SendRequest::release_payload() {
- // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.payload)
- return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* NewSessionRequest::release_publickey() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.publicKey)
+ return publickey_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void SendRequest::set_allocated_payload(std::string* payload) {
- if (payload != nullptr) {
+inline void NewSessionRequest::set_allocated_publickey(std::string* publickey) {
+ if (publickey != nullptr) {
} else {
}
- payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload,
+ publickey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), publickey,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.payload)
-}
-
-// repeated string blobHashes = 4;
-inline int SendRequest::_internal_blobhashes_size() const {
- return blobhashes_.size();
-}
-inline int SendRequest::blobhashes_size() const {
- return _internal_blobhashes_size();
-}
-inline void SendRequest::clear_blobhashes() {
- blobhashes_.Clear();
-}
-inline std::string* SendRequest::add_blobhashes() {
- // @@protoc_insertion_point(field_add_mutable:tunnelbroker.SendRequest.blobHashes)
- return _internal_add_blobhashes();
-}
-inline const std::string& SendRequest::_internal_blobhashes(int index) const {
- return blobhashes_.Get(index);
-}
-inline const std::string& SendRequest::blobhashes(int index) const {
- // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.blobHashes)
- return _internal_blobhashes(index);
-}
-inline std::string* SendRequest::mutable_blobhashes(int index) {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.blobHashes)
- return blobhashes_.Mutable(index);
-}
-inline void SendRequest::set_blobhashes(int index, const std::string& value) {
- // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.blobHashes)
- blobhashes_.Mutable(index)->assign(value);
-}
-inline void SendRequest::set_blobhashes(int index, std::string&& value) {
- // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.blobHashes)
- blobhashes_.Mutable(index)->assign(std::move(value));
-}
-inline void SendRequest::set_blobhashes(int index, const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- blobhashes_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.blobHashes)
-}
-inline void SendRequest::set_blobhashes(int index, const char* value, size_t size) {
- blobhashes_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.blobHashes)
-}
-inline std::string* SendRequest::_internal_add_blobhashes() {
- return blobhashes_.Add();
-}
-inline void SendRequest::add_blobhashes(const std::string& value) {
- blobhashes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:tunnelbroker.SendRequest.blobHashes)
-}
-inline void SendRequest::add_blobhashes(std::string&& value) {
- blobhashes_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:tunnelbroker.SendRequest.blobHashes)
-}
-inline void SendRequest::add_blobhashes(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- blobhashes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:tunnelbroker.SendRequest.blobHashes)
-}
-inline void SendRequest::add_blobhashes(const char* value, size_t size) {
- blobhashes_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:tunnelbroker.SendRequest.blobHashes)
-}
-inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
-SendRequest::blobhashes() const {
- // @@protoc_insertion_point(field_list:tunnelbroker.SendRequest.blobHashes)
- return blobhashes_;
-}
-inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
-SendRequest::mutable_blobhashes() {
- // @@protoc_insertion_point(field_mutable_list:tunnelbroker.SendRequest.blobHashes)
- return &blobhashes_;
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.publicKey)
}
-// -------------------------------------------------------------------
-
-// GetRequest
-
-// string sessionID = 1;
-inline void GetRequest::clear_sessionid() {
- sessionid_.ClearToEmpty();
+// string signature = 3;
+inline void NewSessionRequest::clear_signature() {
+ signature_.ClearToEmpty();
}
-inline const std::string& GetRequest::sessionid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetRequest.sessionID)
- return _internal_sessionid();
+inline const std::string& NewSessionRequest::signature() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.signature)
+ return _internal_signature();
}
-inline void GetRequest::set_sessionid(const std::string& value) {
- _internal_set_sessionid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.GetRequest.sessionID)
+inline void NewSessionRequest::set_signature(const std::string& value) {
+ _internal_set_signature(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.signature)
}
-inline std::string* GetRequest::mutable_sessionid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetRequest.sessionID)
- return _internal_mutable_sessionid();
+inline std::string* NewSessionRequest::mutable_signature() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.signature)
+ return _internal_mutable_signature();
}
-inline const std::string& GetRequest::_internal_sessionid() const {
- return sessionid_.Get();
+inline const std::string& NewSessionRequest::_internal_signature() const {
+ return signature_.Get();
}
-inline void GetRequest::_internal_set_sessionid(const std::string& value) {
+inline void NewSessionRequest::_internal_set_signature(const std::string& value) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void GetRequest::set_sessionid(std::string&& value) {
+inline void NewSessionRequest::set_signature(std::string&& value) {
- sessionid_.Set(
+ signature_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetRequest.sessionID)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.signature)
}
-inline void GetRequest::set_sessionid(const char* value) {
+inline void NewSessionRequest::set_signature(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.GetRequest.sessionID)
+ signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.signature)
}
-inline void GetRequest::set_sessionid(const char* value,
+inline void NewSessionRequest::set_signature(const char* value,
size_t size) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetRequest.sessionID)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.signature)
}
-inline std::string* GetRequest::_internal_mutable_sessionid() {
+inline std::string* NewSessionRequest::_internal_mutable_signature() {
- return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* GetRequest::release_sessionid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetRequest.sessionID)
- return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* NewSessionRequest::release_signature() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.signature)
+ return signature_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void GetRequest::set_allocated_sessionid(std::string* sessionid) {
- if (sessionid != nullptr) {
+inline void NewSessionRequest::set_allocated_signature(std::string* signature) {
+ if (signature != nullptr) {
} else {
}
- sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid,
+ signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetRequest.sessionID)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.signature)
}
-// string newNotifyToken = 2;
-inline bool GetRequest::_internal_has_newnotifytoken() const {
+// string notifyToken = 4;
+inline bool NewSessionRequest::_internal_has_notifytoken() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
-inline bool GetRequest::has_newnotifytoken() const {
- return _internal_has_newnotifytoken();
+inline bool NewSessionRequest::has_notifytoken() const {
+ return _internal_has_notifytoken();
}
-inline void GetRequest::clear_newnotifytoken() {
- newnotifytoken_.ClearToEmpty();
+inline void NewSessionRequest::clear_notifytoken() {
+ notifytoken_.ClearToEmpty();
_has_bits_[0] &= ~0x00000001u;
}
-inline const std::string& GetRequest::newnotifytoken() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetRequest.newNotifyToken)
- return _internal_newnotifytoken();
+inline const std::string& NewSessionRequest::notifytoken() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.notifyToken)
+ return _internal_notifytoken();
}
-inline void GetRequest::set_newnotifytoken(const std::string& value) {
- _internal_set_newnotifytoken(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.GetRequest.newNotifyToken)
+inline void NewSessionRequest::set_notifytoken(const std::string& value) {
+ _internal_set_notifytoken(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.notifyToken)
}
-inline std::string* GetRequest::mutable_newnotifytoken() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetRequest.newNotifyToken)
- return _internal_mutable_newnotifytoken();
+inline std::string* NewSessionRequest::mutable_notifytoken() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.notifyToken)
+ return _internal_mutable_notifytoken();
}
-inline const std::string& GetRequest::_internal_newnotifytoken() const {
- return newnotifytoken_.Get();
+inline const std::string& NewSessionRequest::_internal_notifytoken() const {
+ return notifytoken_.Get();
}
-inline void GetRequest::_internal_set_newnotifytoken(const std::string& value) {
+inline void NewSessionRequest::_internal_set_notifytoken(const std::string& value) {
_has_bits_[0] |= 0x00000001u;
- newnotifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void GetRequest::set_newnotifytoken(std::string&& value) {
+inline void NewSessionRequest::set_notifytoken(std::string&& value) {
_has_bits_[0] |= 0x00000001u;
- newnotifytoken_.Set(
+ notifytoken_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetRequest.newNotifyToken)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.notifyToken)
}
-inline void GetRequest::set_newnotifytoken(const char* value) {
+inline void NewSessionRequest::set_notifytoken(const char* value) {
GOOGLE_DCHECK(value != nullptr);
_has_bits_[0] |= 0x00000001u;
- newnotifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.GetRequest.newNotifyToken)
+ notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.notifyToken)
}
-inline void GetRequest::set_newnotifytoken(const char* value,
+inline void NewSessionRequest::set_notifytoken(const char* value,
size_t size) {
_has_bits_[0] |= 0x00000001u;
- newnotifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetRequest.newNotifyToken)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.notifyToken)
}
-inline std::string* GetRequest::_internal_mutable_newnotifytoken() {
+inline std::string* NewSessionRequest::_internal_mutable_notifytoken() {
_has_bits_[0] |= 0x00000001u;
- return newnotifytoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return notifytoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* GetRequest::release_newnotifytoken() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetRequest.newNotifyToken)
- if (!_internal_has_newnotifytoken()) {
+inline std::string* NewSessionRequest::release_notifytoken() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.notifyToken)
+ if (!_internal_has_notifytoken()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000001u;
- return newnotifytoken_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ return notifytoken_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void GetRequest::set_allocated_newnotifytoken(std::string* newnotifytoken) {
- if (newnotifytoken != nullptr) {
+inline void NewSessionRequest::set_allocated_notifytoken(std::string* notifytoken) {
+ if (notifytoken != nullptr) {
_has_bits_[0] |= 0x00000001u;
} else {
_has_bits_[0] &= ~0x00000001u;
}
- newnotifytoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), newnotifytoken,
+ notifytoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), notifytoken,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetRequest.newNotifyToken)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.notifyToken)
}
-// -------------------------------------------------------------------
-
-// GetResponseMessage
+// .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5;
+inline void NewSessionRequest::clear_devicetype() {
+ devicetype_ = 0;
+}
+inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::_internal_devicetype() const {
+ return static_cast< ::tunnelbroker::NewSessionRequest_DeviceTypes >(devicetype_);
+}
+inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::devicetype() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceType)
+ return _internal_devicetype();
+}
+inline void NewSessionRequest::_internal_set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) {
+
+ devicetype_ = value;
+}
+inline void NewSessionRequest::set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) {
+ _internal_set_devicetype(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceType)
+}
-// string fromDeviceID = 1;
-inline void GetResponseMessage::clear_fromdeviceid() {
- fromdeviceid_.ClearToEmpty();
+// string deviceAppVersion = 6;
+inline void NewSessionRequest::clear_deviceappversion() {
+ deviceappversion_.ClearToEmpty();
}
-inline const std::string& GetResponseMessage::fromdeviceid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponseMessage.fromDeviceID)
- return _internal_fromdeviceid();
+inline const std::string& NewSessionRequest::deviceappversion() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceAppVersion)
+ return _internal_deviceappversion();
}
-inline void GetResponseMessage::set_fromdeviceid(const std::string& value) {
- _internal_set_fromdeviceid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.GetResponseMessage.fromDeviceID)
+inline void NewSessionRequest::set_deviceappversion(const std::string& value) {
+ _internal_set_deviceappversion(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceAppVersion)
}
-inline std::string* GetResponseMessage::mutable_fromdeviceid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponseMessage.fromDeviceID)
- return _internal_mutable_fromdeviceid();
+inline std::string* NewSessionRequest::mutable_deviceappversion() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceAppVersion)
+ return _internal_mutable_deviceappversion();
}
-inline const std::string& GetResponseMessage::_internal_fromdeviceid() const {
- return fromdeviceid_.Get();
+inline const std::string& NewSessionRequest::_internal_deviceappversion() const {
+ return deviceappversion_.Get();
}
-inline void GetResponseMessage::_internal_set_fromdeviceid(const std::string& value) {
+inline void NewSessionRequest::_internal_set_deviceappversion(const std::string& value) {
- fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void GetResponseMessage::set_fromdeviceid(std::string&& value) {
+inline void NewSessionRequest::set_deviceappversion(std::string&& value) {
- fromdeviceid_.Set(
+ deviceappversion_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetResponseMessage.fromDeviceID)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceAppVersion)
}
-inline void GetResponseMessage::set_fromdeviceid(const char* value) {
+inline void NewSessionRequest::set_deviceappversion(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponseMessage.fromDeviceID)
+ deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceAppVersion)
}
-inline void GetResponseMessage::set_fromdeviceid(const char* value,
+inline void NewSessionRequest::set_deviceappversion(const char* value,
size_t size) {
- fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponseMessage.fromDeviceID)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceAppVersion)
}
-inline std::string* GetResponseMessage::_internal_mutable_fromdeviceid() {
+inline std::string* NewSessionRequest::_internal_mutable_deviceappversion() {
- return fromdeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return deviceappversion_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* GetResponseMessage::release_fromdeviceid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetResponseMessage.fromDeviceID)
- return fromdeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* NewSessionRequest::release_deviceappversion() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceAppVersion)
+ return deviceappversion_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void GetResponseMessage::set_allocated_fromdeviceid(std::string* fromdeviceid) {
- if (fromdeviceid != nullptr) {
+inline void NewSessionRequest::set_allocated_deviceappversion(std::string* deviceappversion) {
+ if (deviceappversion != nullptr) {
} else {
}
- fromdeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fromdeviceid,
+ deviceappversion_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceappversion,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponseMessage.fromDeviceID)
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceAppVersion)
}
-// bytes payload = 2;
-inline void GetResponseMessage::clear_payload() {
- payload_.ClearToEmpty();
+// string deviceOS = 7;
+inline void NewSessionRequest::clear_deviceos() {
+ deviceos_.ClearToEmpty();
}
-inline const std::string& GetResponseMessage::payload() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponseMessage.payload)
- return _internal_payload();
+inline const std::string& NewSessionRequest::deviceos() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceOS)
+ return _internal_deviceos();
}
-inline void GetResponseMessage::set_payload(const std::string& value) {
- _internal_set_payload(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.GetResponseMessage.payload)
+inline void NewSessionRequest::set_deviceos(const std::string& value) {
+ _internal_set_deviceos(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceOS)
}
-inline std::string* GetResponseMessage::mutable_payload() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponseMessage.payload)
- return _internal_mutable_payload();
+inline std::string* NewSessionRequest::mutable_deviceos() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceOS)
+ return _internal_mutable_deviceos();
}
-inline const std::string& GetResponseMessage::_internal_payload() const {
- return payload_.Get();
+inline const std::string& NewSessionRequest::_internal_deviceos() const {
+ return deviceos_.Get();
}
-inline void GetResponseMessage::_internal_set_payload(const std::string& value) {
+inline void NewSessionRequest::_internal_set_deviceos(const std::string& value) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
+ deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline void GetResponseMessage::set_payload(std::string&& value) {
+inline void NewSessionRequest::set_deviceos(std::string&& value) {
- payload_.Set(
+ deviceos_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetResponseMessage.payload)
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceOS)
}
-inline void GetResponseMessage::set_payload(const char* value) {
+inline void NewSessionRequest::set_deviceos(const char* value) {
GOOGLE_DCHECK(value != nullptr);
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponseMessage.payload)
+ deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceOS)
}
-inline void GetResponseMessage::set_payload(const void* value,
+inline void NewSessionRequest::set_deviceos(const char* value,
size_t size) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponseMessage.payload)
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceOS)
}
-inline std::string* GetResponseMessage::_internal_mutable_payload() {
+inline std::string* NewSessionRequest::_internal_mutable_deviceos() {
- return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
+ return deviceos_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline std::string* GetResponseMessage::release_payload() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetResponseMessage.payload)
- return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+inline std::string* NewSessionRequest::release_deviceos() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceOS)
+ return deviceos_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline void GetResponseMessage::set_allocated_payload(std::string* payload) {
- if (payload != nullptr) {
+inline void NewSessionRequest::set_allocated_deviceos(std::string* deviceos) {
+ if (deviceos != nullptr) {
} else {
}
- payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload,
+ deviceos_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceos,
GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponseMessage.payload)
-}
-
-// repeated string blobHashes = 3;
-inline int GetResponseMessage::_internal_blobhashes_size() const {
- return blobhashes_.size();
-}
-inline int GetResponseMessage::blobhashes_size() const {
- return _internal_blobhashes_size();
-}
-inline void GetResponseMessage::clear_blobhashes() {
- blobhashes_.Clear();
-}
-inline std::string* GetResponseMessage::add_blobhashes() {
- // @@protoc_insertion_point(field_add_mutable:tunnelbroker.GetResponseMessage.blobHashes)
- return _internal_add_blobhashes();
-}
-inline const std::string& GetResponseMessage::_internal_blobhashes(int index) const {
- return blobhashes_.Get(index);
-}
-inline const std::string& GetResponseMessage::blobhashes(int index) const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponseMessage.blobHashes)
- return _internal_blobhashes(index);
-}
-inline std::string* GetResponseMessage::mutable_blobhashes(int index) {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponseMessage.blobHashes)
- return blobhashes_.Mutable(index);
-}
-inline void GetResponseMessage::set_blobhashes(int index, const std::string& value) {
- // @@protoc_insertion_point(field_set:tunnelbroker.GetResponseMessage.blobHashes)
- blobhashes_.Mutable(index)->assign(value);
-}
-inline void GetResponseMessage::set_blobhashes(int index, std::string&& value) {
- // @@protoc_insertion_point(field_set:tunnelbroker.GetResponseMessage.blobHashes)
- blobhashes_.Mutable(index)->assign(std::move(value));
-}
-inline void GetResponseMessage::set_blobhashes(int index, const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- blobhashes_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline void GetResponseMessage::set_blobhashes(int index, const char* value, size_t size) {
- blobhashes_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline std::string* GetResponseMessage::_internal_add_blobhashes() {
- return blobhashes_.Add();
-}
-inline void GetResponseMessage::add_blobhashes(const std::string& value) {
- blobhashes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline void GetResponseMessage::add_blobhashes(std::string&& value) {
- blobhashes_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline void GetResponseMessage::add_blobhashes(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- blobhashes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline void GetResponseMessage::add_blobhashes(const char* value, size_t size) {
- blobhashes_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:tunnelbroker.GetResponseMessage.blobHashes)
-}
-inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
-GetResponseMessage::blobhashes() const {
- // @@protoc_insertion_point(field_list:tunnelbroker.GetResponseMessage.blobHashes)
- return blobhashes_;
-}
-inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
-GetResponseMessage::mutable_blobhashes() {
- // @@protoc_insertion_point(field_mutable_list:tunnelbroker.GetResponseMessage.blobHashes)
- return &blobhashes_;
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceOS)
}
// -------------------------------------------------------------------
-// GetResponse
-
-// .tunnelbroker.GetResponseMessage responseMessage = 1;
-inline bool GetResponse::_internal_has_responsemessage() const {
- return data_case() == kResponseMessage;
-}
-inline bool GetResponse::has_responsemessage() const {
- return _internal_has_responsemessage();
-}
-inline void GetResponse::set_has_responsemessage() {
- _oneof_case_[0] = kResponseMessage;
-}
-inline void GetResponse::clear_responsemessage() {
- if (_internal_has_responsemessage()) {
- if (GetArena() == nullptr) {
- delete data_.responsemessage_;
- }
- clear_has_data();
- }
-}
-inline ::tunnelbroker::GetResponseMessage* GetResponse::release_responsemessage() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetResponse.responseMessage)
- if (_internal_has_responsemessage()) {
- clear_has_data();
- ::tunnelbroker::GetResponseMessage* temp = data_.responsemessage_;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- data_.responsemessage_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
-}
-inline const ::tunnelbroker::GetResponseMessage& GetResponse::_internal_responsemessage() const {
- return _internal_has_responsemessage()
- ? *data_.responsemessage_
- : reinterpret_cast< ::tunnelbroker::GetResponseMessage&>(::tunnelbroker::_GetResponseMessage_default_instance_);
-}
-inline const ::tunnelbroker::GetResponseMessage& GetResponse::responsemessage() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.responseMessage)
- return _internal_responsemessage();
-}
-inline ::tunnelbroker::GetResponseMessage* GetResponse::unsafe_arena_release_responsemessage() {
- // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.GetResponse.responseMessage)
- if (_internal_has_responsemessage()) {
- clear_has_data();
- ::tunnelbroker::GetResponseMessage* temp = data_.responsemessage_;
- data_.responsemessage_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
-}
-inline void GetResponse::unsafe_arena_set_allocated_responsemessage(::tunnelbroker::GetResponseMessage* responsemessage) {
- clear_data();
- if (responsemessage) {
- set_has_responsemessage();
- data_.responsemessage_ = responsemessage;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.GetResponse.responseMessage)
-}
-inline ::tunnelbroker::GetResponseMessage* GetResponse::_internal_mutable_responsemessage() {
- if (!_internal_has_responsemessage()) {
- clear_data();
- set_has_responsemessage();
- data_.responsemessage_ = CreateMaybeMessage< ::tunnelbroker::GetResponseMessage >(GetArena());
- }
- return data_.responsemessage_;
-}
-inline ::tunnelbroker::GetResponseMessage* GetResponse::mutable_responsemessage() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.responseMessage)
- return _internal_mutable_responsemessage();
-}
+// NewSessionResponse
-// .google.protobuf.Empty ping = 2;
-inline bool GetResponse::_internal_has_ping() const {
- return data_case() == kPing;
-}
-inline bool GetResponse::has_ping() const {
- return _internal_has_ping();
-}
-inline void GetResponse::set_has_ping() {
- _oneof_case_[0] = kPing;
-}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::release_ping() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetResponse.ping)
- if (_internal_has_ping()) {
- clear_has_data();
- PROTOBUF_NAMESPACE_ID::Empty* temp = data_.ping_;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- data_.ping_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
-}
-inline const PROTOBUF_NAMESPACE_ID::Empty& GetResponse::_internal_ping() const {
- return _internal_has_ping()
- ? *data_.ping_
- : reinterpret_cast< PROTOBUF_NAMESPACE_ID::Empty&>(PROTOBUF_NAMESPACE_ID::_Empty_default_instance_);
-}
-inline const PROTOBUF_NAMESPACE_ID::Empty& GetResponse::ping() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.ping)
- return _internal_ping();
+// string sessionID = 1;
+inline void NewSessionResponse::clear_sessionid() {
+ sessionid_.ClearToEmpty();
}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::unsafe_arena_release_ping() {
- // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.GetResponse.ping)
- if (_internal_has_ping()) {
- clear_has_data();
- PROTOBUF_NAMESPACE_ID::Empty* temp = data_.ping_;
- data_.ping_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
+inline const std::string& NewSessionResponse::sessionid() const {
+ // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionResponse.sessionID)
+ return _internal_sessionid();
}
-inline void GetResponse::unsafe_arena_set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping) {
- clear_data();
- if (ping) {
- set_has_ping();
- data_.ping_ = ping;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.GetResponse.ping)
+inline void NewSessionResponse::set_sessionid(const std::string& value) {
+ _internal_set_sessionid(value);
+ // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionResponse.sessionID)
}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::_internal_mutable_ping() {
- if (!_internal_has_ping()) {
- clear_data();
- set_has_ping();
- data_.ping_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >(GetArena());
- }
- return data_.ping_;
+inline std::string* NewSessionResponse::mutable_sessionid() {
+ // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionResponse.sessionID)
+ return _internal_mutable_sessionid();
}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::mutable_ping() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.ping)
- return _internal_mutable_ping();
+inline const std::string& NewSessionResponse::_internal_sessionid() const {
+ return sessionid_.Get();
}
-
-// .google.protobuf.Empty newNotifyTokenRequired = 3;
-inline bool GetResponse::_internal_has_newnotifytokenrequired() const {
- return data_case() == kNewNotifyTokenRequired;
+inline void NewSessionResponse::_internal_set_sessionid(const std::string& value) {
+
+ sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
-inline bool GetResponse::has_newnotifytokenrequired() const {
- return _internal_has_newnotifytokenrequired();
+inline void NewSessionResponse::set_sessionid(std::string&& value) {
+
+ sessionid_.Set(
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
+ // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionResponse.sessionID)
}
-inline void GetResponse::set_has_newnotifytokenrequired() {
- _oneof_case_[0] = kNewNotifyTokenRequired;
+inline void NewSessionResponse::set_sessionid(const char* value) {
+ GOOGLE_DCHECK(value != nullptr);
+
+ sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
+ // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionResponse.sessionID)
}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::release_newnotifytokenrequired() {
- // @@protoc_insertion_point(field_release:tunnelbroker.GetResponse.newNotifyTokenRequired)
- if (_internal_has_newnotifytokenrequired()) {
- clear_has_data();
- PROTOBUF_NAMESPACE_ID::Empty* temp = data_.newnotifytokenrequired_;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- data_.newnotifytokenrequired_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
+inline void NewSessionResponse::set_sessionid(const char* value,
+ size_t size) {
+
+ sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArena());
+ // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionResponse.sessionID)
}
-inline const PROTOBUF_NAMESPACE_ID::Empty& GetResponse::_internal_newnotifytokenrequired() const {
- return _internal_has_newnotifytokenrequired()
- ? *data_.newnotifytokenrequired_
- : reinterpret_cast< PROTOBUF_NAMESPACE_ID::Empty&>(PROTOBUF_NAMESPACE_ID::_Empty_default_instance_);
+inline std::string* NewSessionResponse::_internal_mutable_sessionid() {
+
+ return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
-inline const PROTOBUF_NAMESPACE_ID::Empty& GetResponse::newnotifytokenrequired() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.newNotifyTokenRequired)
- return _internal_newnotifytokenrequired();
+inline std::string* NewSessionResponse::release_sessionid() {
+ // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionResponse.sessionID)
+ return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::unsafe_arena_release_newnotifytokenrequired() {
- // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.GetResponse.newNotifyTokenRequired)
- if (_internal_has_newnotifytokenrequired()) {
- clear_has_data();
- PROTOBUF_NAMESPACE_ID::Empty* temp = data_.newnotifytokenrequired_;
- data_.newnotifytokenrequired_ = nullptr;
- return temp;
+inline void NewSessionResponse::set_allocated_sessionid(std::string* sessionid) {
+ if (sessionid != nullptr) {
+
} else {
- return nullptr;
- }
-}
-inline void GetResponse::unsafe_arena_set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired) {
- clear_data();
- if (newnotifytokenrequired) {
- set_has_newnotifytokenrequired();
- data_.newnotifytokenrequired_ = newnotifytokenrequired;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.GetResponse.newNotifyTokenRequired)
-}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::_internal_mutable_newnotifytokenrequired() {
- if (!_internal_has_newnotifytokenrequired()) {
- clear_data();
- set_has_newnotifytokenrequired();
- data_.newnotifytokenrequired_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >(GetArena());
+
}
- return data_.newnotifytokenrequired_;
-}
-inline PROTOBUF_NAMESPACE_ID::Empty* GetResponse::mutable_newnotifytokenrequired() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.newNotifyTokenRequired)
- return _internal_mutable_newnotifytokenrequired();
+ sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid,
+ GetArena());
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionResponse.sessionID)
}
-inline bool GetResponse::has_data() const {
- return data_case() != DATA_NOT_SET;
-}
-inline void GetResponse::clear_has_data() {
- _oneof_case_[0] = DATA_NOT_SET;
-}
-inline GetResponse::DataCase GetResponse::data_case() const {
- return GetResponse::DataCase(_oneof_case_[0]);
-}
// -------------------------------------------------------------------
// ProcessedMessages
@@ -6394,432 +3988,6 @@
inline MessageToClient::DataCase MessageToClient::data_case() const {
return MessageToClient::DataCase(_oneof_case_[0]);
}
-// -------------------------------------------------------------------
-
-// CheckRequest
-
-// string userId = 1;
-inline void CheckRequest::clear_userid() {
- userid_.ClearToEmpty();
-}
-inline const std::string& CheckRequest::userid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.CheckRequest.userId)
- return _internal_userid();
-}
-inline void CheckRequest::set_userid(const std::string& value) {
- _internal_set_userid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.CheckRequest.userId)
-}
-inline std::string* CheckRequest::mutable_userid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.CheckRequest.userId)
- return _internal_mutable_userid();
-}
-inline const std::string& CheckRequest::_internal_userid() const {
- return userid_.Get();
-}
-inline void CheckRequest::_internal_set_userid(const std::string& value) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void CheckRequest::set_userid(std::string&& value) {
-
- userid_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.CheckRequest.userId)
-}
-inline void CheckRequest::set_userid(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.CheckRequest.userId)
-}
-inline void CheckRequest::set_userid(const char* value,
- size_t size) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.CheckRequest.userId)
-}
-inline std::string* CheckRequest::_internal_mutable_userid() {
-
- return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* CheckRequest::release_userid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.CheckRequest.userId)
- return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void CheckRequest::set_allocated_userid(std::string* userid) {
- if (userid != nullptr) {
-
- } else {
-
- }
- userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.CheckRequest.userId)
-}
-
-// string deviceToken = 2;
-inline void CheckRequest::clear_devicetoken() {
- devicetoken_.ClearToEmpty();
-}
-inline const std::string& CheckRequest::devicetoken() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.CheckRequest.deviceToken)
- return _internal_devicetoken();
-}
-inline void CheckRequest::set_devicetoken(const std::string& value) {
- _internal_set_devicetoken(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.CheckRequest.deviceToken)
-}
-inline std::string* CheckRequest::mutable_devicetoken() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.CheckRequest.deviceToken)
- return _internal_mutable_devicetoken();
-}
-inline const std::string& CheckRequest::_internal_devicetoken() const {
- return devicetoken_.Get();
-}
-inline void CheckRequest::_internal_set_devicetoken(const std::string& value) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void CheckRequest::set_devicetoken(std::string&& value) {
-
- devicetoken_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.CheckRequest.deviceToken)
-}
-inline void CheckRequest::set_devicetoken(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.CheckRequest.deviceToken)
-}
-inline void CheckRequest::set_devicetoken(const char* value,
- size_t size) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.CheckRequest.deviceToken)
-}
-inline std::string* CheckRequest::_internal_mutable_devicetoken() {
-
- return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* CheckRequest::release_devicetoken() {
- // @@protoc_insertion_point(field_release:tunnelbroker.CheckRequest.deviceToken)
- return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void CheckRequest::set_allocated_devicetoken(std::string* devicetoken) {
- if (devicetoken != nullptr) {
-
- } else {
-
- }
- devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.CheckRequest.deviceToken)
-}
-
-// -------------------------------------------------------------------
-
-// CheckResponse
-
-// .tunnelbroker.CheckResponseType checkResponseType = 1;
-inline void CheckResponse::clear_checkresponsetype() {
- checkresponsetype_ = 0;
-}
-inline ::tunnelbroker::CheckResponseType CheckResponse::_internal_checkresponsetype() const {
- return static_cast< ::tunnelbroker::CheckResponseType >(checkresponsetype_);
-}
-inline ::tunnelbroker::CheckResponseType CheckResponse::checkresponsetype() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.CheckResponse.checkResponseType)
- return _internal_checkresponsetype();
-}
-inline void CheckResponse::_internal_set_checkresponsetype(::tunnelbroker::CheckResponseType value) {
-
- checkresponsetype_ = value;
-}
-inline void CheckResponse::set_checkresponsetype(::tunnelbroker::CheckResponseType value) {
- _internal_set_checkresponsetype(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.CheckResponse.checkResponseType)
-}
-
-// -------------------------------------------------------------------
-
-// NewPrimaryRequest
-
-// string userId = 1;
-inline void NewPrimaryRequest::clear_userid() {
- userid_.ClearToEmpty();
-}
-inline const std::string& NewPrimaryRequest::userid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryRequest.userId)
- return _internal_userid();
-}
-inline void NewPrimaryRequest::set_userid(const std::string& value) {
- _internal_set_userid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewPrimaryRequest.userId)
-}
-inline std::string* NewPrimaryRequest::mutable_userid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewPrimaryRequest.userId)
- return _internal_mutable_userid();
-}
-inline const std::string& NewPrimaryRequest::_internal_userid() const {
- return userid_.Get();
-}
-inline void NewPrimaryRequest::_internal_set_userid(const std::string& value) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewPrimaryRequest::set_userid(std::string&& value) {
-
- userid_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewPrimaryRequest.userId)
-}
-inline void NewPrimaryRequest::set_userid(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewPrimaryRequest.userId)
-}
-inline void NewPrimaryRequest::set_userid(const char* value,
- size_t size) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewPrimaryRequest.userId)
-}
-inline std::string* NewPrimaryRequest::_internal_mutable_userid() {
-
- return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewPrimaryRequest::release_userid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewPrimaryRequest.userId)
- return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewPrimaryRequest::set_allocated_userid(std::string* userid) {
- if (userid != nullptr) {
-
- } else {
-
- }
- userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewPrimaryRequest.userId)
-}
-
-// string deviceToken = 2;
-inline void NewPrimaryRequest::clear_devicetoken() {
- devicetoken_.ClearToEmpty();
-}
-inline const std::string& NewPrimaryRequest::devicetoken() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryRequest.deviceToken)
- return _internal_devicetoken();
-}
-inline void NewPrimaryRequest::set_devicetoken(const std::string& value) {
- _internal_set_devicetoken(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewPrimaryRequest.deviceToken)
-}
-inline std::string* NewPrimaryRequest::mutable_devicetoken() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.NewPrimaryRequest.deviceToken)
- return _internal_mutable_devicetoken();
-}
-inline const std::string& NewPrimaryRequest::_internal_devicetoken() const {
- return devicetoken_.Get();
-}
-inline void NewPrimaryRequest::_internal_set_devicetoken(const std::string& value) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void NewPrimaryRequest::set_devicetoken(std::string&& value) {
-
- devicetoken_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewPrimaryRequest.deviceToken)
-}
-inline void NewPrimaryRequest::set_devicetoken(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.NewPrimaryRequest.deviceToken)
-}
-inline void NewPrimaryRequest::set_devicetoken(const char* value,
- size_t size) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewPrimaryRequest.deviceToken)
-}
-inline std::string* NewPrimaryRequest::_internal_mutable_devicetoken() {
-
- return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* NewPrimaryRequest::release_devicetoken() {
- // @@protoc_insertion_point(field_release:tunnelbroker.NewPrimaryRequest.deviceToken)
- return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void NewPrimaryRequest::set_allocated_devicetoken(std::string* devicetoken) {
- if (devicetoken != nullptr) {
-
- } else {
-
- }
- devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewPrimaryRequest.deviceToken)
-}
-
-// -------------------------------------------------------------------
-
-// NewPrimaryResponse
-
-// bool success = 1;
-inline void NewPrimaryResponse::clear_success() {
- success_ = false;
-}
-inline bool NewPrimaryResponse::_internal_success() const {
- return success_;
-}
-inline bool NewPrimaryResponse::success() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryResponse.success)
- return _internal_success();
-}
-inline void NewPrimaryResponse::_internal_set_success(bool value) {
-
- success_ = value;
-}
-inline void NewPrimaryResponse::set_success(bool value) {
- _internal_set_success(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.NewPrimaryResponse.success)
-}
-
-// -------------------------------------------------------------------
-
-// PongRequest
-
-// string userId = 1;
-inline void PongRequest::clear_userid() {
- userid_.ClearToEmpty();
-}
-inline const std::string& PongRequest::userid() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.PongRequest.userId)
- return _internal_userid();
-}
-inline void PongRequest::set_userid(const std::string& value) {
- _internal_set_userid(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.PongRequest.userId)
-}
-inline std::string* PongRequest::mutable_userid() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.PongRequest.userId)
- return _internal_mutable_userid();
-}
-inline const std::string& PongRequest::_internal_userid() const {
- return userid_.Get();
-}
-inline void PongRequest::_internal_set_userid(const std::string& value) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void PongRequest::set_userid(std::string&& value) {
-
- userid_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.PongRequest.userId)
-}
-inline void PongRequest::set_userid(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.PongRequest.userId)
-}
-inline void PongRequest::set_userid(const char* value,
- size_t size) {
-
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.PongRequest.userId)
-}
-inline std::string* PongRequest::_internal_mutable_userid() {
-
- return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* PongRequest::release_userid() {
- // @@protoc_insertion_point(field_release:tunnelbroker.PongRequest.userId)
- return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void PongRequest::set_allocated_userid(std::string* userid) {
- if (userid != nullptr) {
-
- } else {
-
- }
- userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.PongRequest.userId)
-}
-
-// string deviceToken = 2;
-inline void PongRequest::clear_devicetoken() {
- devicetoken_.ClearToEmpty();
-}
-inline const std::string& PongRequest::devicetoken() const {
- // @@protoc_insertion_point(field_get:tunnelbroker.PongRequest.deviceToken)
- return _internal_devicetoken();
-}
-inline void PongRequest::set_devicetoken(const std::string& value) {
- _internal_set_devicetoken(value);
- // @@protoc_insertion_point(field_set:tunnelbroker.PongRequest.deviceToken)
-}
-inline std::string* PongRequest::mutable_devicetoken() {
- // @@protoc_insertion_point(field_mutable:tunnelbroker.PongRequest.deviceToken)
- return _internal_mutable_devicetoken();
-}
-inline const std::string& PongRequest::_internal_devicetoken() const {
- return devicetoken_.Get();
-}
-inline void PongRequest::_internal_set_devicetoken(const std::string& value) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
-}
-inline void PongRequest::set_devicetoken(std::string&& value) {
-
- devicetoken_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.PongRequest.deviceToken)
-}
-inline void PongRequest::set_devicetoken(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
- // @@protoc_insertion_point(field_set_char:tunnelbroker.PongRequest.deviceToken)
-}
-inline void PongRequest::set_devicetoken(const char* value,
- size_t size) {
-
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:tunnelbroker.PongRequest.deviceToken)
-}
-inline std::string* PongRequest::_internal_mutable_devicetoken() {
-
- return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
-}
-inline std::string* PongRequest::release_devicetoken() {
- // @@protoc_insertion_point(field_release:tunnelbroker.PongRequest.deviceToken)
- return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-inline void PongRequest::set_allocated_devicetoken(std::string* devicetoken) {
- if (devicetoken != nullptr) {
-
- } else {
-
- }
- devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.PongRequest.deviceToken)
-}
-
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
@@ -6843,24 +4011,6 @@
// -------------------------------------------------------------------
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
// @@protoc_insertion_point(namespace_scope)
@@ -6873,11 +4023,6 @@
inline const EnumDescriptor* GetEnumDescriptor< ::tunnelbroker::NewSessionRequest_DeviceTypes>() {
return ::tunnelbroker::NewSessionRequest_DeviceTypes_descriptor();
}
-template <> struct is_proto_enum< ::tunnelbroker::CheckResponseType> : ::std::true_type {};
-template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::tunnelbroker::CheckResponseType>() {
- return ::tunnelbroker::CheckResponseType_descriptor();
-}
PROTOBUF_NAMESPACE_CLOSE
diff --git a/shared/protos/_generated/tunnelbroker.pb.cc b/shared/protos/_generated/tunnelbroker.pb.cc
--- a/shared/protos/_generated/tunnelbroker.pb.cc
+++ b/shared/protos/_generated/tunnelbroker.pb.cc
@@ -72,60 +72,6 @@
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewSessionResponseDefaultTypeInternal _NewSessionResponse_default_instance_;
-constexpr SendRequest::SendRequest(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : blobhashes_()
- , sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , todeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct SendRequestDefaultTypeInternal {
- constexpr SendRequestDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SendRequestDefaultTypeInternal() {}
- union {
- SendRequest _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendRequestDefaultTypeInternal _SendRequest_default_instance_;
-constexpr GetRequest::GetRequest(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , newnotifytoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct GetRequestDefaultTypeInternal {
- constexpr GetRequestDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~GetRequestDefaultTypeInternal() {}
- union {
- GetRequest _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRequestDefaultTypeInternal _GetRequest_default_instance_;
-constexpr GetResponseMessage::GetResponseMessage(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : blobhashes_()
- , fromdeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct GetResponseMessageDefaultTypeInternal {
- constexpr GetResponseMessageDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~GetResponseMessageDefaultTypeInternal() {}
- union {
- GetResponseMessage _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetResponseMessageDefaultTypeInternal _GetResponseMessage_default_instance_;
-constexpr GetResponse::GetResponse(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : _oneof_case_{}{}
-struct GetResponseDefaultTypeInternal {
- constexpr GetResponseDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~GetResponseDefaultTypeInternal() {}
- union {
- GetResponse _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetResponseDefaultTypeInternal _GetResponse_default_instance_;
constexpr ProcessedMessages::ProcessedMessages(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: messageid_(){}
@@ -216,73 +162,9 @@
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
-constexpr CheckRequest::CheckRequest(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct CheckRequestDefaultTypeInternal {
- constexpr CheckRequestDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CheckRequestDefaultTypeInternal() {}
- union {
- CheckRequest _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CheckRequestDefaultTypeInternal _CheckRequest_default_instance_;
-constexpr CheckResponse::CheckResponse(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : checkresponsetype_(0)
-{}
-struct CheckResponseDefaultTypeInternal {
- constexpr CheckResponseDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CheckResponseDefaultTypeInternal() {}
- union {
- CheckResponse _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CheckResponseDefaultTypeInternal _CheckResponse_default_instance_;
-constexpr NewPrimaryRequest::NewPrimaryRequest(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct NewPrimaryRequestDefaultTypeInternal {
- constexpr NewPrimaryRequestDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~NewPrimaryRequestDefaultTypeInternal() {}
- union {
- NewPrimaryRequest _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewPrimaryRequestDefaultTypeInternal _NewPrimaryRequest_default_instance_;
-constexpr NewPrimaryResponse::NewPrimaryResponse(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : success_(false){}
-struct NewPrimaryResponseDefaultTypeInternal {
- constexpr NewPrimaryResponseDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~NewPrimaryResponseDefaultTypeInternal() {}
- union {
- NewPrimaryResponse _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewPrimaryResponseDefaultTypeInternal _NewPrimaryResponse_default_instance_;
-constexpr PongRequest::PongRequest(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
-struct PongRequestDefaultTypeInternal {
- constexpr PongRequestDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~PongRequestDefaultTypeInternal() {}
- union {
- PongRequest _instance;
- };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PongRequestDefaultTypeInternal _PongRequest_default_instance_;
} // namespace tunnelbroker
-static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tunnelbroker_2eproto[20];
-static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tunnelbroker_2eproto[2];
+static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tunnelbroker_2eproto[11];
+static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tunnelbroker_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tunnelbroker_2eproto = nullptr;
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tunnelbroker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
@@ -324,41 +206,6 @@
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionResponse, sessionid_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, sessionid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, todeviceid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, payload_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, blobhashes_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, sessionid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, newnotifytoken_),
- ~0u,
- 0,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponseMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponseMessage, fromdeviceid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponseMessage, payload_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponseMessage, blobhashes_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
- ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
- ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, data_),
- ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tunnelbroker::ProcessedMessages, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -413,61 +260,19 @@
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, data_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, userid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, devicetoken_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckResponse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckResponse, checkresponsetype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, userid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, devicetoken_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryResponse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryResponse, success_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, userid_),
- PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, devicetoken_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::tunnelbroker::SessionSignatureRequest)},
{ 6, -1, sizeof(::tunnelbroker::SessionSignatureResponse)},
{ 12, 24, sizeof(::tunnelbroker::NewSessionRequest)},
{ 31, -1, sizeof(::tunnelbroker::NewSessionResponse)},
- { 37, -1, sizeof(::tunnelbroker::SendRequest)},
- { 46, 53, sizeof(::tunnelbroker::GetRequest)},
- { 55, -1, sizeof(::tunnelbroker::GetResponseMessage)},
- { 63, -1, sizeof(::tunnelbroker::GetResponse)},
- { 72, -1, sizeof(::tunnelbroker::ProcessedMessages)},
- { 78, -1, sizeof(::tunnelbroker::MessageToTunnelbrokerStruct)},
- { 87, -1, sizeof(::tunnelbroker::MessagesToSend)},
- { 93, -1, sizeof(::tunnelbroker::MessageToTunnelbroker)},
- { 102, -1, sizeof(::tunnelbroker::MessageToClientStruct)},
- { 111, -1, sizeof(::tunnelbroker::MessagesToDeliver)},
- { 117, -1, sizeof(::tunnelbroker::MessageToClient)},
- { 127, -1, sizeof(::tunnelbroker::CheckRequest)},
- { 134, -1, sizeof(::tunnelbroker::CheckResponse)},
- { 140, -1, sizeof(::tunnelbroker::NewPrimaryRequest)},
- { 147, -1, sizeof(::tunnelbroker::NewPrimaryResponse)},
- { 153, -1, sizeof(::tunnelbroker::PongRequest)},
+ { 37, -1, sizeof(::tunnelbroker::ProcessedMessages)},
+ { 43, -1, sizeof(::tunnelbroker::MessageToTunnelbrokerStruct)},
+ { 52, -1, sizeof(::tunnelbroker::MessagesToSend)},
+ { 58, -1, sizeof(::tunnelbroker::MessageToTunnelbroker)},
+ { 67, -1, sizeof(::tunnelbroker::MessageToClientStruct)},
+ { 76, -1, sizeof(::tunnelbroker::MessagesToDeliver)},
+ { 82, -1, sizeof(::tunnelbroker::MessageToClient)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -475,10 +280,6 @@
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_SessionSignatureResponse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_NewSessionRequest_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_NewSessionResponse_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_SendRequest_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_GetRequest_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_GetResponseMessage_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_GetResponse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_ProcessedMessages_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_MessageToTunnelbrokerStruct_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_MessagesToSend_default_instance_),
@@ -486,11 +287,6 @@
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_MessageToClientStruct_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_MessagesToDeliver_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_MessageToClient_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_CheckRequest_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_CheckResponse_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_NewPrimaryRequest_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_NewPrimaryResponse_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tunnelbroker::_PongRequest_default_instance_),
};
const char descriptor_table_protodef_tunnelbroker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -505,74 +301,44 @@
"s\022\030\n\020deviceAppVersion\030\006 \001(\t\022\020\n\010deviceOS\030"
"\007 \001(\t\"1\n\013DeviceTypes\022\n\n\006MOBILE\020\000\022\007\n\003WEB\020"
"\001\022\r\n\tKEYSERVER\020\002B\016\n\014_notifyToken\"\'\n\022NewS"
- "essionResponse\022\021\n\tsessionID\030\001 \001(\t\"Y\n\013Sen"
- "dRequest\022\021\n\tsessionID\030\001 \001(\t\022\022\n\ntoDeviceI"
- "D\030\002 \001(\t\022\017\n\007payload\030\003 \001(\014\022\022\n\nblobHashes\030\004"
- " \003(\t\"O\n\nGetRequest\022\021\n\tsessionID\030\001 \001(\t\022\033\n"
- "\016newNotifyToken\030\002 \001(\tH\000\210\001\001B\021\n\017_newNotify"
- "Token\"O\n\022GetResponseMessage\022\024\n\014fromDevic"
- "eID\030\001 \001(\t\022\017\n\007payload\030\002 \001(\014\022\022\n\nblobHashes"
- "\030\003 \003(\t\"\264\001\n\013GetResponse\022;\n\017responseMessag"
- "e\030\001 \001(\0132 .tunnelbroker.GetResponseMessag"
- "eH\000\022&\n\004ping\030\002 \001(\0132\026.google.protobuf.Empt"
- "yH\000\0228\n\026newNotifyTokenRequired\030\003 \001(\0132\026.go"
- "ogle.protobuf.EmptyH\000B\006\n\004data\"&\n\021Process"
- "edMessages\022\021\n\tmessageID\030\001 \003(\t\"i\n\033Message"
- "ToTunnelbrokerStruct\022\021\n\tmessageID\030\001 \001(\t\022"
- "\022\n\ntoDeviceID\030\002 \001(\t\022\017\n\007payload\030\003 \001(\t\022\022\n\n"
- "blobHashes\030\004 \003(\t\"M\n\016MessagesToSend\022;\n\010me"
- "ssages\030\001 \003(\0132).tunnelbroker.MessageToTun"
- "nelbrokerStruct\"\257\001\n\025MessageToTunnelbroke"
- "r\0226\n\016messagesToSend\030\001 \001(\0132\034.tunnelbroker"
- ".MessagesToSendH\000\022<\n\021processedMessages\030\002"
- " \001(\0132\037.tunnelbroker.ProcessedMessagesH\000\022"
- "\030\n\016newNotifyToken\030\003 \001(\tH\000B\006\n\004data\"e\n\025Mes"
- "sageToClientStruct\022\021\n\tmessageID\030\001 \001(\t\022\024\n"
- "\014fromDeviceID\030\002 \001(\t\022\017\n\007payload\030\003 \001(\t\022\022\n\n"
- "blobHashes\030\004 \003(\t\"J\n\021MessagesToDeliver\0225\n"
- "\010messages\030\001 \003(\0132#.tunnelbroker.MessageTo"
- "ClientStruct\"\367\001\n\017MessageToClient\022<\n\021mess"
- "agesToDeliver\030\001 \001(\0132\037.tunnelbroker.Messa"
- "gesToDeliverH\000\022<\n\021processedMessages\030\002 \001("
- "\0132\037.tunnelbroker.ProcessedMessagesH\000\0228\n\026"
- "newNotifyTokenRequired\030\003 \001(\0132\026.google.pr"
- "otobuf.EmptyH\000\022&\n\004ping\030\004 \001(\0132\026.google.pr"
- "otobuf.EmptyH\000B\006\n\004data\"3\n\014CheckRequest\022\016"
- "\n\006userId\030\001 \001(\t\022\023\n\013deviceToken\030\002 \001(\t\"K\n\rC"
- "heckResponse\022:\n\021checkResponseType\030\001 \001(\0162"
- "\037.tunnelbroker.CheckResponseType\"8\n\021NewP"
- "rimaryRequest\022\016\n\006userId\030\001 \001(\t\022\023\n\013deviceT"
- "oken\030\002 \001(\t\"%\n\022NewPrimaryResponse\022\017\n\007succ"
- "ess\030\001 \001(\010\"2\n\013PongRequest\022\016\n\006userId\030\001 \001(\t"
- "\022\023\n\013deviceToken\030\002 \001(\t*n\n\021CheckResponseTy"
- "pe\022\030\n\024PRIMARY_DOESNT_EXIST\020\000\022\022\n\016PRIMARY_"
- "ONLINE\020\001\022\023\n\017PRIMARY_OFFLINE\020\002\022\026\n\022CURRENT"
- "_IS_PRIMARY\020\0032\237\005\n\023TunnelbrokerService\022W\n"
- "\032CheckIfPrimaryDeviceOnline\022\032.tunnelbrok"
- "er.CheckRequest\032\033.tunnelbroker.CheckResp"
- "onse\"\000\022]\n\026BecomeNewPrimaryDevice\022\037.tunne"
- "lbroker.NewPrimaryRequest\032 .tunnelbroker"
- ".NewPrimaryResponse\"\000\022\?\n\010SendPong\022\031.tunn"
- "elbroker.PongRequest\032\026.google.protobuf.E"
- "mpty\"\000\022c\n\020SessionSignature\022%.tunnelbroke"
- "r.SessionSignatureRequest\032&.tunnelbroker"
- ".SessionSignatureResponse\"\000\022Q\n\nNewSessio"
- "n\022\037.tunnelbroker.NewSessionRequest\032 .tun"
- "nelbroker.NewSessionResponse\"\000\022;\n\004Send\022\031"
- ".tunnelbroker.SendRequest\032\026.google.proto"
- "buf.Empty\"\000\022>\n\003Get\022\030.tunnelbroker.GetReq"
- "uest\032\031.tunnelbroker.GetResponse\"\0000\001\022Z\n\016M"
- "essagesStream\022#.tunnelbroker.MessageToTu"
- "nnelbroker\032\035.tunnelbroker.MessageToClien"
- "t\"\000(\0010\001b\006proto3"
+ "essionResponse\022\021\n\tsessionID\030\001 \001(\t\"&\n\021Pro"
+ "cessedMessages\022\021\n\tmessageID\030\001 \003(\t\"i\n\033Mes"
+ "sageToTunnelbrokerStruct\022\021\n\tmessageID\030\001 "
+ "\001(\t\022\022\n\ntoDeviceID\030\002 \001(\t\022\017\n\007payload\030\003 \001(\t"
+ "\022\022\n\nblobHashes\030\004 \003(\t\"M\n\016MessagesToSend\022;"
+ "\n\010messages\030\001 \003(\0132).tunnelbroker.MessageT"
+ "oTunnelbrokerStruct\"\257\001\n\025MessageToTunnelb"
+ "roker\0226\n\016messagesToSend\030\001 \001(\0132\034.tunnelbr"
+ "oker.MessagesToSendH\000\022<\n\021processedMessag"
+ "es\030\002 \001(\0132\037.tunnelbroker.ProcessedMessage"
+ "sH\000\022\030\n\016newNotifyToken\030\003 \001(\tH\000B\006\n\004data\"e\n"
+ "\025MessageToClientStruct\022\021\n\tmessageID\030\001 \001("
+ "\t\022\024\n\014fromDeviceID\030\002 \001(\t\022\017\n\007payload\030\003 \001(\t"
+ "\022\022\n\nblobHashes\030\004 \003(\t\"J\n\021MessagesToDelive"
+ "r\0225\n\010messages\030\001 \003(\0132#.tunnelbroker.Messa"
+ "geToClientStruct\"\367\001\n\017MessageToClient\022<\n\021"
+ "messagesToDeliver\030\001 \001(\0132\037.tunnelbroker.M"
+ "essagesToDeliverH\000\022<\n\021processedMessages\030"
+ "\002 \001(\0132\037.tunnelbroker.ProcessedMessagesH\000"
+ "\0228\n\026newNotifyTokenRequired\030\003 \001(\0132\026.googl"
+ "e.protobuf.EmptyH\000\022&\n\004ping\030\004 \001(\0132\026.googl"
+ "e.protobuf.EmptyH\000B\006\n\004data2\251\002\n\023Tunnelbro"
+ "kerService\022c\n\020SessionSignature\022%.tunnelb"
+ "roker.SessionSignatureRequest\032&.tunnelbr"
+ "oker.SessionSignatureResponse\"\000\022Q\n\nNewSe"
+ "ssion\022\037.tunnelbroker.NewSessionRequest\032 "
+ ".tunnelbroker.NewSessionResponse\"\000\022Z\n\016Me"
+ "ssagesStream\022#.tunnelbroker.MessageToTun"
+ "nelbroker\032\035.tunnelbroker.MessageToClient"
+ "\"\000(\0010\001b\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tunnelbroker_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fempty_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tunnelbroker_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tunnelbroker_2eproto = {
- false, false, 2815, descriptor_table_protodef_tunnelbroker_2eproto, "tunnelbroker.proto",
- &descriptor_table_tunnelbroker_2eproto_once, descriptor_table_tunnelbroker_2eproto_deps, 1, 20,
+ false, false, 1614, descriptor_table_protodef_tunnelbroker_2eproto, "tunnelbroker.proto",
+ &descriptor_table_tunnelbroker_2eproto_once, descriptor_table_tunnelbroker_2eproto_deps, 1, 11,
schemas, file_default_instances, TableStruct_tunnelbroker_2eproto::offsets,
file_level_metadata_tunnelbroker_2eproto, file_level_enum_descriptors_tunnelbroker_2eproto, file_level_service_descriptors_tunnelbroker_2eproto,
};
@@ -608,22 +374,6 @@
constexpr NewSessionRequest_DeviceTypes NewSessionRequest::DeviceTypes_MAX;
constexpr int NewSessionRequest::DeviceTypes_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CheckResponseType_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tunnelbroker_2eproto);
- return file_level_enum_descriptors_tunnelbroker_2eproto[1];
-}
-bool CheckResponseType_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
-}
-
// ===================================================================
@@ -1658,126 +1408,76 @@
// ===================================================================
-class SendRequest::_Internal {
+class ProcessedMessages::_Internal {
public:
};
-SendRequest::SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+ProcessedMessages::ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
- blobhashes_(arena) {
+ messageid_(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.ProcessedMessages)
}
-SendRequest::SendRequest(const SendRequest& from)
+ProcessedMessages::ProcessedMessages(const ProcessedMessages& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
- blobhashes_(from.blobhashes_) {
+ messageid_(from.messageid_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_sessionid().empty()) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(),
- GetArena());
- }
- todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_todeviceid().empty()) {
- todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_todeviceid(),
- GetArena());
- }
- payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_payload().empty()) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.ProcessedMessages)
}
-void SendRequest::SharedCtor() {
-sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+void ProcessedMessages::SharedCtor() {
}
-SendRequest::~SendRequest() {
- // @@protoc_insertion_point(destructor:tunnelbroker.SendRequest)
+ProcessedMessages::~ProcessedMessages() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.ProcessedMessages)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void SendRequest::SharedDtor() {
+void ProcessedMessages::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
- sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- todeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-void SendRequest::ArenaDtor(void* object) {
- SendRequest* _this = reinterpret_cast< SendRequest* >(object);
+void ProcessedMessages::ArenaDtor(void* object) {
+ ProcessedMessages* _this = reinterpret_cast< ProcessedMessages* >(object);
(void)_this;
}
-void SendRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void ProcessedMessages::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void SendRequest::SetCachedSize(int size) const {
+void ProcessedMessages::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void SendRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.SendRequest)
+void ProcessedMessages::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.ProcessedMessages)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- blobhashes_.Clear();
- sessionid_.ClearToEmpty();
- todeviceid_.ClearToEmpty();
- payload_.ClearToEmpty();
+ messageid_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SendRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* ProcessedMessages::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // string sessionID = 1;
+ // repeated string messageID = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_sessionid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.sessionID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string toDeviceID = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_todeviceid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.toDeviceID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // bytes payload = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_payload();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // repeated string blobHashes = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr -= 1;
do {
ptr += 1;
- auto str = _internal_add_blobhashes();
+ auto str = _internal_add_messageid();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.blobHashes"));
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.ProcessedMessages.messageID"));
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
default: {
@@ -1802,91 +1502,44 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* SendRequest::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* ProcessedMessages::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.ProcessedMessages)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // string sessionID = 1;
- if (this->sessionid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_sessionid().data(), static_cast<int>(this->_internal_sessionid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.SendRequest.sessionID");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_sessionid(), target);
- }
-
- // string toDeviceID = 2;
- if (this->todeviceid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_todeviceid().data(), static_cast<int>(this->_internal_todeviceid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.SendRequest.toDeviceID");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_todeviceid(), target);
- }
-
- // bytes payload = 3;
- if (this->payload().size() > 0) {
- target = stream->WriteBytesMaybeAliased(
- 3, this->_internal_payload(), target);
- }
-
- // repeated string blobHashes = 4;
- for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
- const auto& s = this->_internal_blobhashes(i);
+ // repeated string messageID = 1;
+ for (int i = 0, n = this->_internal_messageid_size(); i < n; i++) {
+ const auto& s = this->_internal_messageid(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.SendRequest.blobHashes");
- target = stream->WriteString(4, s, target);
+ "tunnelbroker.ProcessedMessages.messageID");
+ target = stream->WriteString(1, s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.ProcessedMessages)
return target;
}
-size_t SendRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.SendRequest)
+size_t ProcessedMessages::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.ProcessedMessages)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // repeated string blobHashes = 4;
+ // repeated string messageID = 1;
total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
- for (int i = 0, n = blobhashes_.size(); i < n; i++) {
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messageid_.size());
+ for (int i = 0, n = messageid_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- blobhashes_.Get(i));
- }
-
- // string sessionID = 1;
- if (this->sessionid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_sessionid());
- }
-
- // string toDeviceID = 2;
- if (this->todeviceid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_todeviceid());
- }
-
- // bytes payload = 3;
- if (this->payload().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
- this->_internal_payload());
+ messageid_.Get(i));
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -1898,173 +1551,185 @@
return total_size;
}
-void SendRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.SendRequest)
+void ProcessedMessages::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.ProcessedMessages)
GOOGLE_DCHECK_NE(&from, this);
- const SendRequest* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendRequest>(
+ const ProcessedMessages* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProcessedMessages>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.ProcessedMessages)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.SendRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.ProcessedMessages)
MergeFrom(*source);
}
}
-void SendRequest::MergeFrom(const SendRequest& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SendRequest)
+void ProcessedMessages::MergeFrom(const ProcessedMessages& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.ProcessedMessages)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- blobhashes_.MergeFrom(from.blobhashes_);
- if (from.sessionid().size() > 0) {
- _internal_set_sessionid(from._internal_sessionid());
- }
- if (from.todeviceid().size() > 0) {
- _internal_set_todeviceid(from._internal_todeviceid());
- }
- if (from.payload().size() > 0) {
- _internal_set_payload(from._internal_payload());
- }
+ messageid_.MergeFrom(from.messageid_);
}
-void SendRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.SendRequest)
+void ProcessedMessages::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.ProcessedMessages)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void SendRequest::CopyFrom(const SendRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.SendRequest)
+void ProcessedMessages::CopyFrom(const ProcessedMessages& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.ProcessedMessages)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SendRequest::IsInitialized() const {
+bool ProcessedMessages::IsInitialized() const {
return true;
}
-void SendRequest::InternalSwap(SendRequest* other) {
+void ProcessedMessages::InternalSwap(ProcessedMessages* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- blobhashes_.InternalSwap(&other->blobhashes_);
- sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- todeviceid_.Swap(&other->todeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ messageid_.InternalSwap(&other->messageid_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata SendRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata ProcessedMessages::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class GetRequest::_Internal {
+class MessageToTunnelbrokerStruct::_Internal {
public:
- using HasBits = decltype(std::declval<GetRequest>()._has_bits_);
- static void set_has_newnotifytoken(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
};
-GetRequest::GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
+MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena),
+ blobhashes_(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbrokerStruct)
}
-GetRequest::GetRequest(const GetRequest& from)
+MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
+ blobhashes_(from.blobhashes_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_sessionid().empty()) {
- sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(),
+ messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_messageid().empty()) {
+ messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(),
+ GetArena());
+ }
+ todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_todeviceid().empty()) {
+ todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_todeviceid(),
GetArena());
}
- newnotifytoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_newnotifytoken()) {
- newnotifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_newnotifytoken(),
+ payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_payload().empty()) {
+ payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
GetArena());
}
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbrokerStruct)
}
-void GetRequest::SharedCtor() {
-sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-newnotifytoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+void MessageToTunnelbrokerStruct::SharedCtor() {
+messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-GetRequest::~GetRequest() {
- // @@protoc_insertion_point(destructor:tunnelbroker.GetRequest)
+MessageToTunnelbrokerStruct::~MessageToTunnelbrokerStruct() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbrokerStruct)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void GetRequest::SharedDtor() {
+void MessageToTunnelbrokerStruct::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
- sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- newnotifytoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ todeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-void GetRequest::ArenaDtor(void* object) {
- GetRequest* _this = reinterpret_cast< GetRequest* >(object);
+void MessageToTunnelbrokerStruct::ArenaDtor(void* object) {
+ MessageToTunnelbrokerStruct* _this = reinterpret_cast< MessageToTunnelbrokerStruct* >(object);
(void)_this;
}
-void GetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessageToTunnelbrokerStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void GetRequest::SetCachedSize(int size) const {
+void MessageToTunnelbrokerStruct::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void GetRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.GetRequest)
+void MessageToTunnelbrokerStruct::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbrokerStruct)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- sessionid_.ClearToEmpty();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- newnotifytoken_.ClearNonDefaultToEmpty();
- }
- _has_bits_.Clear();
+ blobhashes_.Clear();
+ messageid_.ClearToEmpty();
+ todeviceid_.ClearToEmpty();
+ payload_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* GetRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessageToTunnelbrokerStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // string sessionID = 1;
+ // string messageID = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_sessionid();
+ auto str = _internal_mutable_messageid();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetRequest.sessionID"));
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.messageID"));
CHK_(ptr);
} else goto handle_unusual;
continue;
- // string newNotifyToken = 2;
+ // string toDeviceID = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_newnotifytoken();
+ auto str = _internal_mutable_todeviceid();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID"));
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // string payload = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ auto str = _internal_mutable_payload();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetRequest.newNotifyToken"));
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.payload"));
CHK_(ptr);
} else goto handle_unusual;
continue;
+ // repeated string blobHashes = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ auto str = _internal_add_blobhashes();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes"));
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
@@ -2080,7 +1745,6 @@
} // switch
} // while
success:
- _has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
@@ -2088,61 +1752,95 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* GetRequest::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbrokerStruct::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbrokerStruct)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // string sessionID = 1;
- if (this->sessionid().size() > 0) {
+ // string messageID = 1;
+ if (this->messageid().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_sessionid().data(), static_cast<int>(this->_internal_sessionid().length()),
+ this->_internal_messageid().data(), static_cast<int>(this->_internal_messageid().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.GetRequest.sessionID");
+ "tunnelbroker.MessageToTunnelbrokerStruct.messageID");
target = stream->WriteStringMaybeAliased(
- 1, this->_internal_sessionid(), target);
+ 1, this->_internal_messageid(), target);
}
- // string newNotifyToken = 2;
- if (_internal_has_newnotifytoken()) {
+ // string toDeviceID = 2;
+ if (this->todeviceid().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_newnotifytoken().data(), static_cast<int>(this->_internal_newnotifytoken().length()),
+ this->_internal_todeviceid().data(), static_cast<int>(this->_internal_todeviceid().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_todeviceid(), target);
+ }
+
+ // string payload = 3;
+ if (this->payload().size() > 0) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_payload().data(), static_cast<int>(this->_internal_payload().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.GetRequest.newNotifyToken");
+ "tunnelbroker.MessageToTunnelbrokerStruct.payload");
target = stream->WriteStringMaybeAliased(
- 2, this->_internal_newnotifytoken(), target);
+ 3, this->_internal_payload(), target);
+ }
+
+ // repeated string blobHashes = 4;
+ for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
+ const auto& s = this->_internal_blobhashes(i);
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ s.data(), static_cast<int>(s.length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes");
+ target = stream->WriteString(4, s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbrokerStruct)
return target;
}
-size_t GetRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.GetRequest)
+size_t MessageToTunnelbrokerStruct::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbrokerStruct)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // string sessionID = 1;
- if (this->sessionid().size() > 0) {
+ // repeated string blobHashes = 4;
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
+ for (int i = 0, n = blobhashes_.size(); i < n; i++) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ blobhashes_.Get(i));
+ }
+
+ // string messageID = 1;
+ if (this->messageid().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_sessionid());
+ this->_internal_messageid());
}
- // string newNotifyToken = 2;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
+ // string toDeviceID = 2;
+ if (this->todeviceid().size() > 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_todeviceid());
+ }
+
+ // string payload = 3;
+ if (this->payload().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_newnotifytoken());
+ this->_internal_payload());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -2154,172 +1852,142 @@
return total_size;
}
-void GetRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.GetRequest)
+void MessageToTunnelbrokerStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
GOOGLE_DCHECK_NE(&from, this);
- const GetRequest* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetRequest>(
+ const MessageToTunnelbrokerStruct* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToTunnelbrokerStruct>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbrokerStruct)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.GetRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbrokerStruct)
MergeFrom(*source);
}
}
-void GetRequest::MergeFrom(const GetRequest& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetRequest)
+void MessageToTunnelbrokerStruct::MergeFrom(const MessageToTunnelbrokerStruct& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- if (from.sessionid().size() > 0) {
- _internal_set_sessionid(from._internal_sessionid());
+ blobhashes_.MergeFrom(from.blobhashes_);
+ if (from.messageid().size() > 0) {
+ _internal_set_messageid(from._internal_messageid());
+ }
+ if (from.todeviceid().size() > 0) {
+ _internal_set_todeviceid(from._internal_todeviceid());
}
- if (from._internal_has_newnotifytoken()) {
- _internal_set_newnotifytoken(from._internal_newnotifytoken());
+ if (from.payload().size() > 0) {
+ _internal_set_payload(from._internal_payload());
}
}
-void GetRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.GetRequest)
+void MessageToTunnelbrokerStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void GetRequest::CopyFrom(const GetRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.GetRequest)
+void MessageToTunnelbrokerStruct::CopyFrom(const MessageToTunnelbrokerStruct& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool GetRequest::IsInitialized() const {
+bool MessageToTunnelbrokerStruct::IsInitialized() const {
return true;
}
-void GetRequest::InternalSwap(GetRequest* other) {
+void MessageToTunnelbrokerStruct::InternalSwap(MessageToTunnelbrokerStruct* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- newnotifytoken_.Swap(&other->newnotifytoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ blobhashes_.InternalSwap(&other->blobhashes_);
+ messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ todeviceid_.Swap(&other->todeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-::PROTOBUF_NAMESPACE_ID::Metadata GetRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbrokerStruct::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class GetResponseMessage::_Internal {
+class MessagesToSend::_Internal {
public:
};
-GetResponseMessage::GetResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+MessagesToSend::MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
- blobhashes_(arena) {
+ messages_(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToSend)
}
-GetResponseMessage::GetResponseMessage(const GetResponseMessage& from)
+MessagesToSend::MessagesToSend(const MessagesToSend& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
- blobhashes_(from.blobhashes_) {
+ messages_(from.messages_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_fromdeviceid().empty()) {
- fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fromdeviceid(),
- GetArena());
- }
- payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_payload().empty()) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToSend)
}
-void GetResponseMessage::SharedCtor() {
-fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+void MessagesToSend::SharedCtor() {
}
-GetResponseMessage::~GetResponseMessage() {
- // @@protoc_insertion_point(destructor:tunnelbroker.GetResponseMessage)
+MessagesToSend::~MessagesToSend() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToSend)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void GetResponseMessage::SharedDtor() {
+void MessagesToSend::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
- fromdeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-void GetResponseMessage::ArenaDtor(void* object) {
- GetResponseMessage* _this = reinterpret_cast< GetResponseMessage* >(object);
+void MessagesToSend::ArenaDtor(void* object) {
+ MessagesToSend* _this = reinterpret_cast< MessagesToSend* >(object);
(void)_this;
}
-void GetResponseMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessagesToSend::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void GetResponseMessage::SetCachedSize(int size) const {
+void MessagesToSend::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void GetResponseMessage::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.GetResponseMessage)
+void MessagesToSend::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToSend)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- blobhashes_.Clear();
- fromdeviceid_.ClearToEmpty();
- payload_.ClearToEmpty();
+ messages_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* GetResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessagesToSend::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // string fromDeviceID = 1;
+ // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_fromdeviceid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetResponseMessage.fromDeviceID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // bytes payload = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_payload();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // repeated string blobHashes = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- ptr -= 1;
- do {
- ptr += 1;
- auto str = _internal_add_blobhashes();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetResponseMessage.blobHashes"));
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_messages(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
default: {
@@ -2344,74 +2012,41 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* GetResponseMessage::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessagesToSend::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToSend)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // string fromDeviceID = 1;
- if (this->fromdeviceid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_fromdeviceid().data(), static_cast<int>(this->_internal_fromdeviceid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.GetResponseMessage.fromDeviceID");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_fromdeviceid(), target);
- }
-
- // bytes payload = 2;
- if (this->payload().size() > 0) {
- target = stream->WriteBytesMaybeAliased(
- 2, this->_internal_payload(), target);
- }
-
- // repeated string blobHashes = 3;
- for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
- const auto& s = this->_internal_blobhashes(i);
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- s.data(), static_cast<int>(s.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.GetResponseMessage.blobHashes");
- target = stream->WriteString(3, s, target);
+ // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_messages_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_messages(i), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToSend)
return target;
}
-size_t GetResponseMessage::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.GetResponseMessage)
+size_t MessagesToSend::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToSend)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // repeated string blobHashes = 3;
- total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
- for (int i = 0, n = blobhashes_.size(); i < n; i++) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- blobhashes_.Get(i));
- }
-
- // string fromDeviceID = 1;
- if (this->fromdeviceid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_fromdeviceid());
- }
-
- // bytes payload = 2;
- if (this->payload().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
- this->_internal_payload());
+ // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
+ total_size += 1UL * this->_internal_messages_size();
+ for (const auto& msg : this->messages_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -2423,226 +2058,180 @@
return total_size;
}
-void GetResponseMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.GetResponseMessage)
+void MessagesToSend::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToSend)
GOOGLE_DCHECK_NE(&from, this);
- const GetResponseMessage* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetResponseMessage>(
+ const MessagesToSend* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessagesToSend>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToSend)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.GetResponseMessage)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToSend)
MergeFrom(*source);
}
}
-void GetResponseMessage::MergeFrom(const GetResponseMessage& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetResponseMessage)
+void MessagesToSend::MergeFrom(const MessagesToSend& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToSend)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- blobhashes_.MergeFrom(from.blobhashes_);
- if (from.fromdeviceid().size() > 0) {
- _internal_set_fromdeviceid(from._internal_fromdeviceid());
- }
- if (from.payload().size() > 0) {
- _internal_set_payload(from._internal_payload());
- }
+ messages_.MergeFrom(from.messages_);
}
-void GetResponseMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.GetResponseMessage)
+void MessagesToSend::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToSend)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void GetResponseMessage::CopyFrom(const GetResponseMessage& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.GetResponseMessage)
+void MessagesToSend::CopyFrom(const MessagesToSend& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessagesToSend)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool GetResponseMessage::IsInitialized() const {
+bool MessagesToSend::IsInitialized() const {
return true;
}
-void GetResponseMessage::InternalSwap(GetResponseMessage* other) {
+void MessagesToSend::InternalSwap(MessagesToSend* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- blobhashes_.InternalSwap(&other->blobhashes_);
- fromdeviceid_.Swap(&other->fromdeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ messages_.InternalSwap(&other->messages_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata GetResponseMessage::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessagesToSend::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class GetResponse::_Internal {
+class MessageToTunnelbroker::_Internal {
public:
- static const ::tunnelbroker::GetResponseMessage& responsemessage(const GetResponse* msg);
- static const PROTOBUF_NAMESPACE_ID::Empty& ping(const GetResponse* msg);
- static const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired(const GetResponse* msg);
+ static const ::tunnelbroker::MessagesToSend& messagestosend(const MessageToTunnelbroker* msg);
+ static const ::tunnelbroker::ProcessedMessages& processedmessages(const MessageToTunnelbroker* msg);
};
-const ::tunnelbroker::GetResponseMessage&
-GetResponse::_Internal::responsemessage(const GetResponse* msg) {
- return *msg->data_.responsemessage_;
-}
-const PROTOBUF_NAMESPACE_ID::Empty&
-GetResponse::_Internal::ping(const GetResponse* msg) {
- return *msg->data_.ping_;
-}
-const PROTOBUF_NAMESPACE_ID::Empty&
-GetResponse::_Internal::newnotifytokenrequired(const GetResponse* msg) {
- return *msg->data_.newnotifytokenrequired_;
+const ::tunnelbroker::MessagesToSend&
+MessageToTunnelbroker::_Internal::messagestosend(const MessageToTunnelbroker* msg) {
+ return *msg->data_.messagestosend_;
}
-void GetResponse::set_allocated_responsemessage(::tunnelbroker::GetResponseMessage* responsemessage) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (responsemessage) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(responsemessage);
- if (message_arena != submessage_arena) {
- responsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, responsemessage, submessage_arena);
- }
- set_has_responsemessage();
- data_.responsemessage_ = responsemessage;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponse.responseMessage)
+const ::tunnelbroker::ProcessedMessages&
+MessageToTunnelbroker::_Internal::processedmessages(const MessageToTunnelbroker* msg) {
+ return *msg->data_.processedmessages_;
}
-void GetResponse::set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping) {
+void MessageToTunnelbroker::set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
clear_data();
- if (ping) {
+ if (messagestosend) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ping)->GetArena();
+ ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestosend);
if (message_arena != submessage_arena) {
- ping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, ping, submessage_arena);
- }
- set_has_ping();
- data_.ping_ = ping;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponse.ping)
-}
-void GetResponse::clear_ping() {
- if (_internal_has_ping()) {
- if (GetArena() == nullptr) {
- delete data_.ping_;
+ messagestosend = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, messagestosend, submessage_arena);
}
- clear_has_data();
+ set_has_messagestosend();
+ data_.messagestosend_ = messagestosend;
}
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.messagesToSend)
}
-void GetResponse::set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired) {
+void MessageToTunnelbroker::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
clear_data();
- if (newnotifytokenrequired) {
+ if (processedmessages) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(newnotifytokenrequired)->GetArena();
+ ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages);
if (message_arena != submessage_arena) {
- newnotifytokenrequired = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, newnotifytokenrequired, submessage_arena);
- }
- set_has_newnotifytokenrequired();
- data_.newnotifytokenrequired_ = newnotifytokenrequired;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponse.newNotifyTokenRequired)
-}
-void GetResponse::clear_newnotifytokenrequired() {
- if (_internal_has_newnotifytokenrequired()) {
- if (GetArena() == nullptr) {
- delete data_.newnotifytokenrequired_;
+ processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, processedmessages, submessage_arena);
}
- clear_has_data();
+ set_has_processedmessages();
+ data_.processedmessages_ = processedmessages;
}
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.processedMessages)
}
-GetResponse::GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+MessageToTunnelbroker::MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbroker)
}
-GetResponse::GetResponse(const GetResponse& from)
+MessageToTunnelbroker::MessageToTunnelbroker(const MessageToTunnelbroker& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
clear_has_data();
switch (from.data_case()) {
- case kResponseMessage: {
- _internal_mutable_responsemessage()->::tunnelbroker::GetResponseMessage::MergeFrom(from._internal_responsemessage());
+ case kMessagesToSend: {
+ _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend());
break;
}
- case kPing: {
- _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
+ case kProcessedMessages: {
+ _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
break;
}
- case kNewNotifyTokenRequired: {
- _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
+ case kNewNotifyToken: {
+ _internal_set_newnotifytoken(from._internal_newnotifytoken());
break;
}
case DATA_NOT_SET: {
break;
}
}
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbroker)
}
-void GetResponse::SharedCtor() {
+void MessageToTunnelbroker::SharedCtor() {
clear_has_data();
}
-GetResponse::~GetResponse() {
- // @@protoc_insertion_point(destructor:tunnelbroker.GetResponse)
+MessageToTunnelbroker::~MessageToTunnelbroker() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbroker)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void GetResponse::SharedDtor() {
+void MessageToTunnelbroker::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
if (has_data()) {
clear_data();
}
}
-void GetResponse::ArenaDtor(void* object) {
- GetResponse* _this = reinterpret_cast< GetResponse* >(object);
+void MessageToTunnelbroker::ArenaDtor(void* object) {
+ MessageToTunnelbroker* _this = reinterpret_cast< MessageToTunnelbroker* >(object);
(void)_this;
}
-void GetResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessageToTunnelbroker::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void GetResponse::SetCachedSize(int size) const {
+void MessageToTunnelbroker::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void GetResponse::clear_data() {
-// @@protoc_insertion_point(one_of_clear_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::clear_data() {
+// @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToTunnelbroker)
switch (data_case()) {
- case kResponseMessage: {
+ case kMessagesToSend: {
if (GetArena() == nullptr) {
- delete data_.responsemessage_;
+ delete data_.messagestosend_;
}
break;
}
- case kPing: {
+ case kProcessedMessages: {
if (GetArena() == nullptr) {
- delete data_.ping_;
+ delete data_.processedmessages_;
}
break;
}
- case kNewNotifyTokenRequired: {
- if (GetArena() == nullptr) {
- delete data_.newnotifytokenrequired_;
- }
+ case kNewNotifyToken: {
+ data_.newnotifytoken_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
break;
}
case DATA_NOT_SET: {
@@ -2653,8 +2242,8 @@
}
-void GetResponse::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbroker)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@@ -2663,31 +2252,33 @@
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* GetResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessageToTunnelbroker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // .tunnelbroker.GetResponseMessage responseMessage = 1;
+ // .tunnelbroker.MessagesToSend messagesToSend = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_responsemessage(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_messagestosend(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
- // .google.protobuf.Empty ping = 2;
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_ping(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
+ // string newNotifyToken = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_newnotifytokenrequired(), ptr);
+ auto str = _internal_mutable_newnotifytoken();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbroker.newNotifyToken"));
CHK_(ptr);
} else goto handle_unusual;
continue;
@@ -2713,46 +2304,48 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* GetResponse::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbroker::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbroker)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // .tunnelbroker.GetResponseMessage responseMessage = 1;
- if (_internal_has_responsemessage()) {
+ // .tunnelbroker.MessagesToSend messagesToSend = 1;
+ if (_internal_has_messagestosend()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
- 1, _Internal::responsemessage(this), target, stream);
+ 1, _Internal::messagestosend(this), target, stream);
}
- // .google.protobuf.Empty ping = 2;
- if (_internal_has_ping()) {
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ if (_internal_has_processedmessages()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
- 2, _Internal::ping(this), target, stream);
+ 2, _Internal::processedmessages(this), target, stream);
}
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- if (_internal_has_newnotifytokenrequired()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 3, _Internal::newnotifytokenrequired(this), target, stream);
+ // string newNotifyToken = 3;
+ if (_internal_has_newnotifytoken()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_newnotifytoken().data(), static_cast<int>(this->_internal_newnotifytoken().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToTunnelbroker.newNotifyToken");
+ target = stream->WriteStringMaybeAliased(
+ 3, this->_internal_newnotifytoken(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbroker)
return target;
}
-size_t GetResponse::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.GetResponse)
+size_t MessageToTunnelbroker::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbroker)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
@@ -2760,25 +2353,25 @@
(void) cached_has_bits;
switch (data_case()) {
- // .tunnelbroker.GetResponseMessage responseMessage = 1;
- case kResponseMessage: {
+ // .tunnelbroker.MessagesToSend messagesToSend = 1;
+ case kMessagesToSend: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.responsemessage_);
+ *data_.messagestosend_);
break;
}
- // .google.protobuf.Empty ping = 2;
- case kPing: {
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ case kProcessedMessages: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.ping_);
+ *data_.processedmessages_);
break;
}
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- case kNewNotifyTokenRequired: {
+ // string newNotifyToken = 3;
+ case kNewNotifyToken: {
total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.newnotifytokenrequired_);
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_newnotifytoken());
break;
}
case DATA_NOT_SET: {
@@ -2794,39 +2387,39 @@
return total_size;
}
-void GetResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbroker)
GOOGLE_DCHECK_NE(&from, this);
- const GetResponse* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetResponse>(
+ const MessageToTunnelbroker* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToTunnelbroker>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbroker)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.GetResponse)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbroker)
MergeFrom(*source);
}
}
-void GetResponse::MergeFrom(const GetResponse& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::MergeFrom(const MessageToTunnelbroker& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbroker)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
switch (from.data_case()) {
- case kResponseMessage: {
- _internal_mutable_responsemessage()->::tunnelbroker::GetResponseMessage::MergeFrom(from._internal_responsemessage());
+ case kMessagesToSend: {
+ _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend());
break;
}
- case kPing: {
- _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
+ case kProcessedMessages: {
+ _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
break;
}
- case kNewNotifyTokenRequired: {
- _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
+ case kNewNotifyToken: {
+ _internal_set_newnotifytoken(from._internal_newnotifytoken());
break;
}
case DATA_NOT_SET: {
@@ -2835,108 +2428,159 @@
}
}
-void GetResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbroker)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void GetResponse::CopyFrom(const GetResponse& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.GetResponse)
+void MessageToTunnelbroker::CopyFrom(const MessageToTunnelbroker& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToTunnelbroker)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool GetResponse::IsInitialized() const {
+bool MessageToTunnelbroker::IsInitialized() const {
return true;
}
-void GetResponse::InternalSwap(GetResponse* other) {
+void MessageToTunnelbroker::InternalSwap(MessageToTunnelbroker* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
swap(data_, other->data_);
swap(_oneof_case_[0], other->_oneof_case_[0]);
}
-::PROTOBUF_NAMESPACE_ID::Metadata GetResponse::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbroker::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class ProcessedMessages::_Internal {
+class MessageToClientStruct::_Internal {
public:
};
-ProcessedMessages::ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+MessageToClientStruct::MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
- messageid_(arena) {
+ blobhashes_(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClientStruct)
}
-ProcessedMessages::ProcessedMessages(const ProcessedMessages& from)
+MessageToClientStruct::MessageToClientStruct(const MessageToClientStruct& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
- messageid_(from.messageid_) {
+ blobhashes_(from.blobhashes_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.ProcessedMessages)
+ messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_messageid().empty()) {
+ messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(),
+ GetArena());
+ }
+ fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_fromdeviceid().empty()) {
+ fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fromdeviceid(),
+ GetArena());
+ }
+ payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (!from._internal_payload().empty()) {
+ payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
+ GetArena());
+ }
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClientStruct)
}
-void ProcessedMessages::SharedCtor() {
+void MessageToClientStruct::SharedCtor() {
+messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-ProcessedMessages::~ProcessedMessages() {
- // @@protoc_insertion_point(destructor:tunnelbroker.ProcessedMessages)
+MessageToClientStruct::~MessageToClientStruct() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClientStruct)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void ProcessedMessages::SharedDtor() {
+void MessageToClientStruct::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
+ messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ fromdeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-void ProcessedMessages::ArenaDtor(void* object) {
- ProcessedMessages* _this = reinterpret_cast< ProcessedMessages* >(object);
+void MessageToClientStruct::ArenaDtor(void* object) {
+ MessageToClientStruct* _this = reinterpret_cast< MessageToClientStruct* >(object);
(void)_this;
}
-void ProcessedMessages::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessageToClientStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void ProcessedMessages::SetCachedSize(int size) const {
+void MessageToClientStruct::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void ProcessedMessages::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.ProcessedMessages)
+void MessageToClientStruct::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClientStruct)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- messageid_.Clear();
+ blobhashes_.Clear();
+ messageid_.ClearToEmpty();
+ fromdeviceid_.ClearToEmpty();
+ payload_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* ProcessedMessages::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessageToClientStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // repeated string messageID = 1;
+ // string messageID = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ auto str = _internal_mutable_messageid();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.messageID"));
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // string fromDeviceID = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ auto str = _internal_mutable_fromdeviceid();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.fromDeviceID"));
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // string payload = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ auto str = _internal_mutable_payload();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.payload"));
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated string blobHashes = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr -= 1;
do {
ptr += 1;
- auto str = _internal_add_messageid();
+ auto str = _internal_add_blobhashes();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.ProcessedMessages.messageID"));
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.blobHashes"));
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
} else goto handle_unusual;
continue;
default: {
@@ -2961,44 +2605,95 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* ProcessedMessages::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessageToClientStruct::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClientStruct)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // repeated string messageID = 1;
- for (int i = 0, n = this->_internal_messageid_size(); i < n; i++) {
- const auto& s = this->_internal_messageid(i);
+ // string messageID = 1;
+ if (this->messageid().size() > 0) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_messageid().data(), static_cast<int>(this->_internal_messageid().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToClientStruct.messageID");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_messageid(), target);
+ }
+
+ // string fromDeviceID = 2;
+ if (this->fromdeviceid().size() > 0) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_fromdeviceid().data(), static_cast<int>(this->_internal_fromdeviceid().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToClientStruct.fromDeviceID");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_fromdeviceid(), target);
+ }
+
+ // string payload = 3;
+ if (this->payload().size() > 0) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_payload().data(), static_cast<int>(this->_internal_payload().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "tunnelbroker.MessageToClientStruct.payload");
+ target = stream->WriteStringMaybeAliased(
+ 3, this->_internal_payload(), target);
+ }
+
+ // repeated string blobHashes = 4;
+ for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
+ const auto& s = this->_internal_blobhashes(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.ProcessedMessages.messageID");
- target = stream->WriteString(1, s, target);
+ "tunnelbroker.MessageToClientStruct.blobHashes");
+ target = stream->WriteString(4, s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClientStruct)
return target;
}
-size_t ProcessedMessages::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.ProcessedMessages)
+size_t MessageToClientStruct::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClientStruct)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // repeated string messageID = 1;
+ // repeated string blobHashes = 4;
total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messageid_.size());
- for (int i = 0, n = messageid_.size(); i < n; i++) {
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
+ for (int i = 0, n = blobhashes_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- messageid_.Get(i));
+ blobhashes_.Get(i));
+ }
+
+ // string messageID = 1;
+ if (this->messageid().size() > 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_messageid());
+ }
+
+ // string fromDeviceID = 2;
+ if (this->fromdeviceid().size() > 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_fromdeviceid());
+ }
+
+ // string payload = 3;
+ if (this->payload().size() > 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_payload());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -3010,2373 +2705,142 @@
return total_size;
}
-void ProcessedMessages::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.ProcessedMessages)
+void MessageToClientStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClientStruct)
GOOGLE_DCHECK_NE(&from, this);
- const ProcessedMessages* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProcessedMessages>(
+ const MessageToClientStruct* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToClientStruct>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClientStruct)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.ProcessedMessages)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClientStruct)
MergeFrom(*source);
}
}
-void ProcessedMessages::MergeFrom(const ProcessedMessages& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.ProcessedMessages)
+void MessageToClientStruct::MergeFrom(const MessageToClientStruct& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClientStruct)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- messageid_.MergeFrom(from.messageid_);
+ blobhashes_.MergeFrom(from.blobhashes_);
+ if (from.messageid().size() > 0) {
+ _internal_set_messageid(from._internal_messageid());
+ }
+ if (from.fromdeviceid().size() > 0) {
+ _internal_set_fromdeviceid(from._internal_fromdeviceid());
+ }
+ if (from.payload().size() > 0) {
+ _internal_set_payload(from._internal_payload());
+ }
}
-void ProcessedMessages::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.ProcessedMessages)
+void MessageToClientStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClientStruct)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void ProcessedMessages::CopyFrom(const ProcessedMessages& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.ProcessedMessages)
+void MessageToClientStruct::CopyFrom(const MessageToClientStruct& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToClientStruct)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool ProcessedMessages::IsInitialized() const {
+bool MessageToClientStruct::IsInitialized() const {
return true;
}
-void ProcessedMessages::InternalSwap(ProcessedMessages* other) {
+void MessageToClientStruct::InternalSwap(MessageToClientStruct* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- messageid_.InternalSwap(&other->messageid_);
+ blobhashes_.InternalSwap(&other->blobhashes_);
+ messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ fromdeviceid_.Swap(&other->fromdeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
-::PROTOBUF_NAMESPACE_ID::Metadata ProcessedMessages::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessageToClientStruct::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class MessageToTunnelbrokerStruct::_Internal {
+class MessagesToDeliver::_Internal {
public:
};
-MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+MessagesToDeliver::MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
- blobhashes_(arena) {
+ messages_(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbrokerStruct)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToDeliver)
}
-MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from)
+MessagesToDeliver::MessagesToDeliver(const MessagesToDeliver& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
- blobhashes_(from.blobhashes_) {
+ messages_(from.messages_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_messageid().empty()) {
- messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(),
- GetArena());
- }
- todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_todeviceid().empty()) {
- todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_todeviceid(),
- GetArena());
- }
- payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_payload().empty()) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbrokerStruct)
-}
-
-void MessageToTunnelbrokerStruct::SharedCtor() {
-messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-MessageToTunnelbrokerStruct::~MessageToTunnelbrokerStruct() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbrokerStruct)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessageToTunnelbrokerStruct::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- todeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-void MessageToTunnelbrokerStruct::ArenaDtor(void* object) {
- MessageToTunnelbrokerStruct* _this = reinterpret_cast< MessageToTunnelbrokerStruct* >(object);
- (void)_this;
-}
-void MessageToTunnelbrokerStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessageToTunnelbrokerStruct::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessageToTunnelbrokerStruct::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbrokerStruct)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- blobhashes_.Clear();
- messageid_.ClearToEmpty();
- todeviceid_.ClearToEmpty();
- payload_.ClearToEmpty();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessageToTunnelbrokerStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // string messageID = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_messageid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.messageID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string toDeviceID = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_todeviceid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string payload = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_payload();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.payload"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // repeated string blobHashes = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- ptr -= 1;
- do {
- ptr += 1;
- auto str = _internal_add_blobhashes();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes"));
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbrokerStruct::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbrokerStruct)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string messageID = 1;
- if (this->messageid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_messageid().data(), static_cast<int>(this->_internal_messageid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToTunnelbrokerStruct.messageID");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_messageid(), target);
- }
-
- // string toDeviceID = 2;
- if (this->todeviceid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_todeviceid().data(), static_cast<int>(this->_internal_todeviceid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_todeviceid(), target);
- }
-
- // string payload = 3;
- if (this->payload().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_payload().data(), static_cast<int>(this->_internal_payload().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToTunnelbrokerStruct.payload");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_payload(), target);
- }
-
- // repeated string blobHashes = 4;
- for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
- const auto& s = this->_internal_blobhashes(i);
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- s.data(), static_cast<int>(s.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes");
- target = stream->WriteString(4, s, target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbrokerStruct)
- return target;
-}
-
-size_t MessageToTunnelbrokerStruct::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbrokerStruct)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // repeated string blobHashes = 4;
- total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
- for (int i = 0, n = blobhashes_.size(); i < n; i++) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- blobhashes_.Get(i));
- }
-
- // string messageID = 1;
- if (this->messageid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_messageid());
- }
-
- // string toDeviceID = 2;
- if (this->todeviceid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_todeviceid());
- }
-
- // string payload = 3;
- if (this->payload().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_payload());
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessageToTunnelbrokerStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageToTunnelbrokerStruct* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToTunnelbrokerStruct>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbrokerStruct)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbrokerStruct)
- MergeFrom(*source);
- }
-}
-
-void MessageToTunnelbrokerStruct::MergeFrom(const MessageToTunnelbrokerStruct& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- blobhashes_.MergeFrom(from.blobhashes_);
- if (from.messageid().size() > 0) {
- _internal_set_messageid(from._internal_messageid());
- }
- if (from.todeviceid().size() > 0) {
- _internal_set_todeviceid(from._internal_todeviceid());
- }
- if (from.payload().size() > 0) {
- _internal_set_payload(from._internal_payload());
- }
-}
-
-void MessageToTunnelbrokerStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessageToTunnelbrokerStruct::CopyFrom(const MessageToTunnelbrokerStruct& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToTunnelbrokerStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessageToTunnelbrokerStruct::IsInitialized() const {
- return true;
-}
-
-void MessageToTunnelbrokerStruct::InternalSwap(MessageToTunnelbrokerStruct* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- blobhashes_.InternalSwap(&other->blobhashes_);
- messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- todeviceid_.Swap(&other->todeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbrokerStruct::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class MessagesToSend::_Internal {
- public:
-};
-
-MessagesToSend::MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- messages_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToSend)
-}
-MessagesToSend::MessagesToSend(const MessagesToSend& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- messages_(from.messages_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToSend)
-}
-
-void MessagesToSend::SharedCtor() {
-}
-
-MessagesToSend::~MessagesToSend() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToSend)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessagesToSend::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
-}
-
-void MessagesToSend::ArenaDtor(void* object) {
- MessagesToSend* _this = reinterpret_cast< MessagesToSend* >(object);
- (void)_this;
-}
-void MessagesToSend::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessagesToSend::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessagesToSend::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToSend)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- messages_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessagesToSend::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_messages(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessagesToSend::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToSend)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_messages_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_messages(i), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToSend)
- return target;
-}
-
-size_t MessagesToSend::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToSend)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1;
- total_size += 1UL * this->_internal_messages_size();
- for (const auto& msg : this->messages_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessagesToSend::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToSend)
- GOOGLE_DCHECK_NE(&from, this);
- const MessagesToSend* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessagesToSend>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToSend)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToSend)
- MergeFrom(*source);
- }
-}
-
-void MessagesToSend::MergeFrom(const MessagesToSend& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToSend)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- messages_.MergeFrom(from.messages_);
-}
-
-void MessagesToSend::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToSend)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessagesToSend::CopyFrom(const MessagesToSend& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessagesToSend)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessagesToSend::IsInitialized() const {
- return true;
-}
-
-void MessagesToSend::InternalSwap(MessagesToSend* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- messages_.InternalSwap(&other->messages_);
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessagesToSend::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class MessageToTunnelbroker::_Internal {
- public:
- static const ::tunnelbroker::MessagesToSend& messagestosend(const MessageToTunnelbroker* msg);
- static const ::tunnelbroker::ProcessedMessages& processedmessages(const MessageToTunnelbroker* msg);
-};
-
-const ::tunnelbroker::MessagesToSend&
-MessageToTunnelbroker::_Internal::messagestosend(const MessageToTunnelbroker* msg) {
- return *msg->data_.messagestosend_;
-}
-const ::tunnelbroker::ProcessedMessages&
-MessageToTunnelbroker::_Internal::processedmessages(const MessageToTunnelbroker* msg) {
- return *msg->data_.processedmessages_;
-}
-void MessageToTunnelbroker::set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (messagestosend) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestosend);
- if (message_arena != submessage_arena) {
- messagestosend = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messagestosend, submessage_arena);
- }
- set_has_messagestosend();
- data_.messagestosend_ = messagestosend;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.messagesToSend)
-}
-void MessageToTunnelbroker::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (processedmessages) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages);
- if (message_arena != submessage_arena) {
- processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, processedmessages, submessage_arena);
- }
- set_has_processedmessages();
- data_.processedmessages_ = processedmessages;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.processedMessages)
-}
-MessageToTunnelbroker::MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbroker)
-}
-MessageToTunnelbroker::MessageToTunnelbroker(const MessageToTunnelbroker& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- clear_has_data();
- switch (from.data_case()) {
- case kMessagesToSend: {
- _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend());
- break;
- }
- case kProcessedMessages: {
- _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
- break;
- }
- case kNewNotifyToken: {
- _internal_set_newnotifytoken(from._internal_newnotifytoken());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbroker)
-}
-
-void MessageToTunnelbroker::SharedCtor() {
-clear_has_data();
-}
-
-MessageToTunnelbroker::~MessageToTunnelbroker() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbroker)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessageToTunnelbroker::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- if (has_data()) {
- clear_data();
- }
-}
-
-void MessageToTunnelbroker::ArenaDtor(void* object) {
- MessageToTunnelbroker* _this = reinterpret_cast< MessageToTunnelbroker* >(object);
- (void)_this;
-}
-void MessageToTunnelbroker::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessageToTunnelbroker::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessageToTunnelbroker::clear_data() {
-// @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToTunnelbroker)
- switch (data_case()) {
- case kMessagesToSend: {
- if (GetArena() == nullptr) {
- delete data_.messagestosend_;
- }
- break;
- }
- case kProcessedMessages: {
- if (GetArena() == nullptr) {
- delete data_.processedmessages_;
- }
- break;
- }
- case kNewNotifyToken: {
- data_.newnotifytoken_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- _oneof_case_[0] = DATA_NOT_SET;
-}
-
-
-void MessageToTunnelbroker::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbroker)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- clear_data();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessageToTunnelbroker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // .tunnelbroker.MessagesToSend messagesToSend = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messagestosend(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string newNotifyToken = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_newnotifytoken();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbroker.newNotifyToken"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbroker::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbroker)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // .tunnelbroker.MessagesToSend messagesToSend = 1;
- if (_internal_has_messagestosend()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 1, _Internal::messagestosend(this), target, stream);
- }
-
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- if (_internal_has_processedmessages()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 2, _Internal::processedmessages(this), target, stream);
- }
-
- // string newNotifyToken = 3;
- if (_internal_has_newnotifytoken()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_newnotifytoken().data(), static_cast<int>(this->_internal_newnotifytoken().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToTunnelbroker.newNotifyToken");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_newnotifytoken(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbroker)
- return target;
-}
-
-size_t MessageToTunnelbroker::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbroker)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- switch (data_case()) {
- // .tunnelbroker.MessagesToSend messagesToSend = 1;
- case kMessagesToSend: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.messagestosend_);
- break;
- }
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- case kProcessedMessages: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.processedmessages_);
- break;
- }
- // string newNotifyToken = 3;
- case kNewNotifyToken: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_newnotifytoken());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessageToTunnelbroker::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbroker)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageToTunnelbroker* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToTunnelbroker>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbroker)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbroker)
- MergeFrom(*source);
- }
-}
-
-void MessageToTunnelbroker::MergeFrom(const MessageToTunnelbroker& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbroker)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- switch (from.data_case()) {
- case kMessagesToSend: {
- _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend());
- break;
- }
- case kProcessedMessages: {
- _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
- break;
- }
- case kNewNotifyToken: {
- _internal_set_newnotifytoken(from._internal_newnotifytoken());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
-}
-
-void MessageToTunnelbroker::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbroker)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessageToTunnelbroker::CopyFrom(const MessageToTunnelbroker& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToTunnelbroker)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessageToTunnelbroker::IsInitialized() const {
- return true;
-}
-
-void MessageToTunnelbroker::InternalSwap(MessageToTunnelbroker* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(data_, other->data_);
- swap(_oneof_case_[0], other->_oneof_case_[0]);
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbroker::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class MessageToClientStruct::_Internal {
- public:
-};
-
-MessageToClientStruct::MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- blobhashes_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClientStruct)
-}
-MessageToClientStruct::MessageToClientStruct(const MessageToClientStruct& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- blobhashes_(from.blobhashes_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_messageid().empty()) {
- messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(),
- GetArena());
- }
- fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_fromdeviceid().empty()) {
- fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fromdeviceid(),
- GetArena());
- }
- payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_payload().empty()) {
- payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClientStruct)
-}
-
-void MessageToClientStruct::SharedCtor() {
-messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-MessageToClientStruct::~MessageToClientStruct() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClientStruct)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessageToClientStruct::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- fromdeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-void MessageToClientStruct::ArenaDtor(void* object) {
- MessageToClientStruct* _this = reinterpret_cast< MessageToClientStruct* >(object);
- (void)_this;
-}
-void MessageToClientStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessageToClientStruct::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessageToClientStruct::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClientStruct)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- blobhashes_.Clear();
- messageid_.ClearToEmpty();
- fromdeviceid_.ClearToEmpty();
- payload_.ClearToEmpty();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessageToClientStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // string messageID = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_messageid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.messageID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string fromDeviceID = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_fromdeviceid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.fromDeviceID"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string payload = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_payload();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.payload"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // repeated string blobHashes = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- ptr -= 1;
- do {
- ptr += 1;
- auto str = _internal_add_blobhashes();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.blobHashes"));
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessageToClientStruct::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClientStruct)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string messageID = 1;
- if (this->messageid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_messageid().data(), static_cast<int>(this->_internal_messageid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToClientStruct.messageID");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_messageid(), target);
- }
-
- // string fromDeviceID = 2;
- if (this->fromdeviceid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_fromdeviceid().data(), static_cast<int>(this->_internal_fromdeviceid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToClientStruct.fromDeviceID");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_fromdeviceid(), target);
- }
-
- // string payload = 3;
- if (this->payload().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_payload().data(), static_cast<int>(this->_internal_payload().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToClientStruct.payload");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_payload(), target);
- }
-
- // repeated string blobHashes = 4;
- for (int i = 0, n = this->_internal_blobhashes_size(); i < n; i++) {
- const auto& s = this->_internal_blobhashes(i);
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- s.data(), static_cast<int>(s.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.MessageToClientStruct.blobHashes");
- target = stream->WriteString(4, s, target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClientStruct)
- return target;
-}
-
-size_t MessageToClientStruct::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClientStruct)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // repeated string blobHashes = 4;
- total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size());
- for (int i = 0, n = blobhashes_.size(); i < n; i++) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- blobhashes_.Get(i));
- }
-
- // string messageID = 1;
- if (this->messageid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_messageid());
- }
-
- // string fromDeviceID = 2;
- if (this->fromdeviceid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_fromdeviceid());
- }
-
- // string payload = 3;
- if (this->payload().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_payload());
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessageToClientStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClientStruct)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageToClientStruct* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToClientStruct>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClientStruct)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClientStruct)
- MergeFrom(*source);
- }
-}
-
-void MessageToClientStruct::MergeFrom(const MessageToClientStruct& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClientStruct)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- blobhashes_.MergeFrom(from.blobhashes_);
- if (from.messageid().size() > 0) {
- _internal_set_messageid(from._internal_messageid());
- }
- if (from.fromdeviceid().size() > 0) {
- _internal_set_fromdeviceid(from._internal_fromdeviceid());
- }
- if (from.payload().size() > 0) {
- _internal_set_payload(from._internal_payload());
- }
-}
-
-void MessageToClientStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClientStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessageToClientStruct::CopyFrom(const MessageToClientStruct& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToClientStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessageToClientStruct::IsInitialized() const {
- return true;
-}
-
-void MessageToClientStruct::InternalSwap(MessageToClientStruct* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- blobhashes_.InternalSwap(&other->blobhashes_);
- messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- fromdeviceid_.Swap(&other->fromdeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessageToClientStruct::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class MessagesToDeliver::_Internal {
- public:
-};
-
-MessagesToDeliver::MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- messages_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToDeliver)
-}
-MessagesToDeliver::MessagesToDeliver(const MessagesToDeliver& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- messages_(from.messages_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToDeliver)
-}
-
-void MessagesToDeliver::SharedCtor() {
-}
-
-MessagesToDeliver::~MessagesToDeliver() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToDeliver)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessagesToDeliver::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
-}
-
-void MessagesToDeliver::ArenaDtor(void* object) {
- MessagesToDeliver* _this = reinterpret_cast< MessagesToDeliver* >(object);
- (void)_this;
-}
-void MessagesToDeliver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessagesToDeliver::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessagesToDeliver::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToDeliver)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- messages_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessagesToDeliver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // repeated .tunnelbroker.MessageToClientStruct messages = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_messages(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessagesToDeliver::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToDeliver)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // repeated .tunnelbroker.MessageToClientStruct messages = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_messages_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_messages(i), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToDeliver)
- return target;
-}
-
-size_t MessagesToDeliver::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToDeliver)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // repeated .tunnelbroker.MessageToClientStruct messages = 1;
- total_size += 1UL * this->_internal_messages_size();
- for (const auto& msg : this->messages_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessagesToDeliver::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToDeliver)
- GOOGLE_DCHECK_NE(&from, this);
- const MessagesToDeliver* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessagesToDeliver>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToDeliver)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToDeliver)
- MergeFrom(*source);
- }
-}
-
-void MessagesToDeliver::MergeFrom(const MessagesToDeliver& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToDeliver)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- messages_.MergeFrom(from.messages_);
-}
-
-void MessagesToDeliver::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToDeliver)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessagesToDeliver::CopyFrom(const MessagesToDeliver& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessagesToDeliver)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessagesToDeliver::IsInitialized() const {
- return true;
-}
-
-void MessagesToDeliver::InternalSwap(MessagesToDeliver* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- messages_.InternalSwap(&other->messages_);
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessagesToDeliver::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class MessageToClient::_Internal {
- public:
- static const ::tunnelbroker::MessagesToDeliver& messagestodeliver(const MessageToClient* msg);
- static const ::tunnelbroker::ProcessedMessages& processedmessages(const MessageToClient* msg);
- static const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired(const MessageToClient* msg);
- static const PROTOBUF_NAMESPACE_ID::Empty& ping(const MessageToClient* msg);
-};
-
-const ::tunnelbroker::MessagesToDeliver&
-MessageToClient::_Internal::messagestodeliver(const MessageToClient* msg) {
- return *msg->data_.messagestodeliver_;
-}
-const ::tunnelbroker::ProcessedMessages&
-MessageToClient::_Internal::processedmessages(const MessageToClient* msg) {
- return *msg->data_.processedmessages_;
-}
-const PROTOBUF_NAMESPACE_ID::Empty&
-MessageToClient::_Internal::newnotifytokenrequired(const MessageToClient* msg) {
- return *msg->data_.newnotifytokenrequired_;
-}
-const PROTOBUF_NAMESPACE_ID::Empty&
-MessageToClient::_Internal::ping(const MessageToClient* msg) {
- return *msg->data_.ping_;
-}
-void MessageToClient::set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (messagestodeliver) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestodeliver);
- if (message_arena != submessage_arena) {
- messagestodeliver = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messagestodeliver, submessage_arena);
- }
- set_has_messagestodeliver();
- data_.messagestodeliver_ = messagestodeliver;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.messagesToDeliver)
-}
-void MessageToClient::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (processedmessages) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages);
- if (message_arena != submessage_arena) {
- processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, processedmessages, submessage_arena);
- }
- set_has_processedmessages();
- data_.processedmessages_ = processedmessages;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.processedMessages)
-}
-void MessageToClient::set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (newnotifytokenrequired) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(newnotifytokenrequired)->GetArena();
- if (message_arena != submessage_arena) {
- newnotifytokenrequired = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, newnotifytokenrequired, submessage_arena);
- }
- set_has_newnotifytokenrequired();
- data_.newnotifytokenrequired_ = newnotifytokenrequired;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.newNotifyTokenRequired)
-}
-void MessageToClient::clear_newnotifytokenrequired() {
- if (_internal_has_newnotifytokenrequired()) {
- if (GetArena() == nullptr) {
- delete data_.newnotifytokenrequired_;
- }
- clear_has_data();
- }
-}
-void MessageToClient::set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- clear_data();
- if (ping) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ping)->GetArena();
- if (message_arena != submessage_arena) {
- ping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, ping, submessage_arena);
- }
- set_has_ping();
- data_.ping_ = ping;
- }
- // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.ping)
-}
-void MessageToClient::clear_ping() {
- if (_internal_has_ping()) {
- if (GetArena() == nullptr) {
- delete data_.ping_;
- }
- clear_has_data();
- }
-}
-MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClient)
-}
-MessageToClient::MessageToClient(const MessageToClient& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- clear_has_data();
- switch (from.data_case()) {
- case kMessagesToDeliver: {
- _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver());
- break;
- }
- case kProcessedMessages: {
- _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
- break;
- }
- case kNewNotifyTokenRequired: {
- _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
- break;
- }
- case kPing: {
- _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClient)
-}
-
-void MessageToClient::SharedCtor() {
-clear_has_data();
-}
-
-MessageToClient::~MessageToClient() {
- // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClient)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void MessageToClient::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- if (has_data()) {
- clear_data();
- }
-}
-
-void MessageToClient::ArenaDtor(void* object) {
- MessageToClient* _this = reinterpret_cast< MessageToClient* >(object);
- (void)_this;
-}
-void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void MessageToClient::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void MessageToClient::clear_data() {
-// @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToClient)
- switch (data_case()) {
- case kMessagesToDeliver: {
- if (GetArena() == nullptr) {
- delete data_.messagestodeliver_;
- }
- break;
- }
- case kProcessedMessages: {
- if (GetArena() == nullptr) {
- delete data_.processedmessages_;
- }
- break;
- }
- case kNewNotifyTokenRequired: {
- if (GetArena() == nullptr) {
- delete data_.newnotifytokenrequired_;
- }
- break;
- }
- case kPing: {
- if (GetArena() == nullptr) {
- delete data_.ping_;
- }
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- _oneof_case_[0] = DATA_NOT_SET;
-}
-
-
-void MessageToClient::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClient)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- clear_data();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messagestodeliver(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_newnotifytokenrequired(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.Empty ping = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_ping(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* MessageToClient::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClient)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
- if (_internal_has_messagestodeliver()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 1, _Internal::messagestodeliver(this), target, stream);
- }
-
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- if (_internal_has_processedmessages()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 2, _Internal::processedmessages(this), target, stream);
- }
-
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- if (_internal_has_newnotifytokenrequired()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 3, _Internal::newnotifytokenrequired(this), target, stream);
- }
-
- // .google.protobuf.Empty ping = 4;
- if (_internal_has_ping()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 4, _Internal::ping(this), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClient)
- return target;
-}
-
-size_t MessageToClient::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClient)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- switch (data_case()) {
- // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
- case kMessagesToDeliver: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.messagestodeliver_);
- break;
- }
- // .tunnelbroker.ProcessedMessages processedMessages = 2;
- case kProcessedMessages: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.processedmessages_);
- break;
- }
- // .google.protobuf.Empty newNotifyTokenRequired = 3;
- case kNewNotifyTokenRequired: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.newnotifytokenrequired_);
- break;
- }
- // .google.protobuf.Empty ping = 4;
- case kPing: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *data_.ping_);
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void MessageToClient::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClient)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageToClient* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToClient>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClient)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClient)
- MergeFrom(*source);
- }
-}
-
-void MessageToClient::MergeFrom(const MessageToClient& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClient)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- switch (from.data_case()) {
- case kMessagesToDeliver: {
- _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver());
- break;
- }
- case kProcessedMessages: {
- _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
- break;
- }
- case kNewNotifyTokenRequired: {
- _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
- break;
- }
- case kPing: {
- _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
-}
-
-void MessageToClient::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClient)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void MessageToClient::CopyFrom(const MessageToClient& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToClient)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool MessageToClient::IsInitialized() const {
- return true;
-}
-
-void MessageToClient::InternalSwap(MessageToClient* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(data_, other->data_);
- swap(_oneof_case_[0], other->_oneof_case_[0]);
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class CheckRequest::_Internal {
- public:
-};
-
-CheckRequest::CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.CheckRequest)
-}
-CheckRequest::CheckRequest(const CheckRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_userid().empty()) {
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(),
- GetArena());
- }
- devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_devicetoken().empty()) {
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.CheckRequest)
-}
-
-void CheckRequest::SharedCtor() {
-userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-CheckRequest::~CheckRequest() {
- // @@protoc_insertion_point(destructor:tunnelbroker.CheckRequest)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void CheckRequest::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-}
-
-void CheckRequest::ArenaDtor(void* object) {
- CheckRequest* _this = reinterpret_cast< CheckRequest* >(object);
- (void)_this;
-}
-void CheckRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void CheckRequest::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void CheckRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.CheckRequest)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- userid_.ClearToEmpty();
- devicetoken_.ClearToEmpty();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* CheckRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // string userId = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_userid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.CheckRequest.userId"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string deviceToken = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_devicetoken();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.CheckRequest.deviceToken"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* CheckRequest::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.CheckRequest)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string userId = 1;
- if (this->userid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_userid().data(), static_cast<int>(this->_internal_userid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.CheckRequest.userId");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_userid(), target);
- }
-
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_devicetoken().data(), static_cast<int>(this->_internal_devicetoken().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.CheckRequest.deviceToken");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_devicetoken(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.CheckRequest)
- return target;
-}
-
-size_t CheckRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.CheckRequest)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // string userId = 1;
- if (this->userid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_userid());
- }
-
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_devicetoken());
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void CheckRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.CheckRequest)
- GOOGLE_DCHECK_NE(&from, this);
- const CheckRequest* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CheckRequest>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.CheckRequest)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.CheckRequest)
- MergeFrom(*source);
- }
-}
-
-void CheckRequest::MergeFrom(const CheckRequest& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckRequest)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.userid().size() > 0) {
- _internal_set_userid(from._internal_userid());
- }
- if (from.devicetoken().size() > 0) {
- _internal_set_devicetoken(from._internal_devicetoken());
- }
-}
-
-void CheckRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.CheckRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void CheckRequest::CopyFrom(const CheckRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.CheckRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool CheckRequest::IsInitialized() const {
- return true;
-}
-
-void CheckRequest::InternalSwap(CheckRequest* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata CheckRequest::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class CheckResponse::_Internal {
- public:
-};
-
-CheckResponse::CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.CheckResponse)
-}
-CheckResponse::CheckResponse(const CheckResponse& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- checkresponsetype_ = from.checkresponsetype_;
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.CheckResponse)
-}
-
-void CheckResponse::SharedCtor() {
-checkresponsetype_ = 0;
-}
-
-CheckResponse::~CheckResponse() {
- // @@protoc_insertion_point(destructor:tunnelbroker.CheckResponse)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void CheckResponse::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
-}
-
-void CheckResponse::ArenaDtor(void* object) {
- CheckResponse* _this = reinterpret_cast< CheckResponse* >(object);
- (void)_this;
-}
-void CheckResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void CheckResponse::SetCachedSize(int size) const {
- _cached_size_.Set(size);
-}
-
-void CheckResponse::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.CheckResponse)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- checkresponsetype_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* CheckResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // .tunnelbroker.CheckResponseType checkResponseType = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_checkresponsetype(static_cast<::tunnelbroker::CheckResponseType>(val));
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
-}
-
-::PROTOBUF_NAMESPACE_ID::uint8* CheckResponse::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.CheckResponse)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // .tunnelbroker.CheckResponseType checkResponseType = 1;
- if (this->checkresponsetype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_checkresponsetype(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.CheckResponse)
- return target;
-}
-
-size_t CheckResponse::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.CheckResponse)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // .tunnelbroker.CheckResponseType checkResponseType = 1;
- if (this->checkresponsetype() != 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_checkresponsetype());
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
-}
-
-void CheckResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.CheckResponse)
- GOOGLE_DCHECK_NE(&from, this);
- const CheckResponse* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CheckResponse>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.CheckResponse)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.CheckResponse)
- MergeFrom(*source);
- }
-}
-
-void CheckResponse::MergeFrom(const CheckResponse& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckResponse)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.checkresponsetype() != 0) {
- _internal_set_checkresponsetype(from._internal_checkresponsetype());
- }
-}
-
-void CheckResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.CheckResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void CheckResponse::CopyFrom(const CheckResponse& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.CheckResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool CheckResponse::IsInitialized() const {
- return true;
-}
-
-void CheckResponse::InternalSwap(CheckResponse* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(checkresponsetype_, other->checkresponsetype_);
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata CheckResponse::GetMetadata() const {
- return GetMetadataStatic();
-}
-
-
-// ===================================================================
-
-class NewPrimaryRequest::_Internal {
- public:
-};
-
-NewPrimaryRequest::NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewPrimaryRequest)
-}
-NewPrimaryRequest::NewPrimaryRequest(const NewPrimaryRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_userid().empty()) {
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(),
- GetArena());
- }
- devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_devicetoken().empty()) {
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewPrimaryRequest)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToDeliver)
}
-void NewPrimaryRequest::SharedCtor() {
-userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+void MessagesToDeliver::SharedCtor() {
}
-NewPrimaryRequest::~NewPrimaryRequest() {
- // @@protoc_insertion_point(destructor:tunnelbroker.NewPrimaryRequest)
+MessagesToDeliver::~MessagesToDeliver() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToDeliver)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void NewPrimaryRequest::SharedDtor() {
+void MessagesToDeliver::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
- userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-void NewPrimaryRequest::ArenaDtor(void* object) {
- NewPrimaryRequest* _this = reinterpret_cast< NewPrimaryRequest* >(object);
+void MessagesToDeliver::ArenaDtor(void* object) {
+ MessagesToDeliver* _this = reinterpret_cast< MessagesToDeliver* >(object);
(void)_this;
}
-void NewPrimaryRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessagesToDeliver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void NewPrimaryRequest::SetCachedSize(int size) const {
+void MessagesToDeliver::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void NewPrimaryRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.NewPrimaryRequest)
+void MessagesToDeliver::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToDeliver)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- userid_.ClearToEmpty();
- devicetoken_.ClearToEmpty();
+ messages_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* NewPrimaryRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessagesToDeliver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // string userId = 1;
+ // repeated .tunnelbroker.MessageToClientStruct messages = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_userid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.userId"));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // string deviceToken = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_devicetoken();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.deviceToken"));
- CHK_(ptr);
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_messages(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
default: {
@@ -5401,60 +2865,41 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* NewPrimaryRequest::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessagesToDeliver::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewPrimaryRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToDeliver)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // string userId = 1;
- if (this->userid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_userid().data(), static_cast<int>(this->_internal_userid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.NewPrimaryRequest.userId");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_userid(), target);
- }
-
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_devicetoken().data(), static_cast<int>(this->_internal_devicetoken().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.NewPrimaryRequest.deviceToken");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_devicetoken(), target);
+ // repeated .tunnelbroker.MessageToClientStruct messages = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_messages_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_messages(i), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewPrimaryRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToDeliver)
return target;
}
-size_t NewPrimaryRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewPrimaryRequest)
+size_t MessagesToDeliver::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToDeliver)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // string userId = 1;
- if (this->userid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_userid());
- }
-
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_devicetoken());
+ // repeated .tunnelbroker.MessageToClientStruct messages = 1;
+ total_size += 1UL * this->_internal_messages_size();
+ for (const auto& msg : this->messages_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -5466,341 +2911,300 @@
return total_size;
}
-void NewPrimaryRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewPrimaryRequest)
+void MessagesToDeliver::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToDeliver)
GOOGLE_DCHECK_NE(&from, this);
- const NewPrimaryRequest* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NewPrimaryRequest>(
+ const MessagesToDeliver* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessagesToDeliver>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewPrimaryRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToDeliver)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewPrimaryRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToDeliver)
MergeFrom(*source);
}
}
-void NewPrimaryRequest::MergeFrom(const NewPrimaryRequest& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryRequest)
+void MessagesToDeliver::MergeFrom(const MessagesToDeliver& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToDeliver)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- if (from.userid().size() > 0) {
- _internal_set_userid(from._internal_userid());
- }
- if (from.devicetoken().size() > 0) {
- _internal_set_devicetoken(from._internal_devicetoken());
- }
+ messages_.MergeFrom(from.messages_);
}
-void NewPrimaryRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewPrimaryRequest)
+void MessagesToDeliver::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToDeliver)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void NewPrimaryRequest::CopyFrom(const NewPrimaryRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.NewPrimaryRequest)
+void MessagesToDeliver::CopyFrom(const MessagesToDeliver& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessagesToDeliver)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool NewPrimaryRequest::IsInitialized() const {
+bool MessagesToDeliver::IsInitialized() const {
return true;
}
-void NewPrimaryRequest::InternalSwap(NewPrimaryRequest* other) {
+void MessagesToDeliver::InternalSwap(MessagesToDeliver* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ messages_.InternalSwap(&other->messages_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata NewPrimaryRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessagesToDeliver::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
-class NewPrimaryResponse::_Internal {
+class MessageToClient::_Internal {
public:
+ static const ::tunnelbroker::MessagesToDeliver& messagestodeliver(const MessageToClient* msg);
+ static const ::tunnelbroker::ProcessedMessages& processedmessages(const MessageToClient* msg);
+ static const PROTOBUF_NAMESPACE_ID::Empty& newnotifytokenrequired(const MessageToClient* msg);
+ static const PROTOBUF_NAMESPACE_ID::Empty& ping(const MessageToClient* msg);
};
-NewPrimaryResponse::NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewPrimaryResponse)
-}
-NewPrimaryResponse::NewPrimaryResponse(const NewPrimaryResponse& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- success_ = from.success_;
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewPrimaryResponse)
-}
-
-void NewPrimaryResponse::SharedCtor() {
-success_ = false;
-}
-
-NewPrimaryResponse::~NewPrimaryResponse() {
- // @@protoc_insertion_point(destructor:tunnelbroker.NewPrimaryResponse)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-void NewPrimaryResponse::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
-}
-
-void NewPrimaryResponse::ArenaDtor(void* object) {
- NewPrimaryResponse* _this = reinterpret_cast< NewPrimaryResponse* >(object);
- (void)_this;
-}
-void NewPrimaryResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
-}
-void NewPrimaryResponse::SetCachedSize(int size) const {
- _cached_size_.Set(size);
+const ::tunnelbroker::MessagesToDeliver&
+MessageToClient::_Internal::messagestodeliver(const MessageToClient* msg) {
+ return *msg->data_.messagestodeliver_;
}
-
-void NewPrimaryResponse::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.NewPrimaryResponse)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- success_ = false;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+const ::tunnelbroker::ProcessedMessages&
+MessageToClient::_Internal::processedmessages(const MessageToClient* msg) {
+ return *msg->data_.processedmessages_;
}
-
-const char* NewPrimaryResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // bool success = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
-success:
- return ptr;
-failure:
- ptr = nullptr;
- goto success;
-#undef CHK_
+const PROTOBUF_NAMESPACE_ID::Empty&
+MessageToClient::_Internal::newnotifytokenrequired(const MessageToClient* msg) {
+ return *msg->data_.newnotifytokenrequired_;
}
-
-::PROTOBUF_NAMESPACE_ID::uint8* NewPrimaryResponse::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewPrimaryResponse)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // bool success = 1;
- if (this->success() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewPrimaryResponse)
- return target;
+const PROTOBUF_NAMESPACE_ID::Empty&
+MessageToClient::_Internal::ping(const MessageToClient* msg) {
+ return *msg->data_.ping_;
}
-
-size_t NewPrimaryResponse::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewPrimaryResponse)
- size_t total_size = 0;
-
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- // bool success = 1;
- if (this->success() != 0) {
- total_size += 1 + 1;
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
+void MessageToClient::set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
+ clear_data();
+ if (messagestodeliver) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestodeliver);
+ if (message_arena != submessage_arena) {
+ messagestodeliver = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, messagestodeliver, submessage_arena);
+ }
+ set_has_messagestodeliver();
+ data_.messagestodeliver_ = messagestodeliver;
}
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.messagesToDeliver)
}
-
-void NewPrimaryResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewPrimaryResponse)
- GOOGLE_DCHECK_NE(&from, this);
- const NewPrimaryResponse* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NewPrimaryResponse>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewPrimaryResponse)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewPrimaryResponse)
- MergeFrom(*source);
+void MessageToClient::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
+ clear_data();
+ if (processedmessages) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages);
+ if (message_arena != submessage_arena) {
+ processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, processedmessages, submessage_arena);
+ }
+ set_has_processedmessages();
+ data_.processedmessages_ = processedmessages;
}
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.processedMessages)
}
-
-void NewPrimaryResponse::MergeFrom(const NewPrimaryResponse& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryResponse)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.success() != 0) {
- _internal_set_success(from._internal_success());
+void MessageToClient::set_allocated_newnotifytokenrequired(PROTOBUF_NAMESPACE_ID::Empty* newnotifytokenrequired) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
+ clear_data();
+ if (newnotifytokenrequired) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(newnotifytokenrequired)->GetArena();
+ if (message_arena != submessage_arena) {
+ newnotifytokenrequired = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, newnotifytokenrequired, submessage_arena);
+ }
+ set_has_newnotifytokenrequired();
+ data_.newnotifytokenrequired_ = newnotifytokenrequired;
}
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.newNotifyTokenRequired)
}
-
-void NewPrimaryResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewPrimaryResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void NewPrimaryResponse::CopyFrom(const NewPrimaryResponse& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.NewPrimaryResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool NewPrimaryResponse::IsInitialized() const {
- return true;
-}
-
-void NewPrimaryResponse::InternalSwap(NewPrimaryResponse* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(success_, other->success_);
+void MessageToClient::clear_newnotifytokenrequired() {
+ if (_internal_has_newnotifytokenrequired()) {
+ if (GetArena() == nullptr) {
+ delete data_.newnotifytokenrequired_;
+ }
+ clear_has_data();
+ }
}
-
-::PROTOBUF_NAMESPACE_ID::Metadata NewPrimaryResponse::GetMetadata() const {
- return GetMetadataStatic();
+void MessageToClient::set_allocated_ping(PROTOBUF_NAMESPACE_ID::Empty* ping) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
+ clear_data();
+ if (ping) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ping)->GetArena();
+ if (message_arena != submessage_arena) {
+ ping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, ping, submessage_arena);
+ }
+ set_has_ping();
+ data_.ping_ = ping;
+ }
+ // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.ping)
}
-
-
-// ===================================================================
-
-class PongRequest::_Internal {
- public:
-};
-
-PongRequest::PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+void MessageToClient::clear_ping() {
+ if (_internal_has_ping()) {
+ if (GetArena() == nullptr) {
+ delete data_.ping_;
+ }
+ clear_has_data();
+ }
+}
+MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor();
RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClient)
}
-PongRequest::PongRequest(const PongRequest& from)
+MessageToClient::MessageToClient(const MessageToClient& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_userid().empty()) {
- userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(),
- GetArena());
- }
- devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from._internal_devicetoken().empty()) {
- devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(),
- GetArena());
+ clear_has_data();
+ switch (from.data_case()) {
+ case kMessagesToDeliver: {
+ _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver());
+ break;
+ }
+ case kProcessedMessages: {
+ _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
+ break;
+ }
+ case kNewNotifyTokenRequired: {
+ _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
+ break;
+ }
+ case kPing: {
+ _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
+ break;
+ }
+ case DATA_NOT_SET: {
+ break;
+ }
}
- // @@protoc_insertion_point(copy_constructor:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClient)
}
-void PongRequest::SharedCtor() {
-userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
-devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+void MessageToClient::SharedCtor() {
+clear_has_data();
}
-PongRequest::~PongRequest() {
- // @@protoc_insertion_point(destructor:tunnelbroker.PongRequest)
+MessageToClient::~MessageToClient() {
+ // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClient)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-void PongRequest::SharedDtor() {
+void MessageToClient::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
- userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (has_data()) {
+ clear_data();
+ }
}
-void PongRequest::ArenaDtor(void* object) {
- PongRequest* _this = reinterpret_cast< PongRequest* >(object);
+void MessageToClient::ArenaDtor(void* object) {
+ MessageToClient* _this = reinterpret_cast< MessageToClient* >(object);
(void)_this;
}
-void PongRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
-void PongRequest::SetCachedSize(int size) const {
+void MessageToClient::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-void PongRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:tunnelbroker.PongRequest)
+void MessageToClient::clear_data() {
+// @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToClient)
+ switch (data_case()) {
+ case kMessagesToDeliver: {
+ if (GetArena() == nullptr) {
+ delete data_.messagestodeliver_;
+ }
+ break;
+ }
+ case kProcessedMessages: {
+ if (GetArena() == nullptr) {
+ delete data_.processedmessages_;
+ }
+ break;
+ }
+ case kNewNotifyTokenRequired: {
+ if (GetArena() == nullptr) {
+ delete data_.newnotifytokenrequired_;
+ }
+ break;
+ }
+ case kPing: {
+ if (GetArena() == nullptr) {
+ delete data_.ping_;
+ }
+ break;
+ }
+ case DATA_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = DATA_NOT_SET;
+}
+
+
+void MessageToClient::Clear() {
+// @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClient)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- userid_.ClearToEmpty();
- devicetoken_.ClearToEmpty();
+ clear_data();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* PongRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
- // string userId = 1;
+ // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_userid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.PongRequest.userId"));
+ ptr = ctx->ParseMessage(_internal_mutable_messagestodeliver(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
- // string deviceToken = 2;
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- auto str = _internal_mutable_devicetoken();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.PongRequest.deviceToken"));
+ ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // .google.protobuf.Empty newNotifyTokenRequired = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_newnotifytokenrequired(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // .google.protobuf.Empty ping = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ ptr = ctx->ParseMessage(_internal_mutable_ping(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
@@ -5826,62 +3230,93 @@
#undef CHK_
}
-::PROTOBUF_NAMESPACE_ID::uint8* PongRequest::_InternalSerialize(
+::PROTOBUF_NAMESPACE_ID::uint8* MessageToClient::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClient)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- // string userId = 1;
- if (this->userid().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_userid().data(), static_cast<int>(this->_internal_userid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.PongRequest.userId");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_userid(), target);
+ // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
+ if (_internal_has_messagestodeliver()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::messagestodeliver(this), target, stream);
}
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_devicetoken().data(), static_cast<int>(this->_internal_devicetoken().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "tunnelbroker.PongRequest.deviceToken");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_devicetoken(), target);
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ if (_internal_has_processedmessages()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::processedmessages(this), target, stream);
+ }
+
+ // .google.protobuf.Empty newNotifyTokenRequired = 3;
+ if (_internal_has_newnotifytokenrequired()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::newnotifytokenrequired(this), target, stream);
+ }
+
+ // .google.protobuf.Empty ping = 4;
+ if (_internal_has_ping()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 4, _Internal::ping(this), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClient)
return target;
}
-size_t PongRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.PongRequest)
+size_t MessageToClient::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClient)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // string userId = 1;
- if (this->userid().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_userid());
- }
-
- // string deviceToken = 2;
- if (this->devicetoken().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_devicetoken());
+ switch (data_case()) {
+ // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1;
+ case kMessagesToDeliver: {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *data_.messagestodeliver_);
+ break;
+ }
+ // .tunnelbroker.ProcessedMessages processedMessages = 2;
+ case kProcessedMessages: {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *data_.processedmessages_);
+ break;
+ }
+ // .google.protobuf.Empty newNotifyTokenRequired = 3;
+ case kNewNotifyTokenRequired: {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *data_.newnotifytokenrequired_);
+ break;
+ }
+ // .google.protobuf.Empty ping = 4;
+ case kPing: {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *data_.ping_);
+ break;
+ }
+ case DATA_NOT_SET: {
+ break;
+ }
}
-
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
@@ -5891,62 +3326,77 @@
return total_size;
}
-void PongRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.PongRequest)
+void MessageToClient::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClient)
GOOGLE_DCHECK_NE(&from, this);
- const PongRequest* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PongRequest>(
+ const MessageToClient* source =
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageToClient>(
&from);
if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClient)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.PongRequest)
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClient)
MergeFrom(*source);
}
}
-void PongRequest::MergeFrom(const PongRequest& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.PongRequest)
+void MessageToClient::MergeFrom(const MessageToClient& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClient)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
- if (from.userid().size() > 0) {
- _internal_set_userid(from._internal_userid());
- }
- if (from.devicetoken().size() > 0) {
- _internal_set_devicetoken(from._internal_devicetoken());
+ switch (from.data_case()) {
+ case kMessagesToDeliver: {
+ _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver());
+ break;
+ }
+ case kProcessedMessages: {
+ _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages());
+ break;
+ }
+ case kNewNotifyTokenRequired: {
+ _internal_mutable_newnotifytokenrequired()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_newnotifytokenrequired());
+ break;
+ }
+ case kPing: {
+ _internal_mutable_ping()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_ping());
+ break;
+ }
+ case DATA_NOT_SET: {
+ break;
+ }
}
}
-void PongRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.PongRequest)
+void MessageToClient::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClient)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-void PongRequest::CopyFrom(const PongRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.PongRequest)
+void MessageToClient::CopyFrom(const MessageToClient& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:tunnelbroker.MessageToClient)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool PongRequest::IsInitialized() const {
+bool MessageToClient::IsInitialized() const {
return true;
}
-void PongRequest::InternalSwap(PongRequest* other) {
+void MessageToClient::InternalSwap(MessageToClient* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
+ swap(data_, other->data_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
}
-::PROTOBUF_NAMESPACE_ID::Metadata PongRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const {
return GetMetadataStatic();
}
@@ -5966,18 +3416,6 @@
template<> PROTOBUF_NOINLINE ::tunnelbroker::NewSessionResponse* Arena::CreateMaybeMessage< ::tunnelbroker::NewSessionResponse >(Arena* arena) {
return Arena::CreateMessageInternal< ::tunnelbroker::NewSessionResponse >(arena);
}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::SendRequest* Arena::CreateMaybeMessage< ::tunnelbroker::SendRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::SendRequest >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::GetRequest* Arena::CreateMaybeMessage< ::tunnelbroker::GetRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::GetRequest >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::GetResponseMessage* Arena::CreateMaybeMessage< ::tunnelbroker::GetResponseMessage >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::GetResponseMessage >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::GetResponse* Arena::CreateMaybeMessage< ::tunnelbroker::GetResponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::GetResponse >(arena);
-}
template<> PROTOBUF_NOINLINE ::tunnelbroker::ProcessedMessages* Arena::CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(Arena* arena) {
return Arena::CreateMessageInternal< ::tunnelbroker::ProcessedMessages >(arena);
}
@@ -5999,21 +3437,6 @@
template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToClient* Arena::CreateMaybeMessage< ::tunnelbroker::MessageToClient >(Arena* arena) {
return Arena::CreateMessageInternal< ::tunnelbroker::MessageToClient >(arena);
}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckRequest* Arena::CreateMaybeMessage< ::tunnelbroker::CheckRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::CheckRequest >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckResponse* Arena::CreateMaybeMessage< ::tunnelbroker::CheckResponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::CheckResponse >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryRequest* Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::NewPrimaryRequest >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryResponse* Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryResponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::NewPrimaryResponse >(arena);
-}
-template<> PROTOBUF_NOINLINE ::tunnelbroker::PongRequest* Arena::CreateMaybeMessage< ::tunnelbroker::PongRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::tunnelbroker::PongRequest >(arena);
-}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
diff --git a/shared/protos/tunnelbroker.proto b/shared/protos/tunnelbroker.proto
--- a/shared/protos/tunnelbroker.proto
+++ b/shared/protos/tunnelbroker.proto
@@ -5,25 +5,8 @@
import "google/protobuf/empty.proto";
service TunnelbrokerService {
-
- // The old API service methods
- // to support the native client build
- // until we switch to the new one
-
- rpc CheckIfPrimaryDeviceOnline(CheckRequest) returns (CheckResponse) {}
- rpc BecomeNewPrimaryDevice(NewPrimaryRequest) returns (NewPrimaryResponse) {}
- rpc SendPong (PongRequest) returns (google.protobuf.Empty) {}
-
- // New API service methods
-
rpc SessionSignature(SessionSignatureRequest) returns (SessionSignatureResponse) {}
rpc NewSession(NewSessionRequest) returns (NewSessionResponse) {}
- rpc Send(SendRequest) returns (google.protobuf.Empty) {}
- rpc Get(GetRequest) returns (stream GetResponse) {}
-
- // Replacing Send and Get with a single bidirectional streaming RPC
- // The client should provide the valid `sessionID` identifier
- // from the `NewSession` in the stream request metadata
rpc MessagesStream(stream MessageToTunnelbroker) returns (stream MessageToClient) {}
}
@@ -57,36 +40,6 @@
string sessionID = 1;
}
-// Send payload to device
-
-message SendRequest {
- string sessionID = 1;
- string toDeviceID = 2;
- bytes payload = 3;
- repeated string blobHashes = 4;
-}
-
-// Get messages from devices
-
-message GetRequest {
- string sessionID = 1;
- optional string newNotifyToken = 2;
-}
-
-message GetResponseMessage {
- string fromDeviceID = 1;
- bytes payload = 2;
- repeated string blobHashes = 3;
-}
-
-message GetResponse {
- oneof data {
- GetResponseMessage responseMessage = 1;
- google.protobuf.Empty ping = 2;
- google.protobuf.Empty newNotifyTokenRequired = 3;
- }
-}
-
// Common messages structures for the MessagesStream
message ProcessedMessages {
@@ -135,35 +88,3 @@
google.protobuf.Empty ping = 4;
}
}
-
-// Old API structures
-
-enum CheckResponseType {
- PRIMARY_DOESNT_EXIST = 0;
- PRIMARY_ONLINE = 1;
- PRIMARY_OFFLINE = 2;
- CURRENT_IS_PRIMARY = 3;
-}
-
-message CheckRequest {
- string userId = 1;
- string deviceToken = 2;
-}
-
-message CheckResponse {
- CheckResponseType checkResponseType = 1;
-}
-
-message NewPrimaryRequest {
- string userId = 1;
- string deviceToken = 2;
-}
-
-message NewPrimaryResponse {
- bool success = 1;
-}
-
-message PongRequest {
- string userId = 1;
- string deviceToken = 2;
-}

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 3:19 AM (18 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690279
Default Alt Text
D5596.id18318.diff (574 KB)

Event Timeline