forked from Silverfish/proton-bridge
GODT-1847: add option to export TLS Certificates in GUI.
This commit is contained in:
@ -138,6 +138,7 @@ add_library(bridgepp
|
||||
bridgepp/BridgeUtils.cpp bridgepp/BridgeUtils.h
|
||||
bridgepp/Exception/Exception.h bridgepp/Exception/Exception.cpp
|
||||
bridgepp/GRPC/GRPCClient.cpp bridgepp/GRPC/GRPCClient.h
|
||||
bridgepp/GRPC/GRPCErrors.h bridgepp/GRPC/GRPCErrors.cpp
|
||||
bridgepp/GRPC/EventFactory.cpp bridgepp/GRPC/EventFactory.h
|
||||
bridgepp/GRPC/GRPCConfig.cpp bridgepp/GRPC/GRPCConfig.h
|
||||
bridgepp/GRPC/GRPCUtils.cpp bridgepp/GRPC/GRPCUtils.h
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
#include "GRPCClient.h"
|
||||
#include "GRPCUtils.h"
|
||||
#include "GRPCErrors.h"
|
||||
#include "../BridgeUtils.h"
|
||||
#include "../Exception/Exception.h"
|
||||
#include "../ProcessMonitor.h"
|
||||
@ -346,6 +347,15 @@ grpc::Status GRPCClient::reportBug(QString const &description, QString const &ad
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] folderPath of the folder where the TLS files should be stored.
|
||||
//****************************************************************************************************************************************************
|
||||
grpc::Status GRPCClient::exportTLSCertificates(QString const &folderPath)
|
||||
{
|
||||
return this->logGRPCCallStatus(this->setString(&Bridge::Stub::ExportTLSCertificates, folderPath), __FUNCTION__);
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[out] outIMAPPort The IMAP port.
|
||||
/// \param[out] outSMTPPort The SMTP port.
|
||||
@ -859,6 +869,9 @@ grpc::Status GRPCClient::runEventStreamReader()
|
||||
case grpc::StreamEvent::kUser:
|
||||
this->processUserEvent(event.user());
|
||||
break;
|
||||
case grpc::StreamEvent::kGenericError:
|
||||
this->processGenericErrorEvent(event.genericerror());
|
||||
break;
|
||||
default:
|
||||
this->logDebug(QString("Unknown stream event type: %1").arg(event.event_case()));
|
||||
}
|
||||
@ -1458,6 +1471,17 @@ void GRPCClient::processUserEvent(UserEvent const &event)
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
//
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCClient::processGenericErrorEvent(GenericErrorEvent const &event)
|
||||
{
|
||||
ErrorCode const code = event.code();
|
||||
this->logTrace(QString("Error event received (code = %1).").arg(qint32(code)));
|
||||
emit genericError(errorInfo(code));
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The context with the server token in the metadata
|
||||
//****************************************************************************************************************************************************
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
#include "../User/User.h"
|
||||
#include "../Log/Log.h"
|
||||
#include "GRPCConfig.h"
|
||||
#include "GRPCErrors.h"
|
||||
#include "bridge.grpc.pb.h"
|
||||
#include "grpc++/grpc++.h"
|
||||
|
||||
@ -76,6 +77,7 @@ public: // member functions.
|
||||
grpc::Status setColorSchemeName(QString const &name); ///< Performs the "setColorSchemeName' gRPC call.
|
||||
grpc::Status currentEmailClient(QString &outName); ///< Performs the 'currentEmailClient' gRPC call.
|
||||
grpc::Status reportBug(QString const &description, QString const &address, QString const &emailClient, bool includeLogs); ///< Performs the 'ReportBug' gRPC call.
|
||||
grpc::Status exportTLSCertificates(QString const &folderPath); ///< Performs the 'ExportTLSCertificates' gRPC call.
|
||||
grpc::Status quit(); ///< Perform the "Quit" gRPC call.
|
||||
grpc::Status restart(); ///< Performs the Restart gRPC call.
|
||||
grpc::Status triggerReset(); ///< Performs the triggerReset gRPC call.
|
||||
@ -198,6 +200,9 @@ signals: // mail related events
|
||||
void addressChangedLogout(QString const &address);
|
||||
void apiCertIssue();
|
||||
|
||||
signals: // errors events
|
||||
void genericError(ErrorInfo info);
|
||||
|
||||
public:
|
||||
bool isEventStreamActive() const; ///< Check if the event stream is active.
|
||||
grpc::Status runEventStreamReader(); ///< Retrieve and signal the events in the event stream.
|
||||
@ -231,6 +236,7 @@ private:
|
||||
void processKeychainEvent(grpc::KeychainEvent const &event); ///< Process a 'Keychain' event.
|
||||
void processMailEvent(grpc::MailEvent const &event); ///< Process a 'Mail' event.
|
||||
void processUserEvent(grpc::UserEvent const &event); ///< Process a 'User' event.
|
||||
void processGenericErrorEvent(grpc::GenericErrorEvent const &event); ///< Process an 'GenericError' event.
|
||||
UPClientContext clientContext() const; ///< Returns a client context with the server token set in metadata.
|
||||
|
||||
private: // data members.
|
||||
|
||||
@ -0,0 +1,56 @@
|
||||
// Copyright (c) 2022 Proton AG
|
||||
//
|
||||
// This file is part of Proton Mail Bridge.
|
||||
//
|
||||
// Proton Mail Bridge is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Proton Mail Bridge is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Proton Mail Bridge. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
#include "GRPCErrors.h"
|
||||
|
||||
|
||||
using namespace grpc;
|
||||
|
||||
|
||||
namespace bridgepp
|
||||
{
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
|
||||
ErrorInfo const unknownError { UNKNOWN_ERROR, QObject::tr("Unknown error"), QObject::tr("An unknown error occurred.") }; // Unknown error
|
||||
|
||||
|
||||
QList<ErrorInfo> const errorList {
|
||||
unknownError,
|
||||
{ TLS_CERT_EXPORT_ERROR, QObject::tr("Export error"), QObject::tr("The TLS certificate could not be exported.") },
|
||||
{ TLS_KEY_EXPORT_ERROR, QObject::tr("Export error"), QObject::tr("The TLS private key could not be exported.") },
|
||||
};
|
||||
|
||||
|
||||
} //< anonymous namespace
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] error
|
||||
//****************************************************************************************************************************************************
|
||||
ErrorInfo errorInfo(grpc::ErrorCode code)
|
||||
{
|
||||
QList<ErrorInfo>::const_iterator it = std::find_if(errorList.begin(), errorList.end(), [code](ErrorInfo info) -> bool { return code == info.code;});
|
||||
return errorList.end() == it ? unknownError : *it;
|
||||
}
|
||||
|
||||
|
||||
} // namespace bridgepp
|
||||
@ -0,0 +1,45 @@
|
||||
// Copyright (c) 2022 Proton AG
|
||||
//
|
||||
// This file is part of Proton Mail Bridge.
|
||||
//
|
||||
// Proton Mail Bridge is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Proton Mail Bridge is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Proton Mail Bridge. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
#ifndef BRIDGEPP_GRPC_ERRORS_H
|
||||
#define BRIDGEPP_GRPC_ERRORS_H
|
||||
|
||||
|
||||
#include "bridge.grpc.pb.h"
|
||||
|
||||
|
||||
namespace bridgepp {
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] A structure holding information about an error.
|
||||
//****************************************************************************************************************************************************
|
||||
struct ErrorInfo {
|
||||
grpc::ErrorCode code;
|
||||
QString title;
|
||||
QString description;
|
||||
};
|
||||
|
||||
|
||||
ErrorInfo errorInfo(grpc::ErrorCode code); ///< Retrieve the potentially localized information about an error.
|
||||
|
||||
|
||||
} // namespace bridgepp
|
||||
|
||||
|
||||
#endif // BRIDGEPP_GRPC_ERRORS_H
|
||||
@ -48,6 +48,7 @@ static const char* Bridge_method_names[] = {
|
||||
"/grpc.Bridge/ColorSchemeName",
|
||||
"/grpc.Bridge/CurrentEmailClient",
|
||||
"/grpc.Bridge/ReportBug",
|
||||
"/grpc.Bridge/ExportTLSCertificates",
|
||||
"/grpc.Bridge/ForceLauncher",
|
||||
"/grpc.Bridge/SetMainExecutable",
|
||||
"/grpc.Bridge/Login",
|
||||
@ -112,35 +113,36 @@ Bridge::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, co
|
||||
, rpcmethod_ColorSchemeName_(Bridge_method_names[23], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_CurrentEmailClient_(Bridge_method_names[24], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ReportBug_(Bridge_method_names[25], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ForceLauncher_(Bridge_method_names[26], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetMainExecutable_(Bridge_method_names[27], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login_(Bridge_method_names[28], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login2FA_(Bridge_method_names[29], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login2Passwords_(Bridge_method_names[30], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_LoginAbort_(Bridge_method_names[31], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_CheckUpdate_(Bridge_method_names[32], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_InstallUpdate_(Bridge_method_names[33], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetIsAutomaticUpdateOn_(Bridge_method_names[34], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsAutomaticUpdateOn_(Bridge_method_names[35], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_DiskCachePath_(Bridge_method_names[36], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetDiskCachePath_(Bridge_method_names[37], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetIsDoHEnabled_(Bridge_method_names[38], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsDoHEnabled_(Bridge_method_names[39], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_MailServerSettings_(Bridge_method_names[40], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetMailServerSettings_(Bridge_method_names[41], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Hostname_(Bridge_method_names[42], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsPortFree_(Bridge_method_names[43], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_AvailableKeychains_(Bridge_method_names[44], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetCurrentKeychain_(Bridge_method_names[45], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_CurrentKeychain_(Bridge_method_names[46], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_GetUserList_(Bridge_method_names[47], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_GetUser_(Bridge_method_names[48], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetUserSplitMode_(Bridge_method_names[49], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_LogoutUser_(Bridge_method_names[50], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_RemoveUser_(Bridge_method_names[51], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ConfigureUserAppleMail_(Bridge_method_names[52], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_RunEventStream_(Bridge_method_names[53], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
|
||||
, rpcmethod_StopEventStream_(Bridge_method_names[54], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ExportTLSCertificates_(Bridge_method_names[26], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ForceLauncher_(Bridge_method_names[27], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetMainExecutable_(Bridge_method_names[28], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login_(Bridge_method_names[29], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login2FA_(Bridge_method_names[30], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Login2Passwords_(Bridge_method_names[31], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_LoginAbort_(Bridge_method_names[32], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_CheckUpdate_(Bridge_method_names[33], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_InstallUpdate_(Bridge_method_names[34], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetIsAutomaticUpdateOn_(Bridge_method_names[35], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsAutomaticUpdateOn_(Bridge_method_names[36], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_DiskCachePath_(Bridge_method_names[37], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetDiskCachePath_(Bridge_method_names[38], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetIsDoHEnabled_(Bridge_method_names[39], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsDoHEnabled_(Bridge_method_names[40], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_MailServerSettings_(Bridge_method_names[41], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetMailServerSettings_(Bridge_method_names[42], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_Hostname_(Bridge_method_names[43], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_IsPortFree_(Bridge_method_names[44], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_AvailableKeychains_(Bridge_method_names[45], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetCurrentKeychain_(Bridge_method_names[46], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_CurrentKeychain_(Bridge_method_names[47], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_GetUserList_(Bridge_method_names[48], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_GetUser_(Bridge_method_names[49], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_SetUserSplitMode_(Bridge_method_names[50], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_LogoutUser_(Bridge_method_names[51], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_RemoveUser_(Bridge_method_names[52], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ConfigureUserAppleMail_(Bridge_method_names[53], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_RunEventStream_(Bridge_method_names[54], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
|
||||
, rpcmethod_StopEventStream_(Bridge_method_names[55], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
{}
|
||||
|
||||
::grpc::Status Bridge::Stub::CheckTokens(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::google::protobuf::StringValue* response) {
|
||||
@ -741,6 +743,29 @@ void Bridge::Stub::async::ReportBug(::grpc::ClientContext* context, const ::grpc
|
||||
return result;
|
||||
}
|
||||
|
||||
::grpc::Status Bridge::Stub::ExportTLSCertificates(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::google::protobuf::Empty* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ExportTLSCertificates_, context, request, response);
|
||||
}
|
||||
|
||||
void Bridge::Stub::async::ExportTLSCertificates(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ExportTLSCertificates_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void Bridge::Stub::async::ExportTLSCertificates(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ExportTLSCertificates_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Bridge::Stub::PrepareAsyncExportTLSCertificatesRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::google::protobuf::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ExportTLSCertificates_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Bridge::Stub::AsyncExportTLSCertificatesRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncExportTLSCertificatesRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
::grpc::Status Bridge::Stub::ForceLauncher(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::google::protobuf::Empty* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ForceLauncher_, context, request, response);
|
||||
}
|
||||
@ -1670,7 +1695,7 @@ Bridge::Service::Service() {
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::google::protobuf::StringValue* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->ForceLauncher(ctx, req, resp);
|
||||
return service->ExportTLSCertificates(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[27],
|
||||
@ -1680,17 +1705,17 @@ Bridge::Service::Service() {
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::google::protobuf::StringValue* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->SetMainExecutable(ctx, req, resp);
|
||||
return service->ForceLauncher(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[28],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::LoginRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::grpc::LoginRequest* req,
|
||||
const ::google::protobuf::StringValue* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->Login(ctx, req, resp);
|
||||
return service->SetMainExecutable(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[29],
|
||||
@ -1700,7 +1725,7 @@ Bridge::Service::Service() {
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::grpc::LoginRequest* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->Login2FA(ctx, req, resp);
|
||||
return service->Login(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[30],
|
||||
@ -1710,11 +1735,21 @@ Bridge::Service::Service() {
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::grpc::LoginRequest* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->Login2Passwords(ctx, req, resp);
|
||||
return service->Login2FA(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[31],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::LoginRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::grpc::LoginRequest* req,
|
||||
::google::protobuf::Empty* resp) {
|
||||
return service->Login2Passwords(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[32],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::LoginAbortRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
@ -1723,7 +1758,7 @@ Bridge::Service::Service() {
|
||||
return service->LoginAbort(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[32],
|
||||
Bridge_method_names[33],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1733,7 +1768,7 @@ Bridge::Service::Service() {
|
||||
return service->CheckUpdate(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[33],
|
||||
Bridge_method_names[34],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1743,7 +1778,7 @@ Bridge::Service::Service() {
|
||||
return service->InstallUpdate(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[34],
|
||||
Bridge_method_names[35],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::BoolValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1753,7 +1788,7 @@ Bridge::Service::Service() {
|
||||
return service->SetIsAutomaticUpdateOn(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[35],
|
||||
Bridge_method_names[36],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::BoolValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1763,7 +1798,7 @@ Bridge::Service::Service() {
|
||||
return service->IsAutomaticUpdateOn(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[36],
|
||||
Bridge_method_names[37],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1773,7 +1808,7 @@ Bridge::Service::Service() {
|
||||
return service->DiskCachePath(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[37],
|
||||
Bridge_method_names[38],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1783,7 +1818,7 @@ Bridge::Service::Service() {
|
||||
return service->SetDiskCachePath(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[38],
|
||||
Bridge_method_names[39],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::BoolValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1793,7 +1828,7 @@ Bridge::Service::Service() {
|
||||
return service->SetIsDoHEnabled(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[39],
|
||||
Bridge_method_names[40],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::BoolValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1803,7 +1838,7 @@ Bridge::Service::Service() {
|
||||
return service->IsDoHEnabled(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[40],
|
||||
Bridge_method_names[41],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::grpc::ImapSmtpSettings, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1813,7 +1848,7 @@ Bridge::Service::Service() {
|
||||
return service->MailServerSettings(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[41],
|
||||
Bridge_method_names[42],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::ImapSmtpSettings, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1823,7 +1858,7 @@ Bridge::Service::Service() {
|
||||
return service->SetMailServerSettings(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[42],
|
||||
Bridge_method_names[43],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1833,7 +1868,7 @@ Bridge::Service::Service() {
|
||||
return service->Hostname(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[43],
|
||||
Bridge_method_names[44],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Int32Value, ::google::protobuf::BoolValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1843,7 +1878,7 @@ Bridge::Service::Service() {
|
||||
return service->IsPortFree(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[44],
|
||||
Bridge_method_names[45],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::grpc::AvailableKeychainsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1853,7 +1888,7 @@ Bridge::Service::Service() {
|
||||
return service->AvailableKeychains(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[45],
|
||||
Bridge_method_names[46],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1863,7 +1898,7 @@ Bridge::Service::Service() {
|
||||
return service->SetCurrentKeychain(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[46],
|
||||
Bridge_method_names[47],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1873,7 +1908,7 @@ Bridge::Service::Service() {
|
||||
return service->CurrentKeychain(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[47],
|
||||
Bridge_method_names[48],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::grpc::UserListResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1883,7 +1918,7 @@ Bridge::Service::Service() {
|
||||
return service->GetUserList(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[48],
|
||||
Bridge_method_names[49],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::grpc::User, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1893,7 +1928,7 @@ Bridge::Service::Service() {
|
||||
return service->GetUser(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[49],
|
||||
Bridge_method_names[50],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::UserSplitModeRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1903,7 +1938,7 @@ Bridge::Service::Service() {
|
||||
return service->SetUserSplitMode(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[50],
|
||||
Bridge_method_names[51],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1913,7 +1948,7 @@ Bridge::Service::Service() {
|
||||
return service->LogoutUser(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[51],
|
||||
Bridge_method_names[52],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::StringValue, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1923,7 +1958,7 @@ Bridge::Service::Service() {
|
||||
return service->RemoveUser(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[52],
|
||||
Bridge_method_names[53],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::grpc::ConfigureAppleMailRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1933,7 +1968,7 @@ Bridge::Service::Service() {
|
||||
return service->ConfigureUserAppleMail(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[53],
|
||||
Bridge_method_names[54],
|
||||
::grpc::internal::RpcMethod::SERVER_STREAMING,
|
||||
new ::grpc::internal::ServerStreamingHandler< Bridge::Service, ::grpc::EventStreamRequest, ::grpc::StreamEvent>(
|
||||
[](Bridge::Service* service,
|
||||
@ -1943,7 +1978,7 @@ Bridge::Service::Service() {
|
||||
return service->RunEventStream(ctx, req, writer);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Bridge_method_names[54],
|
||||
Bridge_method_names[55],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Bridge::Service, ::google::protobuf::Empty, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Bridge::Service* service,
|
||||
@ -2139,6 +2174,13 @@ Bridge::Service::~Service() {
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
::grpc::Status Bridge::Service::ExportTLSCertificates(::grpc::ServerContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
::grpc::Status Bridge::Service::ForceLauncher(::grpc::ServerContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -732,9 +732,22 @@ struct UserChangedEventDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UserChangedEventDefaultTypeInternal _UserChangedEvent_default_instance_;
|
||||
PROTOBUF_CONSTEXPR GenericErrorEvent::GenericErrorEvent(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.code_)*/0
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct GenericErrorEventDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR GenericErrorEventDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~GenericErrorEventDefaultTypeInternal() {}
|
||||
union {
|
||||
GenericErrorEvent _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GenericErrorEventDefaultTypeInternal _GenericErrorEvent_default_instance_;
|
||||
} // namespace grpc
|
||||
static ::_pb::Metadata file_level_metadata_bridge_2eproto[55];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_bridge_2eproto[6];
|
||||
static ::_pb::Metadata file_level_metadata_bridge_2eproto[56];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_bridge_2eproto[7];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_bridge_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_bridge_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
@ -851,6 +864,7 @@ const uint32_t TableStruct_bridge_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(p
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::grpc::StreamEvent, _impl_.event_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::grpc::AppEvent, _internal_metadata_),
|
||||
@ -1172,6 +1186,13 @@ const uint32_t TableStruct_bridge_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(p
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::grpc::UserChangedEvent, _impl_.userid_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::grpc::GenericErrorEvent, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::grpc::GenericErrorEvent, _impl_.code_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::grpc::AddLogEntryRequest)},
|
||||
@ -1186,49 +1207,50 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 84, -1, -1, sizeof(::grpc::ConfigureAppleMailRequest)},
|
||||
{ 92, -1, -1, sizeof(::grpc::EventStreamRequest)},
|
||||
{ 99, -1, -1, sizeof(::grpc::StreamEvent)},
|
||||
{ 114, -1, -1, sizeof(::grpc::AppEvent)},
|
||||
{ 128, -1, -1, sizeof(::grpc::InternetStatusEvent)},
|
||||
{ 135, -1, -1, sizeof(::grpc::ToggleAutostartFinishedEvent)},
|
||||
{ 141, -1, -1, sizeof(::grpc::ResetFinishedEvent)},
|
||||
{ 147, -1, -1, sizeof(::grpc::ReportBugFinishedEvent)},
|
||||
{ 153, -1, -1, sizeof(::grpc::ReportBugSuccessEvent)},
|
||||
{ 159, -1, -1, sizeof(::grpc::ReportBugErrorEvent)},
|
||||
{ 165, -1, -1, sizeof(::grpc::ShowMainWindowEvent)},
|
||||
{ 171, -1, -1, sizeof(::grpc::LoginEvent)},
|
||||
{ 183, -1, -1, sizeof(::grpc::LoginErrorEvent)},
|
||||
{ 191, -1, -1, sizeof(::grpc::LoginTfaRequestedEvent)},
|
||||
{ 198, -1, -1, sizeof(::grpc::LoginTwoPasswordsRequestedEvent)},
|
||||
{ 204, -1, -1, sizeof(::grpc::LoginFinishedEvent)},
|
||||
{ 211, -1, -1, sizeof(::grpc::UpdateEvent)},
|
||||
{ 226, -1, -1, sizeof(::grpc::UpdateErrorEvent)},
|
||||
{ 233, -1, -1, sizeof(::grpc::UpdateManualReadyEvent)},
|
||||
{ 240, -1, -1, sizeof(::grpc::UpdateManualRestartNeededEvent)},
|
||||
{ 246, -1, -1, sizeof(::grpc::UpdateForceEvent)},
|
||||
{ 253, -1, -1, sizeof(::grpc::UpdateSilentRestartNeeded)},
|
||||
{ 259, -1, -1, sizeof(::grpc::UpdateIsLatestVersion)},
|
||||
{ 265, -1, -1, sizeof(::grpc::UpdateCheckFinished)},
|
||||
{ 271, -1, -1, sizeof(::grpc::UpdateVersionChanged)},
|
||||
{ 277, -1, -1, sizeof(::grpc::DiskCacheEvent)},
|
||||
{ 287, -1, -1, sizeof(::grpc::DiskCacheErrorEvent)},
|
||||
{ 294, -1, -1, sizeof(::grpc::DiskCachePathChangedEvent)},
|
||||
{ 301, -1, -1, sizeof(::grpc::DiskCachePathChangeFinishedEvent)},
|
||||
{ 307, -1, -1, sizeof(::grpc::MailServerSettingsEvent)},
|
||||
{ 317, -1, -1, sizeof(::grpc::MailServerSettingsErrorEvent)},
|
||||
{ 324, -1, -1, sizeof(::grpc::MailServerSettingsChangedEvent)},
|
||||
{ 331, -1, -1, sizeof(::grpc::ChangeMailServerSettingsFinishedEvent)},
|
||||
{ 337, -1, -1, sizeof(::grpc::KeychainEvent)},
|
||||
{ 347, -1, -1, sizeof(::grpc::ChangeKeychainFinishedEvent)},
|
||||
{ 353, -1, -1, sizeof(::grpc::HasNoKeychainEvent)},
|
||||
{ 359, -1, -1, sizeof(::grpc::RebuildKeychainEvent)},
|
||||
{ 365, -1, -1, sizeof(::grpc::MailEvent)},
|
||||
{ 376, -1, -1, sizeof(::grpc::NoActiveKeyForRecipientEvent)},
|
||||
{ 383, -1, -1, sizeof(::grpc::AddressChangedEvent)},
|
||||
{ 390, -1, -1, sizeof(::grpc::AddressChangedLogoutEvent)},
|
||||
{ 397, -1, -1, sizeof(::grpc::ApiCertIssueEvent)},
|
||||
{ 403, -1, -1, sizeof(::grpc::UserEvent)},
|
||||
{ 413, -1, -1, sizeof(::grpc::ToggleSplitModeFinishedEvent)},
|
||||
{ 420, -1, -1, sizeof(::grpc::UserDisconnectedEvent)},
|
||||
{ 427, -1, -1, sizeof(::grpc::UserChangedEvent)},
|
||||
{ 115, -1, -1, sizeof(::grpc::AppEvent)},
|
||||
{ 129, -1, -1, sizeof(::grpc::InternetStatusEvent)},
|
||||
{ 136, -1, -1, sizeof(::grpc::ToggleAutostartFinishedEvent)},
|
||||
{ 142, -1, -1, sizeof(::grpc::ResetFinishedEvent)},
|
||||
{ 148, -1, -1, sizeof(::grpc::ReportBugFinishedEvent)},
|
||||
{ 154, -1, -1, sizeof(::grpc::ReportBugSuccessEvent)},
|
||||
{ 160, -1, -1, sizeof(::grpc::ReportBugErrorEvent)},
|
||||
{ 166, -1, -1, sizeof(::grpc::ShowMainWindowEvent)},
|
||||
{ 172, -1, -1, sizeof(::grpc::LoginEvent)},
|
||||
{ 184, -1, -1, sizeof(::grpc::LoginErrorEvent)},
|
||||
{ 192, -1, -1, sizeof(::grpc::LoginTfaRequestedEvent)},
|
||||
{ 199, -1, -1, sizeof(::grpc::LoginTwoPasswordsRequestedEvent)},
|
||||
{ 205, -1, -1, sizeof(::grpc::LoginFinishedEvent)},
|
||||
{ 212, -1, -1, sizeof(::grpc::UpdateEvent)},
|
||||
{ 227, -1, -1, sizeof(::grpc::UpdateErrorEvent)},
|
||||
{ 234, -1, -1, sizeof(::grpc::UpdateManualReadyEvent)},
|
||||
{ 241, -1, -1, sizeof(::grpc::UpdateManualRestartNeededEvent)},
|
||||
{ 247, -1, -1, sizeof(::grpc::UpdateForceEvent)},
|
||||
{ 254, -1, -1, sizeof(::grpc::UpdateSilentRestartNeeded)},
|
||||
{ 260, -1, -1, sizeof(::grpc::UpdateIsLatestVersion)},
|
||||
{ 266, -1, -1, sizeof(::grpc::UpdateCheckFinished)},
|
||||
{ 272, -1, -1, sizeof(::grpc::UpdateVersionChanged)},
|
||||
{ 278, -1, -1, sizeof(::grpc::DiskCacheEvent)},
|
||||
{ 288, -1, -1, sizeof(::grpc::DiskCacheErrorEvent)},
|
||||
{ 295, -1, -1, sizeof(::grpc::DiskCachePathChangedEvent)},
|
||||
{ 302, -1, -1, sizeof(::grpc::DiskCachePathChangeFinishedEvent)},
|
||||
{ 308, -1, -1, sizeof(::grpc::MailServerSettingsEvent)},
|
||||
{ 318, -1, -1, sizeof(::grpc::MailServerSettingsErrorEvent)},
|
||||
{ 325, -1, -1, sizeof(::grpc::MailServerSettingsChangedEvent)},
|
||||
{ 332, -1, -1, sizeof(::grpc::ChangeMailServerSettingsFinishedEvent)},
|
||||
{ 338, -1, -1, sizeof(::grpc::KeychainEvent)},
|
||||
{ 348, -1, -1, sizeof(::grpc::ChangeKeychainFinishedEvent)},
|
||||
{ 354, -1, -1, sizeof(::grpc::HasNoKeychainEvent)},
|
||||
{ 360, -1, -1, sizeof(::grpc::RebuildKeychainEvent)},
|
||||
{ 366, -1, -1, sizeof(::grpc::MailEvent)},
|
||||
{ 377, -1, -1, sizeof(::grpc::NoActiveKeyForRecipientEvent)},
|
||||
{ 384, -1, -1, sizeof(::grpc::AddressChangedEvent)},
|
||||
{ 391, -1, -1, sizeof(::grpc::AddressChangedLogoutEvent)},
|
||||
{ 398, -1, -1, sizeof(::grpc::ApiCertIssueEvent)},
|
||||
{ 404, -1, -1, sizeof(::grpc::UserEvent)},
|
||||
{ 414, -1, -1, sizeof(::grpc::ToggleSplitModeFinishedEvent)},
|
||||
{ 421, -1, -1, sizeof(::grpc::UserDisconnectedEvent)},
|
||||
{ 428, -1, -1, sizeof(::grpc::UserChangedEvent)},
|
||||
{ 435, -1, -1, sizeof(::grpc::GenericErrorEvent)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@ -1287,6 +1309,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::grpc::_ToggleSplitModeFinishedEvent_default_instance_._instance,
|
||||
&::grpc::_UserDisconnectedEvent_default_instance_._instance,
|
||||
&::grpc::_UserChangedEvent_default_instance_._instance,
|
||||
&::grpc::_GenericErrorEvent_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_bridge_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
@ -1314,7 +1337,7 @@ const char descriptor_table_protodef_bridge_2eproto[] PROTOBUF_SECTION_VARIABLE(
|
||||
"s\030\001 \003(\0132\n.grpc.User\"<\n\031ConfigureAppleMai"
|
||||
"lRequest\022\016\n\006userID\030\001 \001(\t\022\017\n\007address\030\002 \001("
|
||||
"\t\",\n\022EventStreamRequest\022\026\n\016ClientPlatfor"
|
||||
"m\030\001 \001(\t\"\314\002\n\013StreamEvent\022\035\n\003app\030\001 \001(\0132\016.g"
|
||||
"m\030\001 \001(\t\"\375\002\n\013StreamEvent\022\035\n\003app\030\001 \001(\0132\016.g"
|
||||
"rpc.AppEventH\000\022!\n\005login\030\002 \001(\0132\020.grpc.Log"
|
||||
"inEventH\000\022#\n\006update\030\003 \001(\0132\021.grpc.UpdateE"
|
||||
"ventH\000\022%\n\005cache\030\004 \001(\0132\024.grpc.DiskCacheEv"
|
||||
@ -1322,214 +1345,220 @@ const char descriptor_table_protodef_bridge_2eproto[] PROTOBUF_SECTION_VARIABLE(
|
||||
".MailServerSettingsEventH\000\022\'\n\010keychain\030\006"
|
||||
" \001(\0132\023.grpc.KeychainEventH\000\022\037\n\004mail\030\007 \001("
|
||||
"\0132\017.grpc.MailEventH\000\022\037\n\004user\030\010 \001(\0132\017.grp"
|
||||
"c.UserEventH\000B\007\n\005event\"\240\003\n\010AppEvent\0223\n\016i"
|
||||
"nternetStatus\030\001 \001(\0132\031.grpc.InternetStatu"
|
||||
"sEventH\000\022E\n\027toggleAutostartFinished\030\002 \001("
|
||||
"\0132\".grpc.ToggleAutostartFinishedEventH\000\022"
|
||||
"1\n\rresetFinished\030\003 \001(\0132\030.grpc.ResetFinis"
|
||||
"hedEventH\000\0229\n\021reportBugFinished\030\004 \001(\0132\034."
|
||||
"grpc.ReportBugFinishedEventH\000\0227\n\020reportB"
|
||||
"ugSuccess\030\005 \001(\0132\033.grpc.ReportBugSuccessE"
|
||||
"ventH\000\0223\n\016reportBugError\030\006 \001(\0132\031.grpc.Re"
|
||||
"portBugErrorEventH\000\0223\n\016showMainWindow\030\007 "
|
||||
"\001(\0132\031.grpc.ShowMainWindowEventH\000B\007\n\005even"
|
||||
"t\"(\n\023InternetStatusEvent\022\021\n\tconnected\030\001 "
|
||||
"\001(\010\"\036\n\034ToggleAutostartFinishedEvent\"\024\n\022R"
|
||||
"esetFinishedEvent\"\030\n\026ReportBugFinishedEv"
|
||||
"ent\"\027\n\025ReportBugSuccessEvent\"\025\n\023ReportBu"
|
||||
"gErrorEvent\"\025\n\023ShowMainWindowEvent\"\235\002\n\nL"
|
||||
"oginEvent\022&\n\005error\030\001 \001(\0132\025.grpc.LoginErr"
|
||||
"orEventH\000\0224\n\014tfaRequested\030\002 \001(\0132\034.grpc.L"
|
||||
"oginTfaRequestedEventH\000\022E\n\024twoPasswordRe"
|
||||
"quested\030\003 \001(\0132%.grpc.LoginTwoPasswordsRe"
|
||||
"questedEventH\000\022,\n\010finished\030\004 \001(\0132\030.grpc."
|
||||
"LoginFinishedEventH\000\0223\n\017alreadyLoggedIn\030"
|
||||
"\005 \001(\0132\030.grpc.LoginFinishedEventH\000B\007\n\005eve"
|
||||
"nt\"F\n\017LoginErrorEvent\022\"\n\004type\030\001 \001(\0162\024.gr"
|
||||
"pc.LoginErrorType\022\017\n\007message\030\002 \001(\t\"*\n\026Lo"
|
||||
"ginTfaRequestedEvent\022\020\n\010username\030\001 \001(\t\"!"
|
||||
"\n\037LoginTwoPasswordsRequestedEvent\"$\n\022Log"
|
||||
"inFinishedEvent\022\016\n\006userID\030\001 \001(\t\"\304\003\n\013Upda"
|
||||
"teEvent\022\'\n\005error\030\001 \001(\0132\026.grpc.UpdateErro"
|
||||
"rEventH\000\0223\n\013manualReady\030\002 \001(\0132\034.grpc.Upd"
|
||||
"ateManualReadyEventH\000\022C\n\023manualRestartNe"
|
||||
"eded\030\003 \001(\0132$.grpc.UpdateManualRestartNee"
|
||||
"dedEventH\000\022\'\n\005force\030\004 \001(\0132\026.grpc.UpdateF"
|
||||
"orceEventH\000\022>\n\023silentRestartNeeded\030\005 \001(\013"
|
||||
"2\037.grpc.UpdateSilentRestartNeededH\000\0226\n\017i"
|
||||
"sLatestVersion\030\006 \001(\0132\033.grpc.UpdateIsLate"
|
||||
"stVersionH\000\0222\n\rcheckFinished\030\007 \001(\0132\031.grp"
|
||||
"c.UpdateCheckFinishedH\000\0224\n\016versionChange"
|
||||
"d\030\010 \001(\0132\032.grpc.UpdateVersionChangedH\000B\007\n"
|
||||
"\005event\"7\n\020UpdateErrorEvent\022#\n\004type\030\001 \001(\016"
|
||||
"2\025.grpc.UpdateErrorType\")\n\026UpdateManualR"
|
||||
"eadyEvent\022\017\n\007version\030\001 \001(\t\" \n\036UpdateManu"
|
||||
"alRestartNeededEvent\"#\n\020UpdateForceEvent"
|
||||
"\022\017\n\007version\030\001 \001(\t\"\033\n\031UpdateSilentRestart"
|
||||
"Needed\"\027\n\025UpdateIsLatestVersion\"\025\n\023Updat"
|
||||
"eCheckFinished\"\026\n\024UpdateVersionChanged\"\303"
|
||||
"\001\n\016DiskCacheEvent\022*\n\005error\030\001 \001(\0132\031.grpc."
|
||||
"DiskCacheErrorEventH\000\0226\n\013pathChanged\030\002 \001"
|
||||
"(\0132\037.grpc.DiskCachePathChangedEventH\000\022D\n"
|
||||
"\022pathChangeFinished\030\003 \001(\0132&.grpc.DiskCac"
|
||||
"hePathChangeFinishedEventH\000B\007\n\005event\"=\n\023"
|
||||
"DiskCacheErrorEvent\022&\n\004type\030\001 \001(\0162\030.grpc"
|
||||
".DiskCacheErrorType\")\n\031DiskCachePathChan"
|
||||
"gedEvent\022\014\n\004path\030\001 \001(\t\"\"\n DiskCachePathC"
|
||||
"hangeFinishedEvent\"\373\001\n\027MailServerSetting"
|
||||
"sEvent\0223\n\005error\030\001 \001(\0132\".grpc.MailServerS"
|
||||
"ettingsErrorEventH\000\022I\n\031mailServerSetting"
|
||||
"sChanged\030\002 \001(\0132$.grpc.MailServerSettings"
|
||||
"ChangedEventH\000\022W\n changeMailServerSettin"
|
||||
"gsFinished\030\003 \001(\0132+.grpc.ChangeMailServer"
|
||||
"SettingsFinishedEventH\000B\007\n\005event\"O\n\034Mail"
|
||||
"ServerSettingsErrorEvent\022/\n\004type\030\001 \001(\0162!"
|
||||
".grpc.MailServerSettingsErrorType\"J\n\036Mai"
|
||||
"lServerSettingsChangedEvent\022(\n\010settings\030"
|
||||
"\001 \001(\0132\026.grpc.ImapSmtpSettings\"\'\n%ChangeM"
|
||||
"ailServerSettingsFinishedEvent\"\307\001\n\rKeych"
|
||||
"ainEvent\022C\n\026changeKeychainFinished\030\001 \001(\013"
|
||||
"2!.grpc.ChangeKeychainFinishedEventH\000\0221\n"
|
||||
"\rhasNoKeychain\030\002 \001(\0132\030.grpc.HasNoKeychai"
|
||||
"nEventH\000\0225\n\017rebuildKeychain\030\003 \001(\0132\032.grpc"
|
||||
".RebuildKeychainEventH\000B\007\n\005event\"\035\n\033Chan"
|
||||
"geKeychainFinishedEvent\"\024\n\022HasNoKeychain"
|
||||
"Event\"\026\n\024RebuildKeychainEvent\"\207\002\n\tMailEv"
|
||||
"ent\022J\n\034noActiveKeyForRecipientEvent\030\001 \001("
|
||||
"\0132\".grpc.NoActiveKeyForRecipientEventH\000\022"
|
||||
"3\n\016addressChanged\030\002 \001(\0132\031.grpc.AddressCh"
|
||||
"angedEventH\000\022\?\n\024addressChangedLogout\030\003 \001"
|
||||
"(\0132\037.grpc.AddressChangedLogoutEventH\000\022/\n"
|
||||
"\014apiCertIssue\030\006 \001(\0132\027.grpc.ApiCertIssueE"
|
||||
"ventH\000B\007\n\005event\"-\n\034NoActiveKeyForRecipie"
|
||||
"ntEvent\022\r\n\005email\030\001 \001(\t\"&\n\023AddressChanged"
|
||||
"Event\022\017\n\007address\030\001 \001(\t\",\n\031AddressChanged"
|
||||
"LogoutEvent\022\017\n\007address\030\001 \001(\t\"\023\n\021ApiCertI"
|
||||
"ssueEvent\"\303\001\n\tUserEvent\022E\n\027toggleSplitMo"
|
||||
"deFinished\030\001 \001(\0132\".grpc.ToggleSplitModeF"
|
||||
"inishedEventH\000\0227\n\020userDisconnected\030\002 \001(\013"
|
||||
"2\033.grpc.UserDisconnectedEventH\000\022-\n\013userC"
|
||||
"hanged\030\003 \001(\0132\026.grpc.UserChangedEventH\000B\007"
|
||||
"\n\005event\".\n\034ToggleSplitModeFinishedEvent\022"
|
||||
"\016\n\006userID\030\001 \001(\t\")\n\025UserDisconnectedEvent"
|
||||
"\022\020\n\010username\030\001 \001(\t\"\"\n\020UserChangedEvent\022\016"
|
||||
"\n\006userID\030\001 \001(\t*q\n\010LogLevel\022\r\n\tLOG_PANIC\020"
|
||||
"\000\022\r\n\tLOG_FATAL\020\001\022\r\n\tLOG_ERROR\020\002\022\014\n\010LOG_W"
|
||||
"ARN\020\003\022\014\n\010LOG_INFO\020\004\022\r\n\tLOG_DEBUG\020\005\022\r\n\tLO"
|
||||
"G_TRACE\020\006*6\n\tUserState\022\016\n\nSIGNED_OUT\020\000\022\n"
|
||||
"\n\006LOCKED\020\001\022\r\n\tCONNECTED\020\002*\242\001\n\016LoginError"
|
||||
"Type\022\033\n\027USERNAME_PASSWORD_ERROR\020\000\022\r\n\tFRE"
|
||||
"E_USER\020\001\022\024\n\020CONNECTION_ERROR\020\002\022\r\n\tTFA_ER"
|
||||
"ROR\020\003\022\r\n\tTFA_ABORT\020\004\022\027\n\023TWO_PASSWORDS_ER"
|
||||
"ROR\020\005\022\027\n\023TWO_PASSWORDS_ABORT\020\006*[\n\017Update"
|
||||
"ErrorType\022\027\n\023UPDATE_MANUAL_ERROR\020\000\022\026\n\022UP"
|
||||
"DATE_FORCE_ERROR\020\001\022\027\n\023UPDATE_SILENT_ERRO"
|
||||
"R\020\002*k\n\022DiskCacheErrorType\022 \n\034DISK_CACHE_"
|
||||
"UNAVAILABLE_ERROR\020\000\022\036\n\032CANT_MOVE_DISK_CA"
|
||||
"CHE_ERROR\020\001\022\023\n\017DISK_FULL_ERROR\020\002*\335\001\n\033Mai"
|
||||
"lServerSettingsErrorType\022\033\n\027IMAP_PORT_ST"
|
||||
"ARTUP_ERROR\020\000\022\033\n\027SMTP_PORT_STARTUP_ERROR"
|
||||
"\020\001\022\032\n\026IMAP_PORT_CHANGE_ERROR\020\002\022\032\n\026SMTP_P"
|
||||
"ORT_CHANGE_ERROR\020\003\022%\n!IMAP_CONNECTION_MO"
|
||||
"DE_CHANGE_ERROR\020\004\022%\n!SMTP_CONNECTION_MOD"
|
||||
"E_CHANGE_ERROR\020\0052\331\035\n\006Bridge\022I\n\013CheckToke"
|
||||
"ns\022\034.google.protobuf.StringValue\032\034.googl"
|
||||
"e.protobuf.StringValue\022\?\n\013AddLogEntry\022\030."
|
||||
"grpc.AddLogEntryRequest\032\026.google.protobu"
|
||||
"f.Empty\022:\n\010GuiReady\022\026.google.protobuf.Em"
|
||||
"pty\032\026.google.protobuf.Empty\0226\n\004Quit\022\026.go"
|
||||
"ogle.protobuf.Empty\032\026.google.protobuf.Em"
|
||||
"pty\0229\n\007Restart\022\026.google.protobuf.Empty\032\026"
|
||||
".google.protobuf.Empty\022C\n\rShowOnStartup\022"
|
||||
"\026.google.protobuf.Empty\032\032.google.protobu"
|
||||
"f.BoolValue\022F\n\020ShowSplashScreen\022\026.google"
|
||||
".protobuf.Empty\032\032.google.protobuf.BoolVa"
|
||||
"lue\022E\n\017IsFirstGuiStart\022\026.google.protobuf"
|
||||
".Empty\032\032.google.protobuf.BoolValue\022F\n\020Se"
|
||||
"tIsAutostartOn\022\032.google.protobuf.BoolVal"
|
||||
"ue\032\026.google.protobuf.Empty\022C\n\rIsAutostar"
|
||||
"tOn\022\026.google.protobuf.Empty\032\032.google.pro"
|
||||
"tobuf.BoolValue\022F\n\020SetIsBetaEnabled\022\032.go"
|
||||
"ogle.protobuf.BoolValue\032\026.google.protobu"
|
||||
"f.Empty\022C\n\rIsBetaEnabled\022\026.google.protob"
|
||||
"uf.Empty\032\032.google.protobuf.BoolValue\022I\n\023"
|
||||
"SetIsAllMailVisible\022\032.google.protobuf.Bo"
|
||||
"olValue\032\026.google.protobuf.Empty\022F\n\020IsAll"
|
||||
"MailVisible\022\026.google.protobuf.Empty\032\032.go"
|
||||
"ogle.protobuf.BoolValue\022<\n\004GoOs\022\026.google"
|
||||
".protobuf.Empty\032\034.google.protobuf.String"
|
||||
"Value\022>\n\014TriggerReset\022\026.google.protobuf."
|
||||
"Empty\032\026.google.protobuf.Empty\022\?\n\007Version"
|
||||
"\022\026.google.protobuf.Empty\032\034.google.protob"
|
||||
"uf.StringValue\022@\n\010LogsPath\022\026.google.prot"
|
||||
"c.UserEventH\000\022/\n\014genericError\030\t \001(\0132\027.gr"
|
||||
"pc.GenericErrorEventH\000B\007\n\005event\"\240\003\n\010AppE"
|
||||
"vent\0223\n\016internetStatus\030\001 \001(\0132\031.grpc.Inte"
|
||||
"rnetStatusEventH\000\022E\n\027toggleAutostartFini"
|
||||
"shed\030\002 \001(\0132\".grpc.ToggleAutostartFinishe"
|
||||
"dEventH\000\0221\n\rresetFinished\030\003 \001(\0132\030.grpc.R"
|
||||
"esetFinishedEventH\000\0229\n\021reportBugFinished"
|
||||
"\030\004 \001(\0132\034.grpc.ReportBugFinishedEventH\000\0227"
|
||||
"\n\020reportBugSuccess\030\005 \001(\0132\033.grpc.ReportBu"
|
||||
"gSuccessEventH\000\0223\n\016reportBugError\030\006 \001(\0132"
|
||||
"\031.grpc.ReportBugErrorEventH\000\0223\n\016showMain"
|
||||
"Window\030\007 \001(\0132\031.grpc.ShowMainWindowEventH"
|
||||
"\000B\007\n\005event\"(\n\023InternetStatusEvent\022\021\n\tcon"
|
||||
"nected\030\001 \001(\010\"\036\n\034ToggleAutostartFinishedE"
|
||||
"vent\"\024\n\022ResetFinishedEvent\"\030\n\026ReportBugF"
|
||||
"inishedEvent\"\027\n\025ReportBugSuccessEvent\"\025\n"
|
||||
"\023ReportBugErrorEvent\"\025\n\023ShowMainWindowEv"
|
||||
"ent\"\235\002\n\nLoginEvent\022&\n\005error\030\001 \001(\0132\025.grpc"
|
||||
".LoginErrorEventH\000\0224\n\014tfaRequested\030\002 \001(\013"
|
||||
"2\034.grpc.LoginTfaRequestedEventH\000\022E\n\024twoP"
|
||||
"asswordRequested\030\003 \001(\0132%.grpc.LoginTwoPa"
|
||||
"sswordsRequestedEventH\000\022,\n\010finished\030\004 \001("
|
||||
"\0132\030.grpc.LoginFinishedEventH\000\0223\n\017already"
|
||||
"LoggedIn\030\005 \001(\0132\030.grpc.LoginFinishedEvent"
|
||||
"H\000B\007\n\005event\"F\n\017LoginErrorEvent\022\"\n\004type\030\001"
|
||||
" \001(\0162\024.grpc.LoginErrorType\022\017\n\007message\030\002 "
|
||||
"\001(\t\"*\n\026LoginTfaRequestedEvent\022\020\n\010usernam"
|
||||
"e\030\001 \001(\t\"!\n\037LoginTwoPasswordsRequestedEve"
|
||||
"nt\"$\n\022LoginFinishedEvent\022\016\n\006userID\030\001 \001(\t"
|
||||
"\"\304\003\n\013UpdateEvent\022\'\n\005error\030\001 \001(\0132\026.grpc.U"
|
||||
"pdateErrorEventH\000\0223\n\013manualReady\030\002 \001(\0132\034"
|
||||
".grpc.UpdateManualReadyEventH\000\022C\n\023manual"
|
||||
"RestartNeeded\030\003 \001(\0132$.grpc.UpdateManualR"
|
||||
"estartNeededEventH\000\022\'\n\005force\030\004 \001(\0132\026.grp"
|
||||
"c.UpdateForceEventH\000\022>\n\023silentRestartNee"
|
||||
"ded\030\005 \001(\0132\037.grpc.UpdateSilentRestartNeed"
|
||||
"edH\000\0226\n\017isLatestVersion\030\006 \001(\0132\033.grpc.Upd"
|
||||
"ateIsLatestVersionH\000\0222\n\rcheckFinished\030\007 "
|
||||
"\001(\0132\031.grpc.UpdateCheckFinishedH\000\0224\n\016vers"
|
||||
"ionChanged\030\010 \001(\0132\032.grpc.UpdateVersionCha"
|
||||
"ngedH\000B\007\n\005event\"7\n\020UpdateErrorEvent\022#\n\004t"
|
||||
"ype\030\001 \001(\0162\025.grpc.UpdateErrorType\")\n\026Upda"
|
||||
"teManualReadyEvent\022\017\n\007version\030\001 \001(\t\" \n\036U"
|
||||
"pdateManualRestartNeededEvent\"#\n\020UpdateF"
|
||||
"orceEvent\022\017\n\007version\030\001 \001(\t\"\033\n\031UpdateSile"
|
||||
"ntRestartNeeded\"\027\n\025UpdateIsLatestVersion"
|
||||
"\"\025\n\023UpdateCheckFinished\"\026\n\024UpdateVersion"
|
||||
"Changed\"\303\001\n\016DiskCacheEvent\022*\n\005error\030\001 \001("
|
||||
"\0132\031.grpc.DiskCacheErrorEventH\000\0226\n\013pathCh"
|
||||
"anged\030\002 \001(\0132\037.grpc.DiskCachePathChangedE"
|
||||
"ventH\000\022D\n\022pathChangeFinished\030\003 \001(\0132&.grp"
|
||||
"c.DiskCachePathChangeFinishedEventH\000B\007\n\005"
|
||||
"event\"=\n\023DiskCacheErrorEvent\022&\n\004type\030\001 \001"
|
||||
"(\0162\030.grpc.DiskCacheErrorType\")\n\031DiskCach"
|
||||
"ePathChangedEvent\022\014\n\004path\030\001 \001(\t\"\"\n DiskC"
|
||||
"achePathChangeFinishedEvent\"\373\001\n\027MailServ"
|
||||
"erSettingsEvent\0223\n\005error\030\001 \001(\0132\".grpc.Ma"
|
||||
"ilServerSettingsErrorEventH\000\022I\n\031mailServ"
|
||||
"erSettingsChanged\030\002 \001(\0132$.grpc.MailServe"
|
||||
"rSettingsChangedEventH\000\022W\n changeMailSer"
|
||||
"verSettingsFinished\030\003 \001(\0132+.grpc.ChangeM"
|
||||
"ailServerSettingsFinishedEventH\000B\007\n\005even"
|
||||
"t\"O\n\034MailServerSettingsErrorEvent\022/\n\004typ"
|
||||
"e\030\001 \001(\0162!.grpc.MailServerSettingsErrorTy"
|
||||
"pe\"J\n\036MailServerSettingsChangedEvent\022(\n\010"
|
||||
"settings\030\001 \001(\0132\026.grpc.ImapSmtpSettings\"\'"
|
||||
"\n%ChangeMailServerSettingsFinishedEvent\""
|
||||
"\307\001\n\rKeychainEvent\022C\n\026changeKeychainFinis"
|
||||
"hed\030\001 \001(\0132!.grpc.ChangeKeychainFinishedE"
|
||||
"ventH\000\0221\n\rhasNoKeychain\030\002 \001(\0132\030.grpc.Has"
|
||||
"NoKeychainEventH\000\0225\n\017rebuildKeychain\030\003 \001"
|
||||
"(\0132\032.grpc.RebuildKeychainEventH\000B\007\n\005even"
|
||||
"t\"\035\n\033ChangeKeychainFinishedEvent\"\024\n\022HasN"
|
||||
"oKeychainEvent\"\026\n\024RebuildKeychainEvent\"\207"
|
||||
"\002\n\tMailEvent\022J\n\034noActiveKeyForRecipientE"
|
||||
"vent\030\001 \001(\0132\".grpc.NoActiveKeyForRecipien"
|
||||
"tEventH\000\0223\n\016addressChanged\030\002 \001(\0132\031.grpc."
|
||||
"AddressChangedEventH\000\022\?\n\024addressChangedL"
|
||||
"ogout\030\003 \001(\0132\037.grpc.AddressChangedLogoutE"
|
||||
"ventH\000\022/\n\014apiCertIssue\030\006 \001(\0132\027.grpc.ApiC"
|
||||
"ertIssueEventH\000B\007\n\005event\"-\n\034NoActiveKeyF"
|
||||
"orRecipientEvent\022\r\n\005email\030\001 \001(\t\"&\n\023Addre"
|
||||
"ssChangedEvent\022\017\n\007address\030\001 \001(\t\",\n\031Addre"
|
||||
"ssChangedLogoutEvent\022\017\n\007address\030\001 \001(\t\"\023\n"
|
||||
"\021ApiCertIssueEvent\"\303\001\n\tUserEvent\022E\n\027togg"
|
||||
"leSplitModeFinished\030\001 \001(\0132\".grpc.ToggleS"
|
||||
"plitModeFinishedEventH\000\0227\n\020userDisconnec"
|
||||
"ted\030\002 \001(\0132\033.grpc.UserDisconnectedEventH\000"
|
||||
"\022-\n\013userChanged\030\003 \001(\0132\026.grpc.UserChanged"
|
||||
"EventH\000B\007\n\005event\".\n\034ToggleSplitModeFinis"
|
||||
"hedEvent\022\016\n\006userID\030\001 \001(\t\")\n\025UserDisconne"
|
||||
"ctedEvent\022\020\n\010username\030\001 \001(\t\"\"\n\020UserChang"
|
||||
"edEvent\022\016\n\006userID\030\001 \001(\t\"2\n\021GenericErrorE"
|
||||
"vent\022\035\n\004code\030\001 \001(\0162\017.grpc.ErrorCode*q\n\010L"
|
||||
"ogLevel\022\r\n\tLOG_PANIC\020\000\022\r\n\tLOG_FATAL\020\001\022\r\n"
|
||||
"\tLOG_ERROR\020\002\022\014\n\010LOG_WARN\020\003\022\014\n\010LOG_INFO\020\004"
|
||||
"\022\r\n\tLOG_DEBUG\020\005\022\r\n\tLOG_TRACE\020\006*6\n\tUserSt"
|
||||
"ate\022\016\n\nSIGNED_OUT\020\000\022\n\n\006LOCKED\020\001\022\r\n\tCONNE"
|
||||
"CTED\020\002*\242\001\n\016LoginErrorType\022\033\n\027USERNAME_PA"
|
||||
"SSWORD_ERROR\020\000\022\r\n\tFREE_USER\020\001\022\024\n\020CONNECT"
|
||||
"ION_ERROR\020\002\022\r\n\tTFA_ERROR\020\003\022\r\n\tTFA_ABORT\020"
|
||||
"\004\022\027\n\023TWO_PASSWORDS_ERROR\020\005\022\027\n\023TWO_PASSWO"
|
||||
"RDS_ABORT\020\006*[\n\017UpdateErrorType\022\027\n\023UPDATE"
|
||||
"_MANUAL_ERROR\020\000\022\026\n\022UPDATE_FORCE_ERROR\020\001\022"
|
||||
"\027\n\023UPDATE_SILENT_ERROR\020\002*k\n\022DiskCacheErr"
|
||||
"orType\022 \n\034DISK_CACHE_UNAVAILABLE_ERROR\020\000"
|
||||
"\022\036\n\032CANT_MOVE_DISK_CACHE_ERROR\020\001\022\023\n\017DISK"
|
||||
"_FULL_ERROR\020\002*\335\001\n\033MailServerSettingsErro"
|
||||
"rType\022\033\n\027IMAP_PORT_STARTUP_ERROR\020\000\022\033\n\027SM"
|
||||
"TP_PORT_STARTUP_ERROR\020\001\022\032\n\026IMAP_PORT_CHA"
|
||||
"NGE_ERROR\020\002\022\032\n\026SMTP_PORT_CHANGE_ERROR\020\003\022"
|
||||
"%\n!IMAP_CONNECTION_MODE_CHANGE_ERROR\020\004\022%"
|
||||
"\n!SMTP_CONNECTION_MODE_CHANGE_ERROR\020\005*S\n"
|
||||
"\tErrorCode\022\021\n\rUNKNOWN_ERROR\020\000\022\031\n\025TLS_CER"
|
||||
"T_EXPORT_ERROR\020\001\022\030\n\024TLS_KEY_EXPORT_ERROR"
|
||||
"\020\0022\250\036\n\006Bridge\022I\n\013CheckTokens\022\034.google.pr"
|
||||
"otobuf.StringValue\032\034.google.protobuf.Str"
|
||||
"ingValue\022\?\n\013AddLogEntry\022\030.grpc.AddLogEnt"
|
||||
"ryRequest\032\026.google.protobuf.Empty\022:\n\010Gui"
|
||||
"Ready\022\026.google.protobuf.Empty\032\026.google.p"
|
||||
"rotobuf.Empty\0226\n\004Quit\022\026.google.protobuf."
|
||||
"Empty\032\026.google.protobuf.Empty\0229\n\007Restart"
|
||||
"\022\026.google.protobuf.Empty\032\026.google.protob"
|
||||
"uf.Empty\022C\n\rShowOnStartup\022\026.google.proto"
|
||||
"buf.Empty\032\032.google.protobuf.BoolValue\022F\n"
|
||||
"\020ShowSplashScreen\022\026.google.protobuf.Empt"
|
||||
"y\032\032.google.protobuf.BoolValue\022E\n\017IsFirst"
|
||||
"GuiStart\022\026.google.protobuf.Empty\032\032.googl"
|
||||
"e.protobuf.BoolValue\022F\n\020SetIsAutostartOn"
|
||||
"\022\032.google.protobuf.BoolValue\032\026.google.pr"
|
||||
"otobuf.Empty\022C\n\rIsAutostartOn\022\026.google.p"
|
||||
"rotobuf.Empty\032\032.google.protobuf.BoolValu"
|
||||
"e\022F\n\020SetIsBetaEnabled\022\032.google.protobuf."
|
||||
"BoolValue\032\026.google.protobuf.Empty\022C\n\rIsB"
|
||||
"etaEnabled\022\026.google.protobuf.Empty\032\032.goo"
|
||||
"gle.protobuf.BoolValue\022I\n\023SetIsAllMailVi"
|
||||
"sible\022\032.google.protobuf.BoolValue\032\026.goog"
|
||||
"le.protobuf.Empty\022F\n\020IsAllMailVisible\022\026."
|
||||
"google.protobuf.Empty\032\032.google.protobuf."
|
||||
"BoolValue\022<\n\004GoOs\022\026.google.protobuf.Empt"
|
||||
"y\032\034.google.protobuf.StringValue\022>\n\014Trigg"
|
||||
"erReset\022\026.google.protobuf.Empty\032\026.google"
|
||||
".protobuf.Empty\022\?\n\007Version\022\026.google.prot"
|
||||
"obuf.Empty\032\034.google.protobuf.StringValue"
|
||||
"\022C\n\013LicensePath\022\026.google.protobuf.Empty\032"
|
||||
"\034.google.protobuf.StringValue\022L\n\024Release"
|
||||
"NotesPageLink\022\026.google.protobuf.Empty\032\034."
|
||||
"google.protobuf.StringValue\022N\n\026Dependenc"
|
||||
"yLicensesLink\022\026.google.protobuf.Empty\032\034."
|
||||
"google.protobuf.StringValue\022G\n\017LandingPa"
|
||||
"geLink\022\026.google.protobuf.Empty\032\034.google."
|
||||
"protobuf.StringValue\022J\n\022SetColorSchemeNa"
|
||||
"me\022\034.google.protobuf.StringValue\032\026.googl"
|
||||
"e.protobuf.Empty\022G\n\017ColorSchemeName\022\026.go"
|
||||
"ogle.protobuf.Empty\032\034.google.protobuf.St"
|
||||
"ringValue\022J\n\022CurrentEmailClient\022\026.google"
|
||||
".protobuf.Empty\032\034.google.protobuf.String"
|
||||
"Value\022;\n\tReportBug\022\026.grpc.ReportBugReque"
|
||||
"st\032\026.google.protobuf.Empty\022E\n\rForceLaunc"
|
||||
"her\022\034.google.protobuf.StringValue\032\026.goog"
|
||||
"le.protobuf.Empty\022I\n\021SetMainExecutable\022\034"
|
||||
".google.protobuf.StringValue\032\026.google.pr"
|
||||
"otobuf.Empty\0223\n\005Login\022\022.grpc.LoginReques"
|
||||
"t\032\026.google.protobuf.Empty\0226\n\010Login2FA\022\022."
|
||||
"grpc.LoginRequest\032\026.google.protobuf.Empt"
|
||||
"y\022=\n\017Login2Passwords\022\022.grpc.LoginRequest"
|
||||
"\032\026.google.protobuf.Empty\022=\n\nLoginAbort\022\027"
|
||||
".grpc.LoginAbortRequest\032\026.google.protobu"
|
||||
"f.Empty\022=\n\013CheckUpdate\022\026.google.protobuf"
|
||||
".Empty\032\026.google.protobuf.Empty\022\?\n\rInstal"
|
||||
"lUpdate\022\026.google.protobuf.Empty\032\026.google"
|
||||
".protobuf.Empty\022L\n\026SetIsAutomaticUpdateO"
|
||||
"n\022\032.google.protobuf.BoolValue\032\026.google.p"
|
||||
"rotobuf.Empty\022I\n\023IsAutomaticUpdateOn\022\026.g"
|
||||
"oogle.protobuf.Empty\032\032.google.protobuf.B"
|
||||
"oolValue\022E\n\rDiskCachePath\022\026.google.proto"
|
||||
"buf.Empty\032\034.google.protobuf.StringValue\022"
|
||||
"H\n\020SetDiskCachePath\022\034.google.protobuf.St"
|
||||
"ringValue\032\026.google.protobuf.Empty\022E\n\017Set"
|
||||
"IsDoHEnabled\022\032.google.protobuf.BoolValue"
|
||||
"\032\026.google.protobuf.Empty\022B\n\014IsDoHEnabled"
|
||||
"\022\026.google.protobuf.Empty\032\032.google.protob"
|
||||
"uf.BoolValue\022D\n\022MailServerSettings\022\026.goo"
|
||||
"gle.protobuf.Empty\032\026.grpc.ImapSmtpSettin"
|
||||
"gs\022G\n\025SetMailServerSettings\022\026.grpc.ImapS"
|
||||
"mtpSettings\032\026.google.protobuf.Empty\022@\n\010H"
|
||||
"ostname\022\026.google.protobuf.Empty\032\034.google"
|
||||
".protobuf.StringValue\022E\n\nIsPortFree\022\033.go"
|
||||
"ogle.protobuf.Int32Value\032\032.google.protob"
|
||||
"uf.BoolValue\022N\n\022AvailableKeychains\022\026.goo"
|
||||
"gle.protobuf.Empty\032 .grpc.AvailableKeych"
|
||||
"ainsResponse\022J\n\022SetCurrentKeychain\022\034.goo"
|
||||
"gle.protobuf.StringValue\032\026.google.protob"
|
||||
"uf.Empty\022G\n\017CurrentKeychain\022\026.google.pro"
|
||||
"tobuf.Empty\032\034.google.protobuf.StringValu"
|
||||
"e\022=\n\013GetUserList\022\026.google.protobuf.Empty"
|
||||
"\032\026.grpc.UserListResponse\0223\n\007GetUser\022\034.go"
|
||||
"ogle.protobuf.StringValue\032\n.grpc.User\022F\n"
|
||||
"\020SetUserSplitMode\022\032.grpc.UserSplitModeRe"
|
||||
"quest\032\026.google.protobuf.Empty\022B\n\nLogoutU"
|
||||
"ser\022\034.google.protobuf.StringValue\032\026.goog"
|
||||
"le.protobuf.Empty\022B\n\nRemoveUser\022\034.google"
|
||||
".protobuf.StringValue\032\026.google.protobuf."
|
||||
"Empty\022Q\n\026ConfigureUserAppleMail\022\037.grpc.C"
|
||||
"onfigureAppleMailRequest\032\026.google.protob"
|
||||
"uf.Empty\022\?\n\016RunEventStream\022\030.grpc.EventS"
|
||||
"treamRequest\032\021.grpc.StreamEvent0\001\022A\n\017Sto"
|
||||
"pEventStream\022\026.google.protobuf.Empty\032\026.g"
|
||||
"oogle.protobuf.EmptyB6Z4github.com/Proto"
|
||||
"nMail/proton-bridge/v3/internal/grpcb\006pr"
|
||||
"oto3"
|
||||
"\022@\n\010LogsPath\022\026.google.protobuf.Empty\032\034.g"
|
||||
"oogle.protobuf.StringValue\022C\n\013LicensePat"
|
||||
"h\022\026.google.protobuf.Empty\032\034.google.proto"
|
||||
"buf.StringValue\022L\n\024ReleaseNotesPageLink\022"
|
||||
"\026.google.protobuf.Empty\032\034.google.protobu"
|
||||
"f.StringValue\022N\n\026DependencyLicensesLink\022"
|
||||
"\026.google.protobuf.Empty\032\034.google.protobu"
|
||||
"f.StringValue\022G\n\017LandingPageLink\022\026.googl"
|
||||
"e.protobuf.Empty\032\034.google.protobuf.Strin"
|
||||
"gValue\022J\n\022SetColorSchemeName\022\034.google.pr"
|
||||
"otobuf.StringValue\032\026.google.protobuf.Emp"
|
||||
"ty\022G\n\017ColorSchemeName\022\026.google.protobuf."
|
||||
"Empty\032\034.google.protobuf.StringValue\022J\n\022C"
|
||||
"urrentEmailClient\022\026.google.protobuf.Empt"
|
||||
"y\032\034.google.protobuf.StringValue\022;\n\tRepor"
|
||||
"tBug\022\026.grpc.ReportBugRequest\032\026.google.pr"
|
||||
"otobuf.Empty\022M\n\025ExportTLSCertificates\022\034."
|
||||
"google.protobuf.StringValue\032\026.google.pro"
|
||||
"tobuf.Empty\022E\n\rForceLauncher\022\034.google.pr"
|
||||
"otobuf.StringValue\032\026.google.protobuf.Emp"
|
||||
"ty\022I\n\021SetMainExecutable\022\034.google.protobu"
|
||||
"f.StringValue\032\026.google.protobuf.Empty\0223\n"
|
||||
"\005Login\022\022.grpc.LoginRequest\032\026.google.prot"
|
||||
"obuf.Empty\0226\n\010Login2FA\022\022.grpc.LoginReque"
|
||||
"st\032\026.google.protobuf.Empty\022=\n\017Login2Pass"
|
||||
"words\022\022.grpc.LoginRequest\032\026.google.proto"
|
||||
"buf.Empty\022=\n\nLoginAbort\022\027.grpc.LoginAbor"
|
||||
"tRequest\032\026.google.protobuf.Empty\022=\n\013Chec"
|
||||
"kUpdate\022\026.google.protobuf.Empty\032\026.google"
|
||||
".protobuf.Empty\022\?\n\rInstallUpdate\022\026.googl"
|
||||
"e.protobuf.Empty\032\026.google.protobuf.Empty"
|
||||
"\022L\n\026SetIsAutomaticUpdateOn\022\032.google.prot"
|
||||
"obuf.BoolValue\032\026.google.protobuf.Empty\022I"
|
||||
"\n\023IsAutomaticUpdateOn\022\026.google.protobuf."
|
||||
"Empty\032\032.google.protobuf.BoolValue\022E\n\rDis"
|
||||
"kCachePath\022\026.google.protobuf.Empty\032\034.goo"
|
||||
"gle.protobuf.StringValue\022H\n\020SetDiskCache"
|
||||
"Path\022\034.google.protobuf.StringValue\032\026.goo"
|
||||
"gle.protobuf.Empty\022E\n\017SetIsDoHEnabled\022\032."
|
||||
"google.protobuf.BoolValue\032\026.google.proto"
|
||||
"buf.Empty\022B\n\014IsDoHEnabled\022\026.google.proto"
|
||||
"buf.Empty\032\032.google.protobuf.BoolValue\022D\n"
|
||||
"\022MailServerSettings\022\026.google.protobuf.Em"
|
||||
"pty\032\026.grpc.ImapSmtpSettings\022G\n\025SetMailSe"
|
||||
"rverSettings\022\026.grpc.ImapSmtpSettings\032\026.g"
|
||||
"oogle.protobuf.Empty\022@\n\010Hostname\022\026.googl"
|
||||
"e.protobuf.Empty\032\034.google.protobuf.Strin"
|
||||
"gValue\022E\n\nIsPortFree\022\033.google.protobuf.I"
|
||||
"nt32Value\032\032.google.protobuf.BoolValue\022N\n"
|
||||
"\022AvailableKeychains\022\026.google.protobuf.Em"
|
||||
"pty\032 .grpc.AvailableKeychainsResponse\022J\n"
|
||||
"\022SetCurrentKeychain\022\034.google.protobuf.St"
|
||||
"ringValue\032\026.google.protobuf.Empty\022G\n\017Cur"
|
||||
"rentKeychain\022\026.google.protobuf.Empty\032\034.g"
|
||||
"oogle.protobuf.StringValue\022=\n\013GetUserLis"
|
||||
"t\022\026.google.protobuf.Empty\032\026.grpc.UserLis"
|
||||
"tResponse\0223\n\007GetUser\022\034.google.protobuf.S"
|
||||
"tringValue\032\n.grpc.User\022F\n\020SetUserSplitMo"
|
||||
"de\022\032.grpc.UserSplitModeRequest\032\026.google."
|
||||
"protobuf.Empty\022B\n\nLogoutUser\022\034.google.pr"
|
||||
"otobuf.StringValue\032\026.google.protobuf.Emp"
|
||||
"ty\022B\n\nRemoveUser\022\034.google.protobuf.Strin"
|
||||
"gValue\032\026.google.protobuf.Empty\022Q\n\026Config"
|
||||
"ureUserAppleMail\022\037.grpc.ConfigureAppleMa"
|
||||
"ilRequest\032\026.google.protobuf.Empty\022\?\n\016Run"
|
||||
"EventStream\022\030.grpc.EventStreamRequest\032\021."
|
||||
"grpc.StreamEvent0\001\022A\n\017StopEventStream\022\026."
|
||||
"google.protobuf.Empty\032\026.google.protobuf."
|
||||
"EmptyB6Z4github.com/ProtonMail/proton-br"
|
||||
"idge/v3/internal/grpcb\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_bridge_2eproto_deps[2] = {
|
||||
&::descriptor_table_google_2fprotobuf_2fempty_2eproto,
|
||||
@ -1537,9 +1566,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_bridge_2eproto_deps
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_bridge_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_bridge_2eproto = {
|
||||
false, false, 9564, descriptor_table_protodef_bridge_2eproto,
|
||||
false, false, 9829, descriptor_table_protodef_bridge_2eproto,
|
||||
"bridge.proto",
|
||||
&descriptor_table_bridge_2eproto_once, descriptor_table_bridge_2eproto_deps, 2, 55,
|
||||
&descriptor_table_bridge_2eproto_once, descriptor_table_bridge_2eproto_deps, 2, 56,
|
||||
schemas, file_default_instances, TableStruct_bridge_2eproto::offsets,
|
||||
file_level_metadata_bridge_2eproto, file_level_enum_descriptors_bridge_2eproto,
|
||||
file_level_service_descriptors_bridge_2eproto,
|
||||
@ -1652,6 +1681,21 @@ bool MailServerSettingsErrorType_IsValid(int value) {
|
||||
}
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_bridge_2eproto);
|
||||
return file_level_enum_descriptors_bridge_2eproto[6];
|
||||
}
|
||||
bool ErrorCode_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@ -4671,6 +4715,7 @@ class StreamEvent::_Internal {
|
||||
static const ::grpc::KeychainEvent& keychain(const StreamEvent* msg);
|
||||
static const ::grpc::MailEvent& mail(const StreamEvent* msg);
|
||||
static const ::grpc::UserEvent& user(const StreamEvent* msg);
|
||||
static const ::grpc::GenericErrorEvent& genericerror(const StreamEvent* msg);
|
||||
};
|
||||
|
||||
const ::grpc::AppEvent&
|
||||
@ -4705,6 +4750,10 @@ const ::grpc::UserEvent&
|
||||
StreamEvent::_Internal::user(const StreamEvent* msg) {
|
||||
return *msg->_impl_.event_.user_;
|
||||
}
|
||||
const ::grpc::GenericErrorEvent&
|
||||
StreamEvent::_Internal::genericerror(const StreamEvent* msg) {
|
||||
return *msg->_impl_.event_.genericerror_;
|
||||
}
|
||||
void StreamEvent::set_allocated_app(::grpc::AppEvent* app) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_event();
|
||||
@ -4825,6 +4874,21 @@ void StreamEvent::set_allocated_user(::grpc::UserEvent* user) {
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:grpc.StreamEvent.user)
|
||||
}
|
||||
void StreamEvent::set_allocated_genericerror(::grpc::GenericErrorEvent* genericerror) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_event();
|
||||
if (genericerror) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(genericerror);
|
||||
if (message_arena != submessage_arena) {
|
||||
genericerror = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, genericerror, submessage_arena);
|
||||
}
|
||||
set_has_genericerror();
|
||||
_impl_.event_.genericerror_ = genericerror;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:grpc.StreamEvent.genericError)
|
||||
}
|
||||
StreamEvent::StreamEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@ -4882,6 +4946,11 @@ StreamEvent::StreamEvent(const StreamEvent& from)
|
||||
from._internal_user());
|
||||
break;
|
||||
}
|
||||
case kGenericError: {
|
||||
_this->_internal_mutable_genericerror()->::grpc::GenericErrorEvent::MergeFrom(
|
||||
from._internal_genericerror());
|
||||
break;
|
||||
}
|
||||
case EVENT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@ -4972,6 +5041,12 @@ void StreamEvent::clear_event() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kGenericError: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.event_.genericerror_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case EVENT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@ -5060,6 +5135,14 @@ const char* StreamEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .grpc.GenericErrorEvent genericError = 9;
|
||||
case 9:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_genericerror(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@ -5145,6 +5228,13 @@ uint8_t* StreamEvent::_InternalSerialize(
|
||||
_Internal::user(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .grpc.GenericErrorEvent genericError = 9;
|
||||
if (_internal_has_genericerror()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(9, _Internal::genericerror(this),
|
||||
_Internal::genericerror(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@ -5218,6 +5308,13 @@ size_t StreamEvent::ByteSizeLong() const {
|
||||
*_impl_.event_.user_);
|
||||
break;
|
||||
}
|
||||
// .grpc.GenericErrorEvent genericError = 9;
|
||||
case kGenericError: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.event_.genericerror_);
|
||||
break;
|
||||
}
|
||||
case EVENT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@ -5281,6 +5378,11 @@ void StreamEvent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
|
||||
from._internal_user());
|
||||
break;
|
||||
}
|
||||
case kGenericError: {
|
||||
_this->_internal_mutable_genericerror()->::grpc::GenericErrorEvent::MergeFrom(
|
||||
from._internal_genericerror());
|
||||
break;
|
||||
}
|
||||
case EVENT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@ -13012,6 +13114,187 @@ void UserChangedEvent::InternalSwap(UserChangedEvent* other) {
|
||||
file_level_metadata_bridge_2eproto[54]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class GenericErrorEvent::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
GenericErrorEvent::GenericErrorEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:grpc.GenericErrorEvent)
|
||||
}
|
||||
GenericErrorEvent::GenericErrorEvent(const GenericErrorEvent& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
GenericErrorEvent* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.code_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.code_ = from._impl_.code_;
|
||||
// @@protoc_insertion_point(copy_constructor:grpc.GenericErrorEvent)
|
||||
}
|
||||
|
||||
inline void GenericErrorEvent::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.code_){0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
GenericErrorEvent::~GenericErrorEvent() {
|
||||
// @@protoc_insertion_point(destructor:grpc.GenericErrorEvent)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void GenericErrorEvent::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void GenericErrorEvent::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void GenericErrorEvent::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:grpc.GenericErrorEvent)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.code_ = 0;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* GenericErrorEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .grpc.ErrorCode code = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
_internal_set_code(static_cast<::grpc::ErrorCode>(val));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* GenericErrorEvent::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:grpc.GenericErrorEvent)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .grpc.ErrorCode code = 1;
|
||||
if (this->_internal_code() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
||||
1, this->_internal_code(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::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:grpc.GenericErrorEvent)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t GenericErrorEvent::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:grpc.GenericErrorEvent)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .grpc.ErrorCode code = 1;
|
||||
if (this->_internal_code() != 0) {
|
||||
total_size += 1 +
|
||||
::_pbi::WireFormatLite::EnumSize(this->_internal_code());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GenericErrorEvent::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
GenericErrorEvent::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GenericErrorEvent::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void GenericErrorEvent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<GenericErrorEvent*>(&to_msg);
|
||||
auto& from = static_cast<const GenericErrorEvent&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:grpc.GenericErrorEvent)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_code() != 0) {
|
||||
_this->_internal_set_code(from._internal_code());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void GenericErrorEvent::CopyFrom(const GenericErrorEvent& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:grpc.GenericErrorEvent)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool GenericErrorEvent::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void GenericErrorEvent::InternalSwap(GenericErrorEvent* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.code_, other->_impl_.code_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GenericErrorEvent::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_bridge_2eproto_getter, &descriptor_table_bridge_2eproto_once,
|
||||
file_level_metadata_bridge_2eproto[55]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace grpc
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
@ -13235,6 +13518,10 @@ template<> PROTOBUF_NOINLINE ::grpc::UserChangedEvent*
|
||||
Arena::CreateMaybeMessage< ::grpc::UserChangedEvent >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::grpc::UserChangedEvent >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::grpc::GenericErrorEvent*
|
||||
Arena::CreateMaybeMessage< ::grpc::GenericErrorEvent >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::grpc::GenericErrorEvent >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
@ -91,6 +91,9 @@ extern DiskCachePathChangedEventDefaultTypeInternal _DiskCachePathChangedEvent_d
|
||||
class EventStreamRequest;
|
||||
struct EventStreamRequestDefaultTypeInternal;
|
||||
extern EventStreamRequestDefaultTypeInternal _EventStreamRequest_default_instance_;
|
||||
class GenericErrorEvent;
|
||||
struct GenericErrorEventDefaultTypeInternal;
|
||||
extern GenericErrorEventDefaultTypeInternal _GenericErrorEvent_default_instance_;
|
||||
class HasNoKeychainEvent;
|
||||
struct HasNoKeychainEventDefaultTypeInternal;
|
||||
extern HasNoKeychainEventDefaultTypeInternal _HasNoKeychainEvent_default_instance_;
|
||||
@ -230,6 +233,7 @@ template<> ::grpc::DiskCacheEvent* Arena::CreateMaybeMessage<::grpc::DiskCacheEv
|
||||
template<> ::grpc::DiskCachePathChangeFinishedEvent* Arena::CreateMaybeMessage<::grpc::DiskCachePathChangeFinishedEvent>(Arena*);
|
||||
template<> ::grpc::DiskCachePathChangedEvent* Arena::CreateMaybeMessage<::grpc::DiskCachePathChangedEvent>(Arena*);
|
||||
template<> ::grpc::EventStreamRequest* Arena::CreateMaybeMessage<::grpc::EventStreamRequest>(Arena*);
|
||||
template<> ::grpc::GenericErrorEvent* Arena::CreateMaybeMessage<::grpc::GenericErrorEvent>(Arena*);
|
||||
template<> ::grpc::HasNoKeychainEvent* Arena::CreateMaybeMessage<::grpc::HasNoKeychainEvent>(Arena*);
|
||||
template<> ::grpc::ImapSmtpSettings* Arena::CreateMaybeMessage<::grpc::ImapSmtpSettings>(Arena*);
|
||||
template<> ::grpc::InternetStatusEvent* Arena::CreateMaybeMessage<::grpc::InternetStatusEvent>(Arena*);
|
||||
@ -441,6 +445,32 @@ inline bool MailServerSettingsErrorType_Parse(
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MailServerSettingsErrorType>(
|
||||
MailServerSettingsErrorType_descriptor(), name, value);
|
||||
}
|
||||
enum ErrorCode : int {
|
||||
UNKNOWN_ERROR = 0,
|
||||
TLS_CERT_EXPORT_ERROR = 1,
|
||||
TLS_KEY_EXPORT_ERROR = 2,
|
||||
ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||
ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
||||
};
|
||||
bool ErrorCode_IsValid(int value);
|
||||
constexpr ErrorCode ErrorCode_MIN = UNKNOWN_ERROR;
|
||||
constexpr ErrorCode ErrorCode_MAX = TLS_KEY_EXPORT_ERROR;
|
||||
constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1;
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor();
|
||||
template<typename T>
|
||||
inline const std::string& ErrorCode_Name(T enum_t_value) {
|
||||
static_assert(::std::is_same<T, ErrorCode>::value ||
|
||||
::std::is_integral<T>::value,
|
||||
"Incorrect type passed to function ErrorCode_Name.");
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||
ErrorCode_descriptor(), enum_t_value);
|
||||
}
|
||||
inline bool ErrorCode_Parse(
|
||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ErrorCode* value) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ErrorCode>(
|
||||
ErrorCode_descriptor(), name, value);
|
||||
}
|
||||
// ===================================================================
|
||||
|
||||
class AddLogEntryRequest final :
|
||||
@ -2494,6 +2524,7 @@ class StreamEvent final :
|
||||
kKeychain = 6,
|
||||
kMail = 7,
|
||||
kUser = 8,
|
||||
kGenericError = 9,
|
||||
EVENT_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@ -2583,6 +2614,7 @@ class StreamEvent final :
|
||||
kKeychainFieldNumber = 6,
|
||||
kMailFieldNumber = 7,
|
||||
kUserFieldNumber = 8,
|
||||
kGenericErrorFieldNumber = 9,
|
||||
};
|
||||
// .grpc.AppEvent app = 1;
|
||||
bool has_app() const;
|
||||
@ -2728,6 +2760,24 @@ class StreamEvent final :
|
||||
::grpc::UserEvent* user);
|
||||
::grpc::UserEvent* unsafe_arena_release_user();
|
||||
|
||||
// .grpc.GenericErrorEvent genericError = 9;
|
||||
bool has_genericerror() const;
|
||||
private:
|
||||
bool _internal_has_genericerror() const;
|
||||
public:
|
||||
void clear_genericerror();
|
||||
const ::grpc::GenericErrorEvent& genericerror() const;
|
||||
PROTOBUF_NODISCARD ::grpc::GenericErrorEvent* release_genericerror();
|
||||
::grpc::GenericErrorEvent* mutable_genericerror();
|
||||
void set_allocated_genericerror(::grpc::GenericErrorEvent* genericerror);
|
||||
private:
|
||||
const ::grpc::GenericErrorEvent& _internal_genericerror() const;
|
||||
::grpc::GenericErrorEvent* _internal_mutable_genericerror();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_genericerror(
|
||||
::grpc::GenericErrorEvent* genericerror);
|
||||
::grpc::GenericErrorEvent* unsafe_arena_release_genericerror();
|
||||
|
||||
void clear_event();
|
||||
EventCase event_case() const;
|
||||
// @@protoc_insertion_point(class_scope:grpc.StreamEvent)
|
||||
@ -2741,6 +2791,7 @@ class StreamEvent final :
|
||||
void set_has_keychain();
|
||||
void set_has_mail();
|
||||
void set_has_user();
|
||||
void set_has_genericerror();
|
||||
|
||||
inline bool has_event() const;
|
||||
inline void clear_has_event();
|
||||
@ -2760,6 +2811,7 @@ class StreamEvent final :
|
||||
::grpc::KeychainEvent* keychain_;
|
||||
::grpc::MailEvent* mail_;
|
||||
::grpc::UserEvent* user_;
|
||||
::grpc::GenericErrorEvent* genericerror_;
|
||||
} event_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@ -9496,6 +9548,154 @@ class UserChangedEvent final :
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_bridge_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class GenericErrorEvent final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.GenericErrorEvent) */ {
|
||||
public:
|
||||
inline GenericErrorEvent() : GenericErrorEvent(nullptr) {}
|
||||
~GenericErrorEvent() override;
|
||||
explicit PROTOBUF_CONSTEXPR GenericErrorEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
GenericErrorEvent(const GenericErrorEvent& from);
|
||||
GenericErrorEvent(GenericErrorEvent&& from) noexcept
|
||||
: GenericErrorEvent() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline GenericErrorEvent& operator=(const GenericErrorEvent& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline GenericErrorEvent& operator=(GenericErrorEvent&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetOwningArena() == from.GetOwningArena()
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
&& GetOwningArena() != nullptr
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
) {
|
||||
InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return default_instance().GetMetadata().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return default_instance().GetMetadata().reflection;
|
||||
}
|
||||
static const GenericErrorEvent& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const GenericErrorEvent* internal_default_instance() {
|
||||
return reinterpret_cast<const GenericErrorEvent*>(
|
||||
&_GenericErrorEvent_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
55;
|
||||
|
||||
friend void swap(GenericErrorEvent& a, GenericErrorEvent& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(GenericErrorEvent* other) {
|
||||
if (other == this) return;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() != nullptr &&
|
||||
GetOwningArena() == other->GetOwningArena()) {
|
||||
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() == other->GetOwningArena()) {
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(GenericErrorEvent* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
GenericErrorEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<GenericErrorEvent>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const GenericErrorEvent& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const GenericErrorEvent& from) {
|
||||
GenericErrorEvent::MergeImpl(*this, from);
|
||||
}
|
||||
private:
|
||||
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
|
||||
public:
|
||||
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;
|
||||
uint8_t* _InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(GenericErrorEvent* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "grpc.GenericErrorEvent";
|
||||
}
|
||||
protected:
|
||||
explicit GenericErrorEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kCodeFieldNumber = 1,
|
||||
};
|
||||
// .grpc.ErrorCode code = 1;
|
||||
void clear_code();
|
||||
::grpc::ErrorCode code() const;
|
||||
void set_code(::grpc::ErrorCode value);
|
||||
private:
|
||||
::grpc::ErrorCode _internal_code() const;
|
||||
void _internal_set_code(::grpc::ErrorCode value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:grpc.GenericErrorEvent)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
int code_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_bridge_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
@ -11473,6 +11673,80 @@ inline ::grpc::UserEvent* StreamEvent::mutable_user() {
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .grpc.GenericErrorEvent genericError = 9;
|
||||
inline bool StreamEvent::_internal_has_genericerror() const {
|
||||
return event_case() == kGenericError;
|
||||
}
|
||||
inline bool StreamEvent::has_genericerror() const {
|
||||
return _internal_has_genericerror();
|
||||
}
|
||||
inline void StreamEvent::set_has_genericerror() {
|
||||
_impl_._oneof_case_[0] = kGenericError;
|
||||
}
|
||||
inline void StreamEvent::clear_genericerror() {
|
||||
if (_internal_has_genericerror()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.event_.genericerror_;
|
||||
}
|
||||
clear_has_event();
|
||||
}
|
||||
}
|
||||
inline ::grpc::GenericErrorEvent* StreamEvent::release_genericerror() {
|
||||
// @@protoc_insertion_point(field_release:grpc.StreamEvent.genericError)
|
||||
if (_internal_has_genericerror()) {
|
||||
clear_has_event();
|
||||
::grpc::GenericErrorEvent* temp = _impl_.event_.genericerror_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.event_.genericerror_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::grpc::GenericErrorEvent& StreamEvent::_internal_genericerror() const {
|
||||
return _internal_has_genericerror()
|
||||
? *_impl_.event_.genericerror_
|
||||
: reinterpret_cast< ::grpc::GenericErrorEvent&>(::grpc::_GenericErrorEvent_default_instance_);
|
||||
}
|
||||
inline const ::grpc::GenericErrorEvent& StreamEvent::genericerror() const {
|
||||
// @@protoc_insertion_point(field_get:grpc.StreamEvent.genericError)
|
||||
return _internal_genericerror();
|
||||
}
|
||||
inline ::grpc::GenericErrorEvent* StreamEvent::unsafe_arena_release_genericerror() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:grpc.StreamEvent.genericError)
|
||||
if (_internal_has_genericerror()) {
|
||||
clear_has_event();
|
||||
::grpc::GenericErrorEvent* temp = _impl_.event_.genericerror_;
|
||||
_impl_.event_.genericerror_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void StreamEvent::unsafe_arena_set_allocated_genericerror(::grpc::GenericErrorEvent* genericerror) {
|
||||
clear_event();
|
||||
if (genericerror) {
|
||||
set_has_genericerror();
|
||||
_impl_.event_.genericerror_ = genericerror;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.StreamEvent.genericError)
|
||||
}
|
||||
inline ::grpc::GenericErrorEvent* StreamEvent::_internal_mutable_genericerror() {
|
||||
if (!_internal_has_genericerror()) {
|
||||
clear_event();
|
||||
set_has_genericerror();
|
||||
_impl_.event_.genericerror_ = CreateMaybeMessage< ::grpc::GenericErrorEvent >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.event_.genericerror_;
|
||||
}
|
||||
inline ::grpc::GenericErrorEvent* StreamEvent::mutable_genericerror() {
|
||||
::grpc::GenericErrorEvent* _msg = _internal_mutable_genericerror();
|
||||
// @@protoc_insertion_point(field_mutable:grpc.StreamEvent.genericError)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool StreamEvent::has_event() const {
|
||||
return event_case() != EVENT_NOT_SET;
|
||||
}
|
||||
@ -15180,6 +15454,30 @@ inline void UserChangedEvent::set_allocated_userid(std::string* userid) {
|
||||
// @@protoc_insertion_point(field_set_allocated:grpc.UserChangedEvent.userID)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// GenericErrorEvent
|
||||
|
||||
// .grpc.ErrorCode code = 1;
|
||||
inline void GenericErrorEvent::clear_code() {
|
||||
_impl_.code_ = 0;
|
||||
}
|
||||
inline ::grpc::ErrorCode GenericErrorEvent::_internal_code() const {
|
||||
return static_cast< ::grpc::ErrorCode >(_impl_.code_);
|
||||
}
|
||||
inline ::grpc::ErrorCode GenericErrorEvent::code() const {
|
||||
// @@protoc_insertion_point(field_get:grpc.GenericErrorEvent.code)
|
||||
return _internal_code();
|
||||
}
|
||||
inline void GenericErrorEvent::_internal_set_code(::grpc::ErrorCode value) {
|
||||
|
||||
_impl_.code_ = value;
|
||||
}
|
||||
inline void GenericErrorEvent::set_code(::grpc::ErrorCode value) {
|
||||
_internal_set_code(value);
|
||||
// @@protoc_insertion_point(field_set:grpc.GenericErrorEvent.code)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
@ -15291,6 +15589,8 @@ inline void UserChangedEvent::set_allocated_userid(std::string* userid) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
@ -15328,6 +15628,11 @@ template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::grpc::MailServerSettingsErrorType>() {
|
||||
return ::grpc::MailServerSettingsErrorType_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::grpc::ErrorCode> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::grpc::ErrorCode>() {
|
||||
return ::grpc::ErrorCode_descriptor();
|
||||
}
|
||||
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user