From 33cdb840261f7f7106b2df28a4c8adce8cb5c701 Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Fri, 9 Apr 2021 17:23:00 -0700 Subject: [PATCH] chore: Remove secure sockets, proxy panel, enginepath file Remove secure sockets (no longer supported in buttplug), the unused proxy panel, and the enginepath file (no longer needed after moving to buttplug-rs). --- packages/core/src/GithubReleaseManager.ts | 2 - packages/core/src/IntifaceBackendManager.ts | 51 - packages/core/src/IntifaceConfiguration.ts | 46 - packages/core/src/ProxyServer.ts | 11 - packages/core/src/ServerProcess.ts | 16 +- .../src/components/ProxyPanel/ProxyPanel.ts | 9 - .../src/components/ProxyPanel/ProxyPanel.vue | 7 - .../components/ServerPanel/ServerPanel.vue | 12 +- .../components/SettingsPanel/SettingsPanel.ts | 45 +- .../SettingsPanel/SettingsPanel.vue | 43 - .../src/components/SetupPanel/SetupPanel.ts | 18 - .../src/components/SetupPanel/SetupPanel.vue | 48 +- packages/protocols/intiface.proto | 21 - packages/protocols/protocols/intiface_pb.d.ts | 460 +------ packages/protocols/protocols/intiface_pb.js | 1181 ++--------------- 15 files changed, 102 insertions(+), 1868 deletions(-) delete mode 100644 packages/core/src/ProxyServer.ts delete mode 100644 packages/intiface/src/components/ProxyPanel/ProxyPanel.ts delete mode 100644 packages/intiface/src/components/ProxyPanel/ProxyPanel.vue diff --git a/packages/core/src/GithubReleaseManager.ts b/packages/core/src/GithubReleaseManager.ts index 3195ddc..31bfb21 100644 --- a/packages/core/src/GithubReleaseManager.ts +++ b/packages/core/src/GithubReleaseManager.ts @@ -228,8 +228,6 @@ export class GithubReleaseManager extends EventEmitter { if (os.platform() !== "win32") { await chmod(engineExecutable, 0o755); } - const enginePathFile = path.join(IntifaceUtils.UserConfigDirectory, "enginepath.txt"); - await writeFile(enginePathFile, engineDirectory, { encoding: "utf-8" }); // TODO Should download some sort of checksum to check against. // TODO Should probably emit some sort of installerFinished event? } diff --git a/packages/core/src/IntifaceBackendManager.ts b/packages/core/src/IntifaceBackendManager.ts index 35346b2..b783d8c 100644 --- a/packages/core/src/IntifaceBackendManager.ts +++ b/packages/core/src/IntifaceBackendManager.ts @@ -212,42 +212,6 @@ export class IntifaceBackendManager extends EventEmitter { } } - private async MaybeGenerateCert() { - if (await this._certManager.HasGeneratedCerts()) { - return; - } - await this._certManager.GenerateCerts(); - // Use the certificate check to update the new configuration file values - await this.CheckForCertificates(); - this.UpdateFrontendConfiguration(); - } - - private async GenerateCert(aMsg: IntifaceProtocols.IntifaceFrontendMessage) { - await this.MaybeGenerateCert(); - this._connector.SendMessage(IntifaceProtocols.IntifaceBackendMessage.create({ - certificateGenerated: IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.create(), - })); - this._connector.SendOk(aMsg); - } - - private async RunCertificateAcceptanceServer(aMsg: IntifaceProtocols.IntifaceFrontendMessage) { - await this.MaybeGenerateCert(); - await this._certManager.RunCertAcceptanceServer(this._configManager.Config.WebsocketServerSecurePort); - const msg = IntifaceProtocols.IntifaceBackendMessage.create({ - certificateAcceptanceServerRunning: - IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.create({ - insecurePort: this._certManager.InsecurePort, - }), - }); - msg.index = aMsg.index; - this._connector.SendMessage(msg); - } - - private async StopCertificateAcceptanceServer(aMsg: IntifaceProtocols.IntifaceFrontendMessage) { - this._certManager.StopServer(); - this._connector.SendOk(aMsg); - } - private async CheckForUpdates(aMsg: IntifaceProtocols.IntifaceFrontendMessage | null) { if (!this._configManager.Config.IsOnline) { this._logger.debug("Uncertain of online status, not running update check."); @@ -350,21 +314,6 @@ export class IntifaceBackendManager extends EventEmitter { return; } - if (aMsg.generateCertificate !== null) { - await this.GenerateCert(aMsg); - return; - } - - if (aMsg.runCertificateAcceptanceServer !== null) { - await this.RunCertificateAcceptanceServer(aMsg); - return; - } - - if (aMsg.stopCertificateAcceptanceServer !== null) { - await this.StopCertificateAcceptanceServer(aMsg); - return; - } - if (aMsg.checkForUpdates !== null) { await this.CheckForUpdates(aMsg); return; diff --git a/packages/core/src/IntifaceConfiguration.ts b/packages/core/src/IntifaceConfiguration.ts index 3412c6a..8ee33bf 100644 --- a/packages/core/src/IntifaceConfiguration.ts +++ b/packages/core/src/IntifaceConfiguration.ts @@ -6,14 +6,10 @@ export class IntifaceConfiguration extends EventEmitter { private serverName: string = "Intiface Server"; private serverMaxPingTime: number = 0; private useWebsocketServerInsecure: boolean = true; - private useWebsocketServerSecure: boolean = false; - private useProxyServer: boolean = false; // private deviceListUpdateURL: string; private websocketServerAllInterfaces: boolean = false; private websocketServerInsecurePort: number = 12345; - private websocketServerSecurePort: number = 12346; private serverLogLevel: ButtplugLogLevel = "Info"; - private proxyServerPort: number = 12347; private usePrereleaseEngine: boolean = false; private currentEngineVersion: string = ""; private currentDeviceFileVersion: number = 0; @@ -84,24 +80,6 @@ export class IntifaceConfiguration extends EventEmitter { this.emit("update"); } - public get UseWebsocketServerSecure(): boolean { - return this.useWebsocketServerSecure; - } - - public set UseWebsocketServerSecure(aShouldListen: boolean) { - this.useWebsocketServerSecure = aShouldListen; - this.emit("update"); - } - - public get UseProxyServer(): boolean { - return this.useProxyServer; - } - - public set UseProxyServer(aShouldListen: boolean) { - this.useProxyServer = aShouldListen; - this.emit("update"); - } - public get WebsocketServerInsecurePort(): number { return this.websocketServerInsecurePort; } @@ -114,30 +92,6 @@ export class IntifaceConfiguration extends EventEmitter { this.emit("update"); } - public get WebsocketServerSecurePort(): number { - return this.websocketServerSecurePort; - } - - public set WebsocketServerSecurePort(aPort: number) { - if (aPort < 1 || aPort > 65536) { - throw new Error("Invalid network port number."); - } - this.websocketServerSecurePort = aPort; - this.emit("update"); - } - - public get ProxyServerPort(): number { - return this.proxyServerPort; - } - - public set ProxyServerPort(aPort: number) { - if (aPort < 1 || aPort > 65536) { - throw new Error("Invalid network port number."); - } - this.proxyServerPort = aPort; - this.emit("update"); - } - public get CurrentEngineVersion(): string { return this.currentEngineVersion; } diff --git a/packages/core/src/ProxyServer.ts b/packages/core/src/ProxyServer.ts deleted file mode 100644 index 81cdad3..0000000 --- a/packages/core/src/ProxyServer.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as ws from "ws"; - -// Creates 2 websocket servers: -// -// - one that can accept connections from the Buttplug proxy -// website -// - one as a normal "server" socket -// -// Then routes them to each other. -export class ProxyServer { -} diff --git a/packages/core/src/ServerProcess.ts b/packages/core/src/ServerProcess.ts index 83e23ec..1b316fc 100644 --- a/packages/core/src/ServerProcess.ts +++ b/packages/core/src/ServerProcess.ts @@ -117,21 +117,13 @@ export class ServerProcess extends EventEmitter { // process args.push(`--frontendpipe`); args.push(`--stayopen`); - if (this._config.UseWebsocketServerInsecure || this._config.UseWebsocketServerSecure) { + if (this._config.UseWebsocketServerInsecure) { if (this._config.WebsocketServerAllInterfaces) { args.push(`--wsallinterfaces`); } if (this._config.UseWebsocketServerInsecure) { args.push(`--wsinsecureport`, `${this._config.WebsocketServerInsecurePort}`); } - if (this._config.UseWebsocketServerSecure && this._config.HasCertificates) { - const cg = new CertManager(IntifaceUtils.UserConfigDirectory); - if (await cg.HasGeneratedCerts()) { - args.push(`--wssecureport`, `${this._config.WebsocketServerSecurePort}`); - args.push(`--wscertfile`, `${cg.CertFilePath}`); - args.push(`--wsprivfile`, `${cg.PrivKeyFilePath}`); - } - } } if (this._config.ServerLogLevel !== "Off") { args.push(`--log`, `${this._config.ServerLogLevel}`); @@ -228,11 +220,7 @@ export class ServerProcess extends EventEmitter { private async GetServerExecutablePath(): Promise { const exists = promisify(fs.exists); const readFile = promisify(fs.readFile); - const exePathFile = path.join(IntifaceUtils.UserConfigDirectory, "enginepath.txt"); - if (!(await exists(exePathFile))) { - return Promise.reject(new Error(`Cannot find engine path file at ${exePathFile}.`)); - } - const exePath = (await readFile(exePathFile, { encoding: "utf8" })).trim(); + const exePath = path.join(IntifaceUtils.UserConfigDirectory, "engine"); if (!(await exists(exePath))) { return Promise.reject(new Error(`Server executable install location ${exePath} does not exist.`)); } diff --git a/packages/intiface/src/components/ProxyPanel/ProxyPanel.ts b/packages/intiface/src/components/ProxyPanel/ProxyPanel.ts deleted file mode 100644 index d74c518..0000000 --- a/packages/intiface/src/components/ProxyPanel/ProxyPanel.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Vue from "vue"; -import { Component } from "vue-property-decorator"; - -@Component({ - components: { - }, -}) -export default class ProxyPanel extends Vue { -} diff --git a/packages/intiface/src/components/ProxyPanel/ProxyPanel.vue b/packages/intiface/src/components/ProxyPanel/ProxyPanel.vue deleted file mode 100644 index efaeaf7..0000000 --- a/packages/intiface/src/components/ProxyPanel/ProxyPanel.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/packages/intiface/src/components/ServerPanel/ServerPanel.vue b/packages/intiface/src/components/ServerPanel/ServerPanel.vue index 5063a5b..8e8b571 100644 --- a/packages/intiface/src/components/ServerPanel/ServerPanel.vue +++ b/packages/intiface/src/components/ServerPanel/ServerPanel.vue @@ -12,20 +12,10 @@ - Regular Websockets (on {{config.websocketServerAllInterfaces ? "[All Interfaces]" : "127.0.0.1"}}:{{ config.websocketServerInsecurePort }}) + Websockets (on {{config.websocketServerAllInterfaces ? "[All Interfaces]" : "127.0.0.1"}}:{{ config.websocketServerInsecurePort }}) Used for local applications (games, movie sync, etc...), or web applications in Chrome/Firefox/Edge, etc.... - - - - - - SSL Websockets (on {{config.websocketServerAllInterfaces ? "[All Interfaces]" : "127.0.0.1"}}:{{ config.websocketServerSecurePort }}) - Disabled because cert generation has not happened. Cert generation is available on the Setting tab. - Only needed in special instances, such as web applications on other machines, etc... - - {{ serverRunning ? serverStates[1] : serverStates[0] }} diff --git a/packages/intiface/src/components/SettingsPanel/SettingsPanel.ts b/packages/intiface/src/components/SettingsPanel/SettingsPanel.ts index 8743dd2..288164e 100644 --- a/packages/intiface/src/components/SettingsPanel/SettingsPanel.ts +++ b/packages/intiface/src/components/SettingsPanel/SettingsPanel.ts @@ -21,15 +21,12 @@ export default class SettingsPanel extends Vue { private panelExpand: boolean[] = []; private panelOpen: number[] = [0, 1, 2, 3, 4]; private factoryResetDialog: boolean = false; - private certAcceptDialog: boolean = false; private internalInsecureWebsocketPort: number = 1; - private internalSecureWebsocketPort: number = 1; private internalErrors: string[] = []; private mounted() { this.UpdateRequirements(); this.internalInsecureWebsocketPort = this.config.WebsocketServerInsecurePort; - this.internalSecureWebsocketPort = this.config.WebsocketServerSecurePort; if (window.location.hash === "#version") { this.panelExpand = [true]; } @@ -86,22 +83,6 @@ export default class SettingsPanel extends Vue { } } - private async StartCertServer() { - if (!this.config.HasCertificates) { - await this.connector.GenerateCertificate(); - } - let maybe_port = await this.connector.RunCertificateAcceptanceServer(); - if (maybe_port.certificateAcceptanceServerRunning) { - let port = maybe_port.certificateAcceptanceServerRunning!.insecurePort!; - window.open(`http://127.0.0.1:${port}`, "_blank"); - } - } - - private async StopCertServer() { - await this.connector.StopCertificateAcceptanceServer(); - this.certAcceptDialog = false; - } - private async ResetIntiface() { await this.connector.ResetIntifaceConfiguration(); } @@ -113,34 +94,10 @@ export default class SettingsPanel extends Vue { private set InsecureWebsocketPort(port: number) { try { this.internalInsecureWebsocketPort = port; - if (this.internalInsecureWebsocketPort == this.internalSecureWebsocketPort) { - this.internalErrors = ["Regular and SSL Websocket port numbers must be different"] - return; - } else { - this.internalErrors = [] - } + this.internalErrors = [] this.config.WebsocketServerInsecurePort = port; } catch { // pass here, vee-validate will handle the error on the frontend. } } - - private get SecureWebsocketPort(): number { - return this.internalSecureWebsocketPort; - } - - private set SecureWebsocketPort(port: number) { - try { - this.internalSecureWebsocketPort = port; - if (this.internalInsecureWebsocketPort == this.internalSecureWebsocketPort) { - this.internalErrors = ["Regular and SSL Websocket port numbers must be different"] - return; - } else { - this.internalErrors = [] - } - this.config.WebsocketServerSecurePort = port; - } catch { - // pass here, vee-validate will handle the error on the frontend. - } - } } diff --git a/packages/intiface/src/components/SettingsPanel/SettingsPanel.vue b/packages/intiface/src/components/SettingsPanel/SettingsPanel.vue index 67b6f00..23e6da0 100644 --- a/packages/intiface/src/components/SettingsPanel/SettingsPanel.vue +++ b/packages/intiface/src/components/SettingsPanel/SettingsPanel.vue @@ -125,22 +125,6 @@ - - - - - - - Other Settings -
- - - Run Initial Setup - - -
-
- - - - - - Certificate Acceptance - Your certs have been generated, but you will now need to accept them in Firefox. Hit the "Launch" button below to open the webpage, or "Cancel" to quit. Note that this will not work in Chrome, and Chrome does not require local certs. - - - Launch - Cancel - - - - - -
diff --git a/packages/intiface/src/components/SetupPanel/SetupPanel.ts b/packages/intiface/src/components/SetupPanel/SetupPanel.ts index 08d1a55..8bdbfbf 100644 --- a/packages/intiface/src/components/SetupPanel/SetupPanel.ts +++ b/packages/intiface/src/components/SetupPanel/SetupPanel.ts @@ -12,8 +12,6 @@ import { FrontendConnector, IntifaceConfiguration, IntifaceUtils } from "intifac export default class SetupPanel extends Vue { private setupStep: number = 1; private updateFinished: boolean = false; - private usingFirefox: boolean = false; - private certAcceptDialog: boolean = false; @Prop() private connector!: FrontendConnector; @Prop() @@ -23,20 +21,4 @@ export default class SetupPanel extends Vue { this.config.HasRunSetup = true; router.push("home"); } - - private async StartCertServer() { - if (!this.config.HasCertificates) { - await this.connector.GenerateCertificate(); - } - let maybe_port = await this.connector.RunCertificateAcceptanceServer(); - if (maybe_port.certificateAcceptanceServerRunning) { - let port = maybe_port.certificateAcceptanceServerRunning!.insecurePort!; - window.open(`http://127.0.0.1:${port}`, "_blank"); - } - } - - private async StopCertServer() { - await this.connector.StopCertificateAcceptanceServer(); - this.certAcceptDialog = false; - } } diff --git a/packages/intiface/src/components/SetupPanel/SetupPanel.vue b/packages/intiface/src/components/SetupPanel/SetupPanel.vue index 8512ff3..d123d2a 100644 --- a/packages/intiface/src/components/SetupPanel/SetupPanel.vue +++ b/packages/intiface/src/components/SetupPanel/SetupPanel.vue @@ -29,7 +29,7 @@
-

First off, we're going to need to download an engine and device file for Intiface to run. Downloads will usually anywhere between 5-50mb, depending on the operating system you're on. Download speeds may vary, but there's a progress bar to let you know how much time is left.

+

We're going to need to download an engine and device file for Intiface to run. Downloads will usually anywhere between 5-50mb, depending on the operating system you're on. Download speeds may vary, but there's a progress bar to let you know how much time is left.

-

All done! Hit the button below to continue.

- Continue +

All done!

+

All finished with setup! Now get out there and Intiface!

+ Start Intiface
- - - -
-

In some very specific instances, Intiface will need to be hosted over self-signed SSL. This mostly relates to those wanting to use Intiface across remote machines using web applications. If this isn't you or you don't know what we're talking about, just ignore this and hit continue.

- -
-
-

Depending on how you plan on using Intiface, you may need to set up a secure certificate.

-

If this applies to you (i.e. you know why you'd need this), hit the Run Cert Setup button below and you'll be taken to the Cert Setup website in your browser.

-

If you aren't sure if this applies to you, you can always run the Cert Server from the Settings panel of Intiface Desktop.

- - - - - - Certificate Acceptance - Your certs have been generated, but you will now need to accept them in your browser. Hit the "Launch" button below to open the webpage, or "Cancel" to quit. You can restart acceptance later in the Settings Panel if needed. Note that this may not work in Chrome, and Chrome does not require local certs. - - - Launch - Cancel - - - - - -
- Continue -
- - -

All done!

-

All finished with setup! Now get out there and Intiface!

- Start Intiface -
diff --git a/packages/protocols/intiface.proto b/packages/protocols/intiface.proto index c90eb22..e986b39 100644 --- a/packages/protocols/intiface.proto +++ b/packages/protocols/intiface.proto @@ -107,13 +107,6 @@ message IntifaceBackendMessage { string error = 3; }; - message CertificateGenerated { - } - - message CertificateAcceptanceServerRunning { - uint32 insecure_port = 1; - }; - // JSON block representing a js object for winston, for display in // the Frontend message LogMessage { @@ -126,8 +119,6 @@ message IntifaceBackendMessage { Configuration configuration = 4; UpdatesAvailable updates_available = 5; DownloadProgress download_progress = 6; - CertificateAcceptanceServerRunning certificate_acceptance_server_running = 7; - CertificateGenerated certificate_generated = 8; ServerProcessMessage server_process_message = 9; LogMessage log_message = 10; ProcessError process_error = 11; @@ -187,15 +178,6 @@ message IntifaceFrontendMessage { message UpdateApplication { }; - message GenerateCertificate { - }; - - message RunCertificateAcceptanceServer { - }; - - message StopCertificateAcceptanceServer { - }; - message ResetIntifaceConfiguration { }; @@ -221,9 +203,6 @@ message IntifaceFrontendMessage { UpdateEngine update_engine = 11; UpdateDeviceFile update_device_file = 12; UpdateApplication update_application = 13; - GenerateCertificate generate_certificate = 14; - RunCertificateAcceptanceServer run_certificate_acceptance_server = 15; - StopCertificateAcceptanceServer stop_certificate_acceptance_server = 16; LogMessage log_message = 17; CancelUpdate cancel_update = 18; ResetIntifaceConfiguration reset_intiface_configuration = 19; diff --git a/packages/protocols/protocols/intiface_pb.d.ts b/packages/protocols/protocols/intiface_pb.d.ts index 5aab8ba..d5155cf 100644 --- a/packages/protocols/protocols/intiface_pb.d.ts +++ b/packages/protocols/protocols/intiface_pb.d.ts @@ -1145,12 +1145,6 @@ export namespace IntifaceProtocols { /** IntifaceBackendMessage downloadProgress */ downloadProgress?: (IntifaceProtocols.IntifaceBackendMessage.IDownloadProgress|null); - /** IntifaceBackendMessage certificateAcceptanceServerRunning */ - certificateAcceptanceServerRunning?: (IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning|null); - - /** IntifaceBackendMessage certificateGenerated */ - certificateGenerated?: (IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated|null); - /** IntifaceBackendMessage serverProcessMessage */ serverProcessMessage?: (IntifaceProtocols.IServerProcessMessage|null); @@ -1188,12 +1182,6 @@ export namespace IntifaceProtocols { /** IntifaceBackendMessage downloadProgress. */ public downloadProgress?: (IntifaceProtocols.IntifaceBackendMessage.IDownloadProgress|null); - /** IntifaceBackendMessage certificateAcceptanceServerRunning. */ - public certificateAcceptanceServerRunning?: (IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning|null); - - /** IntifaceBackendMessage certificateGenerated. */ - public certificateGenerated?: (IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated|null); - /** IntifaceBackendMessage serverProcessMessage. */ public serverProcessMessage?: (IntifaceProtocols.IServerProcessMessage|null); @@ -1204,7 +1192,7 @@ export namespace IntifaceProtocols { public processError?: (IntifaceProtocols.IntifaceBackendMessage.IProcessError|null); /** IntifaceBackendMessage msg. */ - public msg?: ("ok"|"error"|"configuration"|"updatesAvailable"|"downloadProgress"|"certificateAcceptanceServerRunning"|"certificateGenerated"|"serverProcessMessage"|"logMessage"|"processError"); + public msg?: ("ok"|"error"|"configuration"|"updatesAvailable"|"downloadProgress"|"serverProcessMessage"|"logMessage"|"processError"); /** * Creates a new IntifaceBackendMessage instance using the specified properties. @@ -1837,180 +1825,6 @@ export namespace IntifaceProtocols { public toJSON(): { [k: string]: any }; } - /** Properties of a CertificateGenerated. */ - interface ICertificateGenerated { - } - - /** Represents a CertificateGenerated. */ - class CertificateGenerated implements ICertificateGenerated { - - /** - * Constructs a new CertificateGenerated. - * @param [properties] Properties to set - */ - constructor(properties?: IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated); - - /** - * Creates a new CertificateGenerated instance using the specified properties. - * @param [properties] Properties to set - * @returns CertificateGenerated instance - */ - public static create(properties?: IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated): IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated; - - /** - * Encodes the specified CertificateGenerated message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.verify|verify} messages. - * @param message CertificateGenerated message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CertificateGenerated message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.verify|verify} messages. - * @param message CertificateGenerated message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CertificateGenerated message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CertificateGenerated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated; - - /** - * Decodes a CertificateGenerated message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CertificateGenerated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated; - - /** - * Verifies a CertificateGenerated message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CertificateGenerated message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CertificateGenerated - */ - public static fromObject(object: { [k: string]: any }): IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated; - - /** - * Creates a plain object from a CertificateGenerated message. Also converts values to other types if specified. - * @param message CertificateGenerated - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CertificateGenerated to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CertificateAcceptanceServerRunning. */ - interface ICertificateAcceptanceServerRunning { - - /** CertificateAcceptanceServerRunning insecurePort */ - insecurePort?: (number|null); - } - - /** Represents a CertificateAcceptanceServerRunning. */ - class CertificateAcceptanceServerRunning implements ICertificateAcceptanceServerRunning { - - /** - * Constructs a new CertificateAcceptanceServerRunning. - * @param [properties] Properties to set - */ - constructor(properties?: IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning); - - /** CertificateAcceptanceServerRunning insecurePort. */ - public insecurePort: number; - - /** - * Creates a new CertificateAcceptanceServerRunning instance using the specified properties. - * @param [properties] Properties to set - * @returns CertificateAcceptanceServerRunning instance - */ - public static create(properties?: IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning): IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning; - - /** - * Encodes the specified CertificateAcceptanceServerRunning message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.verify|verify} messages. - * @param message CertificateAcceptanceServerRunning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CertificateAcceptanceServerRunning message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.verify|verify} messages. - * @param message CertificateAcceptanceServerRunning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CertificateAcceptanceServerRunning message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CertificateAcceptanceServerRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning; - - /** - * Decodes a CertificateAcceptanceServerRunning message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CertificateAcceptanceServerRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning; - - /** - * Verifies a CertificateAcceptanceServerRunning message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CertificateAcceptanceServerRunning message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CertificateAcceptanceServerRunning - */ - public static fromObject(object: { [k: string]: any }): IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning; - - /** - * Creates a plain object from a CertificateAcceptanceServerRunning message. Also converts values to other types if specified. - * @param message CertificateAcceptanceServerRunning - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CertificateAcceptanceServerRunning to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a LogMessage. */ interface ILogMessage { @@ -2144,15 +1958,6 @@ export namespace IntifaceProtocols { /** IntifaceFrontendMessage updateApplication */ updateApplication?: (IntifaceProtocols.IntifaceFrontendMessage.IUpdateApplication|null); - /** IntifaceFrontendMessage generateCertificate */ - generateCertificate?: (IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate|null); - - /** IntifaceFrontendMessage runCertificateAcceptanceServer */ - runCertificateAcceptanceServer?: (IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer|null); - - /** IntifaceFrontendMessage stopCertificateAcceptanceServer */ - stopCertificateAcceptanceServer?: (IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer|null); - /** IntifaceFrontendMessage logMessage */ logMessage?: (IntifaceProtocols.IntifaceFrontendMessage.ILogMessage|null); @@ -2211,15 +2016,6 @@ export namespace IntifaceProtocols { /** IntifaceFrontendMessage updateApplication. */ public updateApplication?: (IntifaceProtocols.IntifaceFrontendMessage.IUpdateApplication|null); - /** IntifaceFrontendMessage generateCertificate. */ - public generateCertificate?: (IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate|null); - - /** IntifaceFrontendMessage runCertificateAcceptanceServer. */ - public runCertificateAcceptanceServer?: (IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer|null); - - /** IntifaceFrontendMessage stopCertificateAcceptanceServer. */ - public stopCertificateAcceptanceServer?: (IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer|null); - /** IntifaceFrontendMessage logMessage. */ public logMessage?: (IntifaceProtocols.IntifaceFrontendMessage.ILogMessage|null); @@ -2230,7 +2026,7 @@ export namespace IntifaceProtocols { public resetIntifaceConfiguration?: (IntifaceProtocols.IntifaceFrontendMessage.IResetIntifaceConfiguration|null); /** IntifaceFrontendMessage msg. */ - public msg?: ("ok"|"error"|"ready"|"startProcess"|"stopProcess"|"startProxy"|"stopProxy"|"updateConfig"|"checkForUpdates"|"updateEngine"|"updateDeviceFile"|"updateApplication"|"generateCertificate"|"runCertificateAcceptanceServer"|"stopCertificateAcceptanceServer"|"logMessage"|"cancelUpdate"|"resetIntifaceConfiguration"); + public msg?: ("ok"|"error"|"ready"|"startProcess"|"stopProcess"|"startProxy"|"stopProxy"|"updateConfig"|"checkForUpdates"|"updateEngine"|"updateDeviceFile"|"updateApplication"|"logMessage"|"cancelUpdate"|"resetIntifaceConfiguration"); /** * Creates a new IntifaceFrontendMessage instance using the specified properties. @@ -3325,258 +3121,6 @@ export namespace IntifaceProtocols { public toJSON(): { [k: string]: any }; } - /** Properties of a GenerateCertificate. */ - interface IGenerateCertificate { - } - - /** Represents a GenerateCertificate. */ - class GenerateCertificate implements IGenerateCertificate { - - /** - * Constructs a new GenerateCertificate. - * @param [properties] Properties to set - */ - constructor(properties?: IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate); - - /** - * Creates a new GenerateCertificate instance using the specified properties. - * @param [properties] Properties to set - * @returns GenerateCertificate instance - */ - public static create(properties?: IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate): IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate; - - /** - * Encodes the specified GenerateCertificate message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.verify|verify} messages. - * @param message GenerateCertificate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GenerateCertificate message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.verify|verify} messages. - * @param message GenerateCertificate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GenerateCertificate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GenerateCertificate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate; - - /** - * Decodes a GenerateCertificate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GenerateCertificate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate; - - /** - * Verifies a GenerateCertificate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GenerateCertificate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GenerateCertificate - */ - public static fromObject(object: { [k: string]: any }): IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate; - - /** - * Creates a plain object from a GenerateCertificate message. Also converts values to other types if specified. - * @param message GenerateCertificate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GenerateCertificate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RunCertificateAcceptanceServer. */ - interface IRunCertificateAcceptanceServer { - } - - /** Represents a RunCertificateAcceptanceServer. */ - class RunCertificateAcceptanceServer implements IRunCertificateAcceptanceServer { - - /** - * Constructs a new RunCertificateAcceptanceServer. - * @param [properties] Properties to set - */ - constructor(properties?: IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer); - - /** - * Creates a new RunCertificateAcceptanceServer instance using the specified properties. - * @param [properties] Properties to set - * @returns RunCertificateAcceptanceServer instance - */ - public static create(properties?: IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer): IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer; - - /** - * Encodes the specified RunCertificateAcceptanceServer message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.verify|verify} messages. - * @param message RunCertificateAcceptanceServer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RunCertificateAcceptanceServer message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.verify|verify} messages. - * @param message RunCertificateAcceptanceServer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RunCertificateAcceptanceServer message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer; - - /** - * Decodes a RunCertificateAcceptanceServer message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer; - - /** - * Verifies a RunCertificateAcceptanceServer message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RunCertificateAcceptanceServer message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunCertificateAcceptanceServer - */ - public static fromObject(object: { [k: string]: any }): IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer; - - /** - * Creates a plain object from a RunCertificateAcceptanceServer message. Also converts values to other types if specified. - * @param message RunCertificateAcceptanceServer - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RunCertificateAcceptanceServer to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StopCertificateAcceptanceServer. */ - interface IStopCertificateAcceptanceServer { - } - - /** Represents a StopCertificateAcceptanceServer. */ - class StopCertificateAcceptanceServer implements IStopCertificateAcceptanceServer { - - /** - * Constructs a new StopCertificateAcceptanceServer. - * @param [properties] Properties to set - */ - constructor(properties?: IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer); - - /** - * Creates a new StopCertificateAcceptanceServer instance using the specified properties. - * @param [properties] Properties to set - * @returns StopCertificateAcceptanceServer instance - */ - public static create(properties?: IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer): IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer; - - /** - * Encodes the specified StopCertificateAcceptanceServer message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.verify|verify} messages. - * @param message StopCertificateAcceptanceServer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopCertificateAcceptanceServer message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.verify|verify} messages. - * @param message StopCertificateAcceptanceServer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopCertificateAcceptanceServer message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer; - - /** - * Decodes a StopCertificateAcceptanceServer message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer; - - /** - * Verifies a StopCertificateAcceptanceServer message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopCertificateAcceptanceServer message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopCertificateAcceptanceServer - */ - public static fromObject(object: { [k: string]: any }): IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer; - - /** - * Creates a plain object from a StopCertificateAcceptanceServer message. Also converts values to other types if specified. - * @param message StopCertificateAcceptanceServer - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopCertificateAcceptanceServer to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a ResetIntifaceConfiguration. */ interface IResetIntifaceConfiguration { } diff --git a/packages/protocols/protocols/intiface_pb.js b/packages/protocols/protocols/intiface_pb.js index 99a3850..7daf4fe 100644 --- a/packages/protocols/protocols/intiface_pb.js +++ b/packages/protocols/protocols/intiface_pb.js @@ -2509,8 +2509,6 @@ $root.IntifaceProtocols = (function() { * @property {IntifaceProtocols.IntifaceBackendMessage.IConfiguration|null} [configuration] IntifaceBackendMessage configuration * @property {IntifaceProtocols.IntifaceBackendMessage.IUpdatesAvailable|null} [updatesAvailable] IntifaceBackendMessage updatesAvailable * @property {IntifaceProtocols.IntifaceBackendMessage.IDownloadProgress|null} [downloadProgress] IntifaceBackendMessage downloadProgress - * @property {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning|null} [certificateAcceptanceServerRunning] IntifaceBackendMessage certificateAcceptanceServerRunning - * @property {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated|null} [certificateGenerated] IntifaceBackendMessage certificateGenerated * @property {IntifaceProtocols.IServerProcessMessage|null} [serverProcessMessage] IntifaceBackendMessage serverProcessMessage * @property {IntifaceProtocols.IntifaceBackendMessage.ILogMessage|null} [logMessage] IntifaceBackendMessage logMessage * @property {IntifaceProtocols.IntifaceBackendMessage.IProcessError|null} [processError] IntifaceBackendMessage processError @@ -2579,22 +2577,6 @@ $root.IntifaceProtocols = (function() { */ IntifaceBackendMessage.prototype.downloadProgress = null; - /** - * IntifaceBackendMessage certificateAcceptanceServerRunning. - * @member {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning|null|undefined} certificateAcceptanceServerRunning - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @instance - */ - IntifaceBackendMessage.prototype.certificateAcceptanceServerRunning = null; - - /** - * IntifaceBackendMessage certificateGenerated. - * @member {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated|null|undefined} certificateGenerated - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @instance - */ - IntifaceBackendMessage.prototype.certificateGenerated = null; - /** * IntifaceBackendMessage serverProcessMessage. * @member {IntifaceProtocols.IServerProcessMessage|null|undefined} serverProcessMessage @@ -2624,12 +2606,12 @@ $root.IntifaceProtocols = (function() { /** * IntifaceBackendMessage msg. - * @member {"ok"|"error"|"configuration"|"updatesAvailable"|"downloadProgress"|"certificateAcceptanceServerRunning"|"certificateGenerated"|"serverProcessMessage"|"logMessage"|"processError"|undefined} msg + * @member {"ok"|"error"|"configuration"|"updatesAvailable"|"downloadProgress"|"serverProcessMessage"|"logMessage"|"processError"|undefined} msg * @memberof IntifaceProtocols.IntifaceBackendMessage * @instance */ Object.defineProperty(IntifaceBackendMessage.prototype, "msg", { - get: $util.oneOfGetter($oneOfFields = ["ok", "error", "configuration", "updatesAvailable", "downloadProgress", "certificateAcceptanceServerRunning", "certificateGenerated", "serverProcessMessage", "logMessage", "processError"]), + get: $util.oneOfGetter($oneOfFields = ["ok", "error", "configuration", "updatesAvailable", "downloadProgress", "serverProcessMessage", "logMessage", "processError"]), set: $util.oneOfSetter($oneOfFields) }); @@ -2669,10 +2651,6 @@ $root.IntifaceProtocols = (function() { $root.IntifaceProtocols.IntifaceBackendMessage.UpdatesAvailable.encode(message.updatesAvailable, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.downloadProgress != null && Object.hasOwnProperty.call(message, "downloadProgress")) $root.IntifaceProtocols.IntifaceBackendMessage.DownloadProgress.encode(message.downloadProgress, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.certificateAcceptanceServerRunning != null && Object.hasOwnProperty.call(message, "certificateAcceptanceServerRunning")) - $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.encode(message.certificateAcceptanceServerRunning, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.certificateGenerated != null && Object.hasOwnProperty.call(message, "certificateGenerated")) - $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.encode(message.certificateGenerated, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.serverProcessMessage != null && Object.hasOwnProperty.call(message, "serverProcessMessage")) $root.IntifaceProtocols.ServerProcessMessage.encode(message.serverProcessMessage, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.logMessage != null && Object.hasOwnProperty.call(message, "logMessage")) @@ -2731,12 +2709,6 @@ $root.IntifaceProtocols = (function() { case 6: message.downloadProgress = $root.IntifaceProtocols.IntifaceBackendMessage.DownloadProgress.decode(reader, reader.uint32()); break; - case 7: - message.certificateAcceptanceServerRunning = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.decode(reader, reader.uint32()); - break; - case 8: - message.certificateGenerated = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.decode(reader, reader.uint32()); - break; case 9: message.serverProcessMessage = $root.IntifaceProtocols.ServerProcessMessage.decode(reader, reader.uint32()); break; @@ -2833,26 +2805,6 @@ $root.IntifaceProtocols = (function() { return "downloadProgress." + error; } } - if (message.certificateAcceptanceServerRunning != null && message.hasOwnProperty("certificateAcceptanceServerRunning")) { - if (properties.msg === 1) - return "msg: multiple values"; - properties.msg = 1; - { - var error = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.verify(message.certificateAcceptanceServerRunning); - if (error) - return "certificateAcceptanceServerRunning." + error; - } - } - if (message.certificateGenerated != null && message.hasOwnProperty("certificateGenerated")) { - if (properties.msg === 1) - return "msg: multiple values"; - properties.msg = 1; - { - var error = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.verify(message.certificateGenerated); - if (error) - return "certificateGenerated." + error; - } - } if (message.serverProcessMessage != null && message.hasOwnProperty("serverProcessMessage")) { if (properties.msg === 1) return "msg: multiple values"; @@ -2925,16 +2877,6 @@ $root.IntifaceProtocols = (function() { throw TypeError(".IntifaceProtocols.IntifaceBackendMessage.downloadProgress: object expected"); message.downloadProgress = $root.IntifaceProtocols.IntifaceBackendMessage.DownloadProgress.fromObject(object.downloadProgress); } - if (object.certificateAcceptanceServerRunning != null) { - if (typeof object.certificateAcceptanceServerRunning !== "object") - throw TypeError(".IntifaceProtocols.IntifaceBackendMessage.certificateAcceptanceServerRunning: object expected"); - message.certificateAcceptanceServerRunning = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.fromObject(object.certificateAcceptanceServerRunning); - } - if (object.certificateGenerated != null) { - if (typeof object.certificateGenerated !== "object") - throw TypeError(".IntifaceProtocols.IntifaceBackendMessage.certificateGenerated: object expected"); - message.certificateGenerated = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.fromObject(object.certificateGenerated); - } if (object.serverProcessMessage != null) { if (typeof object.serverProcessMessage !== "object") throw TypeError(".IntifaceProtocols.IntifaceBackendMessage.serverProcessMessage: object expected"); @@ -2995,16 +2937,6 @@ $root.IntifaceProtocols = (function() { if (options.oneofs) object.msg = "downloadProgress"; } - if (message.certificateAcceptanceServerRunning != null && message.hasOwnProperty("certificateAcceptanceServerRunning")) { - object.certificateAcceptanceServerRunning = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.toObject(message.certificateAcceptanceServerRunning, options); - if (options.oneofs) - object.msg = "certificateAcceptanceServerRunning"; - } - if (message.certificateGenerated != null && message.hasOwnProperty("certificateGenerated")) { - object.certificateGenerated = $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.toObject(message.certificateGenerated, options); - if (options.oneofs) - object.msg = "certificateGenerated"; - } if (message.serverProcessMessage != null && message.hasOwnProperty("serverProcessMessage")) { object.serverProcessMessage = $root.IntifaceProtocols.ServerProcessMessage.toObject(message.serverProcessMessage, options); if (options.oneofs) @@ -4219,184 +4151,24 @@ $root.IntifaceProtocols = (function() { return DownloadProgress; })(); - IntifaceBackendMessage.CertificateGenerated = (function() { - - /** - * Properties of a CertificateGenerated. - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @interface ICertificateGenerated - */ - - /** - * Constructs a new CertificateGenerated. - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @classdesc Represents a CertificateGenerated. - * @implements ICertificateGenerated - * @constructor - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated=} [properties] Properties to set - */ - function CertificateGenerated(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new CertificateGenerated instance using the specified properties. - * @function create - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated} CertificateGenerated instance - */ - CertificateGenerated.create = function create(properties) { - return new CertificateGenerated(properties); - }; - - /** - * Encodes the specified CertificateGenerated message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.verify|verify} messages. - * @function encode - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated} message CertificateGenerated message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CertificateGenerated.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified CertificateGenerated message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated.verify|verify} messages. - * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateGenerated} message CertificateGenerated message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CertificateGenerated.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CertificateGenerated message from the specified reader or buffer. - * @function decode - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated} CertificateGenerated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CertificateGenerated.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CertificateGenerated message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated} CertificateGenerated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CertificateGenerated.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CertificateGenerated message. - * @function verify - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CertificateGenerated.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a CertificateGenerated message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated} CertificateGenerated - */ - CertificateGenerated.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated) - return object; - return new $root.IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated(); - }; - - /** - * Creates a plain object from a CertificateGenerated message. Also converts values to other types if specified. - * @function toObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated} message CertificateGenerated - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CertificateGenerated.toObject = function toObject() { - return {}; - }; - - /** - * Converts this CertificateGenerated to JSON. - * @function toJSON - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateGenerated - * @instance - * @returns {Object.} JSON object - */ - CertificateGenerated.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CertificateGenerated; - })(); - - IntifaceBackendMessage.CertificateAcceptanceServerRunning = (function() { + IntifaceBackendMessage.LogMessage = (function() { /** - * Properties of a CertificateAcceptanceServerRunning. + * Properties of a LogMessage. * @memberof IntifaceProtocols.IntifaceBackendMessage - * @interface ICertificateAcceptanceServerRunning - * @property {number|null} [insecurePort] CertificateAcceptanceServerRunning insecurePort + * @interface ILogMessage + * @property {string|null} [info] LogMessage info */ /** - * Constructs a new CertificateAcceptanceServerRunning. + * Constructs a new LogMessage. * @memberof IntifaceProtocols.IntifaceBackendMessage - * @classdesc Represents a CertificateAcceptanceServerRunning. - * @implements ICertificateAcceptanceServerRunning + * @classdesc Represents a LogMessage. + * @implements ILogMessage * @constructor - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning=} [properties] Properties to set + * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage=} [properties] Properties to set */ - function CertificateAcceptanceServerRunning(properties) { + function LogMessage(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4404,75 +4176,75 @@ $root.IntifaceProtocols = (function() { } /** - * CertificateAcceptanceServerRunning insecurePort. - * @member {number} insecurePort - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * LogMessage info. + * @member {string} info + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @instance */ - CertificateAcceptanceServerRunning.prototype.insecurePort = 0; + LogMessage.prototype.info = ""; /** - * Creates a new CertificateAcceptanceServerRunning instance using the specified properties. + * Creates a new LogMessage instance using the specified properties. * @function create - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning} CertificateAcceptanceServerRunning instance + * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage=} [properties] Properties to set + * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage instance */ - CertificateAcceptanceServerRunning.create = function create(properties) { - return new CertificateAcceptanceServerRunning(properties); + LogMessage.create = function create(properties) { + return new LogMessage(properties); }; /** - * Encodes the specified CertificateAcceptanceServerRunning message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.verify|verify} messages. + * Encodes the specified LogMessage message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.LogMessage.verify|verify} messages. * @function encode - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning} message CertificateAcceptanceServerRunning message or plain object to encode + * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage} message LogMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CertificateAcceptanceServerRunning.encode = function encode(message, writer) { + LogMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.insecurePort != null && Object.hasOwnProperty.call(message, "insecurePort")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.insecurePort); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.info); return writer; }; /** - * Encodes the specified CertificateAcceptanceServerRunning message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning.verify|verify} messages. + * Encodes the specified LogMessage message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.LogMessage.verify|verify} messages. * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ICertificateAcceptanceServerRunning} message CertificateAcceptanceServerRunning message or plain object to encode + * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage} message LogMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CertificateAcceptanceServerRunning.encodeDelimited = function encodeDelimited(message, writer) { + LogMessage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CertificateAcceptanceServerRunning message from the specified reader or buffer. + * Decodes a LogMessage message from the specified reader or buffer. * @function decode - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning} CertificateAcceptanceServerRunning + * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CertificateAcceptanceServerRunning.decode = function decode(reader, length) { + LogMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.insecurePort = reader.uint32(); + message.info = reader.string(); break; default: reader.skipType(tag & 7); @@ -4483,305 +4255,115 @@ $root.IntifaceProtocols = (function() { }; /** - * Decodes a CertificateAcceptanceServerRunning message from the specified reader or buffer, length delimited. + * Decodes a LogMessage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning} CertificateAcceptanceServerRunning + * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CertificateAcceptanceServerRunning.decodeDelimited = function decodeDelimited(reader) { + LogMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CertificateAcceptanceServerRunning message. + * Verifies a LogMessage message. * @function verify - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CertificateAcceptanceServerRunning.verify = function verify(message) { + LogMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.insecurePort != null && message.hasOwnProperty("insecurePort")) - if (!$util.isInteger(message.insecurePort)) - return "insecurePort: integer expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; return null; }; /** - * Creates a CertificateAcceptanceServerRunning message from a plain object. Also converts values to their respective internal types. + * Creates a LogMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning} CertificateAcceptanceServerRunning + * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage */ - CertificateAcceptanceServerRunning.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning) + LogMessage.fromObject = function fromObject(object) { + if (object instanceof $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage) return object; - var message = new $root.IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning(); - if (object.insecurePort != null) - message.insecurePort = object.insecurePort >>> 0; + var message = new $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage(); + if (object.info != null) + message.info = String(object.info); return message; }; /** - * Creates a plain object from a CertificateAcceptanceServerRunning message. Also converts values to other types if specified. + * Creates a plain object from a LogMessage message. Also converts values to other types if specified. * @function toObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning} message CertificateAcceptanceServerRunning + * @param {IntifaceProtocols.IntifaceBackendMessage.LogMessage} message LogMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CertificateAcceptanceServerRunning.toObject = function toObject(message, options) { + LogMessage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.insecurePort = 0; - if (message.insecurePort != null && message.hasOwnProperty("insecurePort")) - object.insecurePort = message.insecurePort; + object.info = ""; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; return object; }; /** - * Converts this CertificateAcceptanceServerRunning to JSON. + * Converts this LogMessage to JSON. * @function toJSON - * @memberof IntifaceProtocols.IntifaceBackendMessage.CertificateAcceptanceServerRunning + * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage * @instance * @returns {Object.} JSON object */ - CertificateAcceptanceServerRunning.prototype.toJSON = function toJSON() { + LogMessage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CertificateAcceptanceServerRunning; + return LogMessage; })(); - IntifaceBackendMessage.LogMessage = (function() { + return IntifaceBackendMessage; + })(); - /** - * Properties of a LogMessage. - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @interface ILogMessage - * @property {string|null} [info] LogMessage info - */ + IntifaceProtocols.IntifaceFrontendMessage = (function() { - /** - * Constructs a new LogMessage. - * @memberof IntifaceProtocols.IntifaceBackendMessage - * @classdesc Represents a LogMessage. - * @implements ILogMessage - * @constructor - * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage=} [properties] Properties to set - */ - function LogMessage(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LogMessage info. - * @member {string} info - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @instance - */ - LogMessage.prototype.info = ""; - - /** - * Creates a new LogMessage instance using the specified properties. - * @function create - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage instance - */ - LogMessage.create = function create(properties) { - return new LogMessage(properties); - }; - - /** - * Encodes the specified LogMessage message. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.LogMessage.verify|verify} messages. - * @function encode - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage} message LogMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.info); - return writer; - }; - - /** - * Encodes the specified LogMessage message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceBackendMessage.LogMessage.verify|verify} messages. - * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.ILogMessage} message LogMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LogMessage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LogMessage message from the specified reader or buffer. - * @function decode - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LogMessage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LogMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LogMessage message. - * @function verify - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LogMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - return null; - }; - - /** - * Creates a LogMessage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceBackendMessage.LogMessage} LogMessage - */ - LogMessage.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage) - return object; - var message = new $root.IntifaceProtocols.IntifaceBackendMessage.LogMessage(); - if (object.info != null) - message.info = String(object.info); - return message; - }; - - /** - * Creates a plain object from a LogMessage message. Also converts values to other types if specified. - * @function toObject - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @static - * @param {IntifaceProtocols.IntifaceBackendMessage.LogMessage} message LogMessage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LogMessage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.info = ""; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - return object; - }; - - /** - * Converts this LogMessage to JSON. - * @function toJSON - * @memberof IntifaceProtocols.IntifaceBackendMessage.LogMessage - * @instance - * @returns {Object.} JSON object - */ - LogMessage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return LogMessage; - })(); - - return IntifaceBackendMessage; - })(); - - IntifaceProtocols.IntifaceFrontendMessage = (function() { - - /** - * Properties of an IntifaceFrontendMessage. - * @memberof IntifaceProtocols - * @interface IIntifaceFrontendMessage - * @property {number|null} [index] IntifaceFrontendMessage index - * @property {IntifaceProtocols.IntifaceFrontendMessage.IOk|null} [ok] IntifaceFrontendMessage ok - * @property {IntifaceProtocols.IntifaceFrontendMessage.IError|null} [error] IntifaceFrontendMessage error - * @property {IntifaceProtocols.IntifaceFrontendMessage.IReady|null} [ready] IntifaceFrontendMessage ready - * @property {IntifaceProtocols.IntifaceFrontendMessage.IStartProcess|null} [startProcess] IntifaceFrontendMessage startProcess - * @property {IntifaceProtocols.IntifaceFrontendMessage.IStopProcess|null} [stopProcess] IntifaceFrontendMessage stopProcess - * @property {IntifaceProtocols.IntifaceFrontendMessage.IStartProxy|null} [startProxy] IntifaceFrontendMessage startProxy - * @property {IntifaceProtocols.IntifaceFrontendMessage.IStopProxy|null} [stopProxy] IntifaceFrontendMessage stopProxy - * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateConfig|null} [updateConfig] IntifaceFrontendMessage updateConfig - * @property {IntifaceProtocols.IntifaceFrontendMessage.ICheckForUpdates|null} [checkForUpdates] IntifaceFrontendMessage checkForUpdates - * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateEngine|null} [updateEngine] IntifaceFrontendMessage updateEngine - * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateDeviceFile|null} [updateDeviceFile] IntifaceFrontendMessage updateDeviceFile - * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateApplication|null} [updateApplication] IntifaceFrontendMessage updateApplication - * @property {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate|null} [generateCertificate] IntifaceFrontendMessage generateCertificate - * @property {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer|null} [runCertificateAcceptanceServer] IntifaceFrontendMessage runCertificateAcceptanceServer - * @property {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer|null} [stopCertificateAcceptanceServer] IntifaceFrontendMessage stopCertificateAcceptanceServer - * @property {IntifaceProtocols.IntifaceFrontendMessage.ILogMessage|null} [logMessage] IntifaceFrontendMessage logMessage - * @property {IntifaceProtocols.IntifaceFrontendMessage.ICancelUpdate|null} [cancelUpdate] IntifaceFrontendMessage cancelUpdate - * @property {IntifaceProtocols.IntifaceFrontendMessage.IResetIntifaceConfiguration|null} [resetIntifaceConfiguration] IntifaceFrontendMessage resetIntifaceConfiguration - */ + /** + * Properties of an IntifaceFrontendMessage. + * @memberof IntifaceProtocols + * @interface IIntifaceFrontendMessage + * @property {number|null} [index] IntifaceFrontendMessage index + * @property {IntifaceProtocols.IntifaceFrontendMessage.IOk|null} [ok] IntifaceFrontendMessage ok + * @property {IntifaceProtocols.IntifaceFrontendMessage.IError|null} [error] IntifaceFrontendMessage error + * @property {IntifaceProtocols.IntifaceFrontendMessage.IReady|null} [ready] IntifaceFrontendMessage ready + * @property {IntifaceProtocols.IntifaceFrontendMessage.IStartProcess|null} [startProcess] IntifaceFrontendMessage startProcess + * @property {IntifaceProtocols.IntifaceFrontendMessage.IStopProcess|null} [stopProcess] IntifaceFrontendMessage stopProcess + * @property {IntifaceProtocols.IntifaceFrontendMessage.IStartProxy|null} [startProxy] IntifaceFrontendMessage startProxy + * @property {IntifaceProtocols.IntifaceFrontendMessage.IStopProxy|null} [stopProxy] IntifaceFrontendMessage stopProxy + * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateConfig|null} [updateConfig] IntifaceFrontendMessage updateConfig + * @property {IntifaceProtocols.IntifaceFrontendMessage.ICheckForUpdates|null} [checkForUpdates] IntifaceFrontendMessage checkForUpdates + * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateEngine|null} [updateEngine] IntifaceFrontendMessage updateEngine + * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateDeviceFile|null} [updateDeviceFile] IntifaceFrontendMessage updateDeviceFile + * @property {IntifaceProtocols.IntifaceFrontendMessage.IUpdateApplication|null} [updateApplication] IntifaceFrontendMessage updateApplication + * @property {IntifaceProtocols.IntifaceFrontendMessage.ILogMessage|null} [logMessage] IntifaceFrontendMessage logMessage + * @property {IntifaceProtocols.IntifaceFrontendMessage.ICancelUpdate|null} [cancelUpdate] IntifaceFrontendMessage cancelUpdate + * @property {IntifaceProtocols.IntifaceFrontendMessage.IResetIntifaceConfiguration|null} [resetIntifaceConfiguration] IntifaceFrontendMessage resetIntifaceConfiguration + */ /** * Constructs a new IntifaceFrontendMessage. @@ -4902,30 +4484,6 @@ $root.IntifaceProtocols = (function() { */ IntifaceFrontendMessage.prototype.updateApplication = null; - /** - * IntifaceFrontendMessage generateCertificate. - * @member {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate|null|undefined} generateCertificate - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @instance - */ - IntifaceFrontendMessage.prototype.generateCertificate = null; - - /** - * IntifaceFrontendMessage runCertificateAcceptanceServer. - * @member {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer|null|undefined} runCertificateAcceptanceServer - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @instance - */ - IntifaceFrontendMessage.prototype.runCertificateAcceptanceServer = null; - - /** - * IntifaceFrontendMessage stopCertificateAcceptanceServer. - * @member {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer|null|undefined} stopCertificateAcceptanceServer - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @instance - */ - IntifaceFrontendMessage.prototype.stopCertificateAcceptanceServer = null; - /** * IntifaceFrontendMessage logMessage. * @member {IntifaceProtocols.IntifaceFrontendMessage.ILogMessage|null|undefined} logMessage @@ -4955,12 +4513,12 @@ $root.IntifaceProtocols = (function() { /** * IntifaceFrontendMessage msg. - * @member {"ok"|"error"|"ready"|"startProcess"|"stopProcess"|"startProxy"|"stopProxy"|"updateConfig"|"checkForUpdates"|"updateEngine"|"updateDeviceFile"|"updateApplication"|"generateCertificate"|"runCertificateAcceptanceServer"|"stopCertificateAcceptanceServer"|"logMessage"|"cancelUpdate"|"resetIntifaceConfiguration"|undefined} msg + * @member {"ok"|"error"|"ready"|"startProcess"|"stopProcess"|"startProxy"|"stopProxy"|"updateConfig"|"checkForUpdates"|"updateEngine"|"updateDeviceFile"|"updateApplication"|"logMessage"|"cancelUpdate"|"resetIntifaceConfiguration"|undefined} msg * @memberof IntifaceProtocols.IntifaceFrontendMessage * @instance */ Object.defineProperty(IntifaceFrontendMessage.prototype, "msg", { - get: $util.oneOfGetter($oneOfFields = ["ok", "error", "ready", "startProcess", "stopProcess", "startProxy", "stopProxy", "updateConfig", "checkForUpdates", "updateEngine", "updateDeviceFile", "updateApplication", "generateCertificate", "runCertificateAcceptanceServer", "stopCertificateAcceptanceServer", "logMessage", "cancelUpdate", "resetIntifaceConfiguration"]), + get: $util.oneOfGetter($oneOfFields = ["ok", "error", "ready", "startProcess", "stopProcess", "startProxy", "stopProxy", "updateConfig", "checkForUpdates", "updateEngine", "updateDeviceFile", "updateApplication", "logMessage", "cancelUpdate", "resetIntifaceConfiguration"]), set: $util.oneOfSetter($oneOfFields) }); @@ -5014,12 +4572,6 @@ $root.IntifaceProtocols = (function() { $root.IntifaceProtocols.IntifaceFrontendMessage.UpdateDeviceFile.encode(message.updateDeviceFile, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.updateApplication != null && Object.hasOwnProperty.call(message, "updateApplication")) $root.IntifaceProtocols.IntifaceFrontendMessage.UpdateApplication.encode(message.updateApplication, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.generateCertificate != null && Object.hasOwnProperty.call(message, "generateCertificate")) - $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.encode(message.generateCertificate, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.runCertificateAcceptanceServer != null && Object.hasOwnProperty.call(message, "runCertificateAcceptanceServer")) - $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.encode(message.runCertificateAcceptanceServer, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.stopCertificateAcceptanceServer != null && Object.hasOwnProperty.call(message, "stopCertificateAcceptanceServer")) - $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.encode(message.stopCertificateAcceptanceServer, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.logMessage != null && Object.hasOwnProperty.call(message, "logMessage")) $root.IntifaceProtocols.IntifaceFrontendMessage.LogMessage.encode(message.logMessage, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.cancelUpdate != null && Object.hasOwnProperty.call(message, "cancelUpdate")) @@ -5099,15 +4651,6 @@ $root.IntifaceProtocols = (function() { case 13: message.updateApplication = $root.IntifaceProtocols.IntifaceFrontendMessage.UpdateApplication.decode(reader, reader.uint32()); break; - case 14: - message.generateCertificate = $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.decode(reader, reader.uint32()); - break; - case 15: - message.runCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.decode(reader, reader.uint32()); - break; - case 16: - message.stopCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.decode(reader, reader.uint32()); - break; case 17: message.logMessage = $root.IntifaceProtocols.IntifaceFrontendMessage.LogMessage.decode(reader, reader.uint32()); break; @@ -5274,36 +4817,6 @@ $root.IntifaceProtocols = (function() { return "updateApplication." + error; } } - if (message.generateCertificate != null && message.hasOwnProperty("generateCertificate")) { - if (properties.msg === 1) - return "msg: multiple values"; - properties.msg = 1; - { - var error = $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.verify(message.generateCertificate); - if (error) - return "generateCertificate." + error; - } - } - if (message.runCertificateAcceptanceServer != null && message.hasOwnProperty("runCertificateAcceptanceServer")) { - if (properties.msg === 1) - return "msg: multiple values"; - properties.msg = 1; - { - var error = $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.verify(message.runCertificateAcceptanceServer); - if (error) - return "runCertificateAcceptanceServer." + error; - } - } - if (message.stopCertificateAcceptanceServer != null && message.hasOwnProperty("stopCertificateAcceptanceServer")) { - if (properties.msg === 1) - return "msg: multiple values"; - properties.msg = 1; - { - var error = $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.verify(message.stopCertificateAcceptanceServer); - if (error) - return "stopCertificateAcceptanceServer." + error; - } - } if (message.logMessage != null && message.hasOwnProperty("logMessage")) { if (properties.msg === 1) return "msg: multiple values"; @@ -5411,21 +4924,6 @@ $root.IntifaceProtocols = (function() { throw TypeError(".IntifaceProtocols.IntifaceFrontendMessage.updateApplication: object expected"); message.updateApplication = $root.IntifaceProtocols.IntifaceFrontendMessage.UpdateApplication.fromObject(object.updateApplication); } - if (object.generateCertificate != null) { - if (typeof object.generateCertificate !== "object") - throw TypeError(".IntifaceProtocols.IntifaceFrontendMessage.generateCertificate: object expected"); - message.generateCertificate = $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.fromObject(object.generateCertificate); - } - if (object.runCertificateAcceptanceServer != null) { - if (typeof object.runCertificateAcceptanceServer !== "object") - throw TypeError(".IntifaceProtocols.IntifaceFrontendMessage.runCertificateAcceptanceServer: object expected"); - message.runCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.fromObject(object.runCertificateAcceptanceServer); - } - if (object.stopCertificateAcceptanceServer != null) { - if (typeof object.stopCertificateAcceptanceServer !== "object") - throw TypeError(".IntifaceProtocols.IntifaceFrontendMessage.stopCertificateAcceptanceServer: object expected"); - message.stopCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.fromObject(object.stopCertificateAcceptanceServer); - } if (object.logMessage != null) { if (typeof object.logMessage !== "object") throw TypeError(".IntifaceProtocols.IntifaceFrontendMessage.logMessage: object expected"); @@ -5521,21 +5019,6 @@ $root.IntifaceProtocols = (function() { if (options.oneofs) object.msg = "updateApplication"; } - if (message.generateCertificate != null && message.hasOwnProperty("generateCertificate")) { - object.generateCertificate = $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.toObject(message.generateCertificate, options); - if (options.oneofs) - object.msg = "generateCertificate"; - } - if (message.runCertificateAcceptanceServer != null && message.hasOwnProperty("runCertificateAcceptanceServer")) { - object.runCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.toObject(message.runCertificateAcceptanceServer, options); - if (options.oneofs) - object.msg = "runCertificateAcceptanceServer"; - } - if (message.stopCertificateAcceptanceServer != null && message.hasOwnProperty("stopCertificateAcceptanceServer")) { - object.stopCertificateAcceptanceServer = $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.toObject(message.stopCertificateAcceptanceServer, options); - if (options.oneofs) - object.msg = "stopCertificateAcceptanceServer"; - } if (message.logMessage != null && message.hasOwnProperty("logMessage")) { object.logMessage = $root.IntifaceProtocols.IntifaceFrontendMessage.LogMessage.toObject(message.logMessage, options); if (options.oneofs) @@ -7539,486 +7022,6 @@ $root.IntifaceProtocols = (function() { return UpdateApplication; })(); - IntifaceFrontendMessage.GenerateCertificate = (function() { - - /** - * Properties of a GenerateCertificate. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @interface IGenerateCertificate - */ - - /** - * Constructs a new GenerateCertificate. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @classdesc Represents a GenerateCertificate. - * @implements IGenerateCertificate - * @constructor - * @param {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate=} [properties] Properties to set - */ - function GenerateCertificate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GenerateCertificate instance using the specified properties. - * @function create - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate} GenerateCertificate instance - */ - GenerateCertificate.create = function create(properties) { - return new GenerateCertificate(properties); - }; - - /** - * Encodes the specified GenerateCertificate message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.verify|verify} messages. - * @function encode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate} message GenerateCertificate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateCertificate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GenerateCertificate message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate.verify|verify} messages. - * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IGenerateCertificate} message GenerateCertificate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateCertificate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenerateCertificate message from the specified reader or buffer. - * @function decode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate} GenerateCertificate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateCertificate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenerateCertificate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate} GenerateCertificate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateCertificate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenerateCertificate message. - * @function verify - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenerateCertificate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GenerateCertificate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate} GenerateCertificate - */ - GenerateCertificate.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate) - return object; - return new $root.IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate(); - }; - - /** - * Creates a plain object from a GenerateCertificate message. Also converts values to other types if specified. - * @function toObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate} message GenerateCertificate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenerateCertificate.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GenerateCertificate to JSON. - * @function toJSON - * @memberof IntifaceProtocols.IntifaceFrontendMessage.GenerateCertificate - * @instance - * @returns {Object.} JSON object - */ - GenerateCertificate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GenerateCertificate; - })(); - - IntifaceFrontendMessage.RunCertificateAcceptanceServer = (function() { - - /** - * Properties of a RunCertificateAcceptanceServer. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @interface IRunCertificateAcceptanceServer - */ - - /** - * Constructs a new RunCertificateAcceptanceServer. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @classdesc Represents a RunCertificateAcceptanceServer. - * @implements IRunCertificateAcceptanceServer - * @constructor - * @param {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer=} [properties] Properties to set - */ - function RunCertificateAcceptanceServer(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new RunCertificateAcceptanceServer instance using the specified properties. - * @function create - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer} RunCertificateAcceptanceServer instance - */ - RunCertificateAcceptanceServer.create = function create(properties) { - return new RunCertificateAcceptanceServer(properties); - }; - - /** - * Encodes the specified RunCertificateAcceptanceServer message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.verify|verify} messages. - * @function encode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer} message RunCertificateAcceptanceServer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunCertificateAcceptanceServer.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified RunCertificateAcceptanceServer message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer.verify|verify} messages. - * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IRunCertificateAcceptanceServer} message RunCertificateAcceptanceServer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunCertificateAcceptanceServer.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RunCertificateAcceptanceServer message from the specified reader or buffer. - * @function decode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer} RunCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunCertificateAcceptanceServer.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RunCertificateAcceptanceServer message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer} RunCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunCertificateAcceptanceServer.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RunCertificateAcceptanceServer message. - * @function verify - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RunCertificateAcceptanceServer.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a RunCertificateAcceptanceServer message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer} RunCertificateAcceptanceServer - */ - RunCertificateAcceptanceServer.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer) - return object; - return new $root.IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer(); - }; - - /** - * Creates a plain object from a RunCertificateAcceptanceServer message. Also converts values to other types if specified. - * @function toObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer} message RunCertificateAcceptanceServer - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RunCertificateAcceptanceServer.toObject = function toObject() { - return {}; - }; - - /** - * Converts this RunCertificateAcceptanceServer to JSON. - * @function toJSON - * @memberof IntifaceProtocols.IntifaceFrontendMessage.RunCertificateAcceptanceServer - * @instance - * @returns {Object.} JSON object - */ - RunCertificateAcceptanceServer.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RunCertificateAcceptanceServer; - })(); - - IntifaceFrontendMessage.StopCertificateAcceptanceServer = (function() { - - /** - * Properties of a StopCertificateAcceptanceServer. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @interface IStopCertificateAcceptanceServer - */ - - /** - * Constructs a new StopCertificateAcceptanceServer. - * @memberof IntifaceProtocols.IntifaceFrontendMessage - * @classdesc Represents a StopCertificateAcceptanceServer. - * @implements IStopCertificateAcceptanceServer - * @constructor - * @param {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer=} [properties] Properties to set - */ - function StopCertificateAcceptanceServer(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new StopCertificateAcceptanceServer instance using the specified properties. - * @function create - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer=} [properties] Properties to set - * @returns {IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer} StopCertificateAcceptanceServer instance - */ - StopCertificateAcceptanceServer.create = function create(properties) { - return new StopCertificateAcceptanceServer(properties); - }; - - /** - * Encodes the specified StopCertificateAcceptanceServer message. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.verify|verify} messages. - * @function encode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer} message StopCertificateAcceptanceServer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopCertificateAcceptanceServer.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified StopCertificateAcceptanceServer message, length delimited. Does not implicitly {@link IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer.verify|verify} messages. - * @function encodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.IStopCertificateAcceptanceServer} message StopCertificateAcceptanceServer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopCertificateAcceptanceServer.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StopCertificateAcceptanceServer message from the specified reader or buffer. - * @function decode - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer} StopCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopCertificateAcceptanceServer.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StopCertificateAcceptanceServer message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer} StopCertificateAcceptanceServer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopCertificateAcceptanceServer.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StopCertificateAcceptanceServer message. - * @function verify - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StopCertificateAcceptanceServer.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a StopCertificateAcceptanceServer message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {Object.} object Plain object - * @returns {IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer} StopCertificateAcceptanceServer - */ - StopCertificateAcceptanceServer.fromObject = function fromObject(object) { - if (object instanceof $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer) - return object; - return new $root.IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer(); - }; - - /** - * Creates a plain object from a StopCertificateAcceptanceServer message. Also converts values to other types if specified. - * @function toObject - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @static - * @param {IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer} message StopCertificateAcceptanceServer - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopCertificateAcceptanceServer.toObject = function toObject() { - return {}; - }; - - /** - * Converts this StopCertificateAcceptanceServer to JSON. - * @function toJSON - * @memberof IntifaceProtocols.IntifaceFrontendMessage.StopCertificateAcceptanceServer - * @instance - * @returns {Object.} JSON object - */ - StopCertificateAcceptanceServer.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StopCertificateAcceptanceServer; - })(); - IntifaceFrontendMessage.ResetIntifaceConfiguration = (function() { /**