diff --git a/.gitignore b/.gitignore index 500a067..d6fcb8d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ cmd/sni/sni cmd/sni/sni.exe cmd/sni/rsrc_windows_386.syso cmd/sni/rsrc_windows_amd64.syso +!**/.keep diff --git a/examples/grpcweb/.gitignore b/examples/grpcweb/.gitignore new file mode 100644 index 0000000..62a8137 --- /dev/null +++ b/examples/grpcweb/.gitignore @@ -0,0 +1,37 @@ +lib/*.ts +lib/*.js + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/examples/grpcweb/README.md b/examples/grpcweb/README.md new file mode 100644 index 0000000..5259b29 --- /dev/null +++ b/examples/grpcweb/README.md @@ -0,0 +1,24 @@ +# SNI gRPC for Web + +## Requirements +* Node 18+ + +## Setup +First, you will need to install the Node.js dependencies. +```sh +npm install +``` + +Once that is done installing, you can run the page locally by using the `dev` command. +```sh +npm run dev +``` +You can now visit the project at [`localhost:3000`](http://localhost:3000) and list your connected devices. + +## Generating Client Files +You can generate the client files independently with the `compile` command. This is done automatically in `dev` and `build`. +```sh +npm run compile +``` + +This will populate the `lib` folder with Javascript and Typescript definitions to use in your project. diff --git a/examples/grpcweb/app/devices.module.css b/examples/grpcweb/app/devices.module.css new file mode 100644 index 0000000..4ff7391 --- /dev/null +++ b/examples/grpcweb/app/devices.module.css @@ -0,0 +1,71 @@ +.container { + min-width: 420px; +} + +@media (max-width: 600px) { + .container { + min-width: 100%; + } +} + +.actionContainer { + display: flex; + justify-content: center; + align-content: center; + margin: 1rem 0; +} + +.btn { + background-color: rgb(var(--foreground-rgb)); + border: 1px solid rgb(var(--foreground-rgb)); + border-radius: 4px; + color: rgb(var(--background-rgb)); + cursor: pointer; + display: inline-block; + font-size: 16px; + font-weight: 400; + line-height: 1.42857; + margin-bottom: 0; + padding: 6px 12px; + text-align: center; + vertical-align: middle; + white-space: nowrap; + transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out; +} + +.btn.secondary { + background-color: transparent; + border-color: rgb(var(--accent-rgb)); + color: rgb(var(--accent-rgb)); + font-size: 12px; + padding: 3px 6px; +} + +.btn.secondary:hover { + color: rgb(var(--foreground-rgb)); + border-color: rgb(var(--foreground-rgb)); +} + +.list { + margin-top: 2rem; + border-top: 1px solid rgb(var(--foreground-rgb)); + padding-top: 2rem; +} + +.device_name { + margin-bottom: 0.5rem; +} + +.device_label { + font-family: var(--font-mono); + font-size: 16px; + padding: 4px; +} + +.json { + font-size: 12px; + margin: 1rem 0; + padding: 1rem; + border: 1px solid rgb(var(--accent-muted-rgb)); + border-radius: var(--border-radius); +} diff --git a/examples/grpcweb/app/devices.tsx b/examples/grpcweb/app/devices.tsx new file mode 100644 index 0000000..85ed171 --- /dev/null +++ b/examples/grpcweb/app/devices.tsx @@ -0,0 +1,111 @@ +'use client' + +import * as SNI from '@/lib/sni' +import * as SNIClient from '@/lib/sni.client' +import { GrpcWebFetchTransport } from '@protobuf-ts/grpcweb-transport' +import { DevicesResponse_Device } from '@/lib/sni' +import { useState } from 'react' +import { toast } from 'sonner' +import styles from './devices.module.css' + +let transport = new GrpcWebFetchTransport({ + baseUrl: 'http://localhost:8190' +}) + +const listDevices = async () => { + try { + const DevicesClient = new SNIClient.DevicesClient(transport) + const req = SNI.DevicesRequest.create() + const devices = await DevicesClient.listDevices(req) + return devices.response.devices + } catch (err: unknown) { + const error = err as Error + console.error(error.message) + let msg = error.message + if (error.message.includes('Failed to fetch')) { + msg = 'Could not connect to SNI' + } + toast.error(msg) + } +} + +const DeviceButton = ({ onUpdate }: { onUpdate: (devices: any) => void }) => { + return ( + + ) +} + +const Device = ({ displayName = '', ...props }: DevicesResponse_Device) => { + const [expanded, setExpanded] = useState(false) + return ( +
  • +
    + {displayName} +
    + + {expanded && ( +
    +
    +            {JSON.stringify(props, null, 2)}
    +          
    +
    + )} +
  • + ) +} + +const DeviceList = ({ devices }: { devices: DevicesResponse_Device[]|null }) => { + if (!devices) { + return null + } + + if (devices.length === 0) { + return ( +
    + No devices found +
    + ) + } + return ( +
      + {devices.map((device) => ( + + ))} +
    + ) +} + +const Devices = () => { + const [devices, setDevices] = useState(null) + + return ( +
    +
    + +
    + {devices && ( +
    + +
    + )} +
    + ) +} + +export default Devices diff --git a/examples/grpcweb/app/globals.css b/examples/grpcweb/app/globals.css new file mode 100644 index 0000000..c807c81 --- /dev/null +++ b/examples/grpcweb/app/globals.css @@ -0,0 +1,49 @@ +:root { + --max-width: 1100px; + --border-radius: 4px; + --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', + 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro', + 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace; + + --foreground-rgb: 0, 0, 0; + --background-rgb: 255, 255, 255; + --accent-rgb: 54, 54, 54; + --accent-muted-rgb: 204, 204, 204; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --accent-rgb: 204, 204, 204; + --accent-muted-rgb: 54, 54, 54; + --background-rgb: 0, 0, 0; + } +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +html, +body { + max-width: 100vw; + overflow-x: hidden; +} + +body { + color: rgb(var(--foreground-rgb)); + background: rgb(var(--background-rgb)); +} + +a { + color: inherit; + text-decoration: none; +} + +@media (prefers-color-scheme: dark) { + html { + color-scheme: dark; + } +} diff --git a/examples/grpcweb/app/layout.tsx b/examples/grpcweb/app/layout.tsx new file mode 100644 index 0000000..9c2fbdf --- /dev/null +++ b/examples/grpcweb/app/layout.tsx @@ -0,0 +1,28 @@ +import type { Metadata } from 'next' +import { Inter } from 'next/font/google' +import { Toaster } from 'sonner' +import './globals.css' + +const inter = Inter({ subsets: ['latin'] }) + +export const metadata: Metadata = { + title: 'SNI gRPC Web Example', + description: 'An example of SNI being used in the web browser', +} + +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + + + {children} + + + + ) +} diff --git a/examples/grpcweb/app/page.module.css b/examples/grpcweb/app/page.module.css new file mode 100644 index 0000000..fe84bf5 --- /dev/null +++ b/examples/grpcweb/app/page.module.css @@ -0,0 +1,18 @@ +.main { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: center; + padding: 6rem; + min-height: 100vh; +} + +.main h1 { + margin-bottom: 2rem; +} + +@media (max-width: 600px) { + .main { + padding: 2rem; + } +} diff --git a/examples/grpcweb/app/page.tsx b/examples/grpcweb/app/page.tsx new file mode 100644 index 0000000..43c4c79 --- /dev/null +++ b/examples/grpcweb/app/page.tsx @@ -0,0 +1,13 @@ +import Devices from './devices' +import styles from './page.module.css' + +export default function Home() { + return ( +
    +

    SNI gRPC Web

    +
    + +
    +
    + ) +} diff --git a/examples/grpcweb/gen.sh b/examples/grpcweb/gen.sh deleted file mode 100644 index ef876a2..0000000 --- a/examples/grpcweb/gen.sh +++ /dev/null @@ -1,6 +0,0 @@ -protoc \ ---plugin=protoc-gen-ts=node_modules\\.bin\\protoc-gen-ts.cmd \ ---js_out=import_style=commonjs,binary:sni-client \ ---ts_out=service=grpc-web:sni-client \ --I ../../protos/sni/ \ -../../protos/sni/*.proto diff --git a/examples/grpcweb/lib/.keep b/examples/grpcweb/lib/.keep new file mode 100644 index 0000000..e69de29 diff --git a/examples/grpcweb/package-lock.json b/examples/grpcweb/package-lock.json index 78be3fe..df27ffe 100644 --- a/examples/grpcweb/package-lock.json +++ b/examples/grpcweb/package-lock.json @@ -1,1422 +1,590 @@ { - "name": "nodegrpcweb", - "version": "1.0.0", - "lockfileVersion": 1, + "name": "sni-grpcweb-example", + "version": "0.1.0", + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@discoveryjs/json-ext": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.6.tgz", - "integrity": "sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA==", - "dev": true - }, - "@gar/promisify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.2.tgz", - "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==" - }, - "@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "requires": { - "browser-headers": "^0.4.1" - } - }, - "@improbable-eng/grpc-web-node-http-transport": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web-node-http-transport/-/grpc-web-node-http-transport-0.15.0.tgz", - "integrity": "sha512-HLgJfVolGGpjc9DWPhmMmXJx8YGzkek7jcCFO1YYkSOoO81MWRZentPOd/JiKiZuU08wtc4BG+WNuGzsQB5jZA==" - }, - "@npmcli/fs": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.0.tgz", - "integrity": "sha512-VhP1qZLXcrXRIaPoqb4YA55JQxLNF3jNR4T55IdOJa3+IFJKNYHtPvtXx8slmeMavj37vCzCfrqQM1vWLsYKLA==", - "requires": { - "@gar/promisify": "^1.0.1", - "semver": "^7.3.5" - } - }, - "@npmcli/move-file": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", - "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", - "requires": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" - } - }, - "@types/eslint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", - "integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==", - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "0.0.45", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.45.tgz", - "integrity": "sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g==" - }, - "@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, - "@types/json-schema": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", - "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" - }, - "@types/node": { - "version": "17.0.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.16.tgz", - "integrity": "sha512-ydLaGVfQOQ6hI1xK2A5nVh8bl0OGoIfYMxPWHqqYe9bTkWCfqiVvZoh2I/QF2sNSkZzZyROBoTefIEI+PB6iIA==" - }, - "@webassemblyjs/ast": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", - "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", - "requires": { - "@webassemblyjs/helper-module-context": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/wast-parser": "1.9.0" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", - "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==" - }, - "@webassemblyjs/helper-api-error": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", - "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==" - }, - "@webassemblyjs/helper-buffer": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", - "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==" - }, - "@webassemblyjs/helper-code-frame": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", - "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", - "requires": { - "@webassemblyjs/wast-printer": "1.9.0" - } - }, - "@webassemblyjs/helper-fsm": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", - "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==" - }, - "@webassemblyjs/helper-module-context": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", - "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", - "requires": { - "@webassemblyjs/ast": "1.9.0" + "packages": { + "": { + "name": "sni-grpcweb-example", + "version": "0.1.0", + "dependencies": { + "@protobuf-ts/grpcweb-transport": "^2.9.2", + "@protobuf-ts/plugin": "^2.9.2", + "@protobuf-ts/protoc": "^2.9.2", + "next": "14.0.3", + "react": "^18", + "react-dom": "^18", + "sonner": "^1.2.4", + "ts-protoc-gen": "^0.15.0" + }, + "devDependencies": { + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "typescript": "^5" + }, + "engines": { + "node": ">=18.x" + } + }, + "node_modules/@next/env": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.3.tgz", + "integrity": "sha512-7xRqh9nMvP5xrW4/+L0jgRRX+HoNRGnfJpD+5Wq6/13j3dsdzxO3BCXn7D3hMqsDb+vjZnJq+vI7+EtgrYZTeA==" + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.3.tgz", + "integrity": "sha512-64JbSvi3nbbcEtyitNn2LEDS/hcleAFpHdykpcnrstITFlzFgB/bW0ER5/SJJwUPj+ZPY+z3e+1jAfcczRLVGw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.3.tgz", + "integrity": "sha512-RkTf+KbAD0SgYdVn1XzqE/+sIxYGB7NLMZRn9I4Z24afrhUpVJx6L8hsRnIwxz3ERE2NFURNliPjJ2QNfnWicQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.0.3.tgz", + "integrity": "sha512-3tBWGgz7M9RKLO6sPWC6c4pAw4geujSwQ7q7Si4d6bo0l6cLs4tmO+lnSwFp1Tm3lxwfMk0SgkJT7EdwYSJvcg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.0.3.tgz", + "integrity": "sha512-v0v8Kb8j8T23jvVUWZeA2D8+izWspeyeDGNaT2/mTHWp7+37fiNfL8bmBWiOmeumXkacM/AB0XOUQvEbncSnHA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.0.3.tgz", + "integrity": "sha512-VM1aE1tJKLBwMGtyBR21yy+STfl0MapMQnNrXkxeyLs0GFv/kZqXS5Jw/TQ3TSUnbv0QPDf/X8sDXuMtSgG6eg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.0.3.tgz", + "integrity": "sha512-64EnmKy18MYFL5CzLaSuUn561hbO1Gk16jM/KHznYP3iCIfF9e3yULtHaMy0D8zbHfxset9LTOv6cuYKJgcOxg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.0.3.tgz", + "integrity": "sha512-WRDp8QrmsL1bbGtsh5GqQ/KWulmrnMBgbnb+59qNTW1kVi1nG/2ndZLkcbs2GX7NpFLlToLRMWSQXmPzQm4tog==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.0.3.tgz", + "integrity": "sha512-EKffQeqCrj+t6qFFhIFTRoqb2QwX1mU7iTOvMyLbYw3QtqTw9sMwjykyiMlZlrfm2a4fA84+/aeW+PMg1MjuTg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.0.3.tgz", + "integrity": "sha512-ERhKPSJ1vQrPiwrs15Pjz/rvDHZmkmvbf/BjPN/UCOI++ODftT0GtasDPi0j+y6PPJi5HsXw+dpRaXUaw4vjuQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@protobuf-ts/grpcweb-transport": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/grpcweb-transport/-/grpcweb-transport-2.9.2.tgz", + "integrity": "sha512-RW5Dy25OtkfVDM8WXcXRji3AvZQIRnERU/+gALk87Q4vlJdT7YesmKFEJpGN29SfxKO9GFid7Ax4mSRriUzW4A==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.2", + "@protobuf-ts/runtime-rpc": "^2.9.2" } }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", - "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==" - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", - "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0" + "node_modules/@protobuf-ts/plugin": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.9.2.tgz", + "integrity": "sha512-p2nBvqQOPdiwEHiqFJTQcOo27tFZG6s8qk0310KoWLvgES64l1HRT2sC9YcQQa+Evm7SrrcSBoAUlAwYJOKYBA==", + "dependencies": { + "@protobuf-ts/plugin-framework": "^2.9.2", + "@protobuf-ts/protoc": "^2.9.2", + "@protobuf-ts/runtime": "^2.9.2", + "@protobuf-ts/runtime-rpc": "^2.9.2", + "typescript": "^3.9" + }, + "bin": { + "protoc-gen-dump": "bin/protoc-gen-dump", + "protoc-gen-ts": "bin/protoc-gen-ts" } }, - "@webassemblyjs/ieee754": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", - "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", - "requires": { - "@xtuc/ieee754": "^1.2.0" + "node_modules/@protobuf-ts/plugin-framework": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.2.tgz", + "integrity": "sha512-8KwGKb+1vNb1zk34J7G5eFpJEQ0QJKD3J83+IRN16BtP+9umHnR3Zgl8uYUYa9bU2U1FaUFtL0vPEHFj5oWrNw==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.2", + "typescript": "^3.9" } }, - "@webassemblyjs/leb128": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", - "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", - "requires": { - "@xtuc/long": "4.2.2" + "node_modules/@protobuf-ts/plugin-framework/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" } }, - "@webassemblyjs/utf8": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", - "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==" - }, - "@webassemblyjs/wasm-edit": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", - "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/helper-wasm-section": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0", - "@webassemblyjs/wasm-opt": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0", - "@webassemblyjs/wast-printer": "1.9.0" + "node_modules/@protobuf-ts/plugin/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" } }, - "@webassemblyjs/wasm-gen": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", - "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/ieee754": "1.9.0", - "@webassemblyjs/leb128": "1.9.0", - "@webassemblyjs/utf8": "1.9.0" + "node_modules/@protobuf-ts/protoc": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.9.2.tgz", + "integrity": "sha512-36oEEzCGhYH9FAeAH9Lj5CTf15Mx1uZnC7c0g/CEJ22plwy6HJp5swHWCouFrdLOy05OlKy5coU0scCkuvotBQ==", + "bin": { + "protoc": "protoc.js" } }, - "@webassemblyjs/wasm-opt": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", - "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0" - } + "node_modules/@protobuf-ts/runtime": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.2.tgz", + "integrity": "sha512-0XeRY+5+j2ZrhY3osjUqz6Y8TVpgdO8h5OjKV+qXEpyjniiP+AVo06W7xZxfvsdBrtB7A3BvP5w1Cja7VYNGjw==" }, - "@webassemblyjs/wasm-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", - "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-api-error": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/ieee754": "1.9.0", - "@webassemblyjs/leb128": "1.9.0", - "@webassemblyjs/utf8": "1.9.0" - } - }, - "@webassemblyjs/wast-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", - "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/floating-point-hex-parser": "1.9.0", - "@webassemblyjs/helper-api-error": "1.9.0", - "@webassemblyjs/helper-code-frame": "1.9.0", - "@webassemblyjs/helper-fsm": "1.9.0", - "@xtuc/long": "4.2.2" + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.2.tgz", + "integrity": "sha512-5NKxpIuL4DMckJMDOUqCH8KnHNIosqAzOwf9ooO+UjJIGTk268FvYYe5u0V1/bXByJgPU/nHC9+S4Pm6LKTTjg==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.2" } }, - "@webassemblyjs/wast-printer": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", - "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/wast-parser": "1.9.0", - "@xtuc/long": "4.2.2" + "node_modules/@swc/helpers": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.2.tgz", + "integrity": "sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==", + "dependencies": { + "tslib": "^2.4.0" } }, - "@webpack-cli/configtest": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.1.tgz", - "integrity": "sha512-1FBc1f9G4P/AxMqIgfZgeOTuRnwZMten8E7zap5zgpPInnCrP8D4Q81+4CWIch8i/Nf7nXjP0v6CjjbHOrXhKg==", - "dev": true - }, - "@webpack-cli/info": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.1.tgz", - "integrity": "sha512-PKVGmazEq3oAo46Q63tpMr4HipI3OPfP7LiNOEJg963RMgT0rqheag28NCML0o3GIzA3DmxP1ZIAv9oTX1CUIA==", + "node_modules/@types/node": { + "version": "20.10.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", + "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", "dev": true, - "requires": { - "envinfo": "^7.7.3" + "dependencies": { + "undici-types": "~5.26.4" } }, - "@webpack-cli/serve": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.1.tgz", - "integrity": "sha512-gNGTiTrjEVQ0OcVnzsRSqTxaBSr+dmTfm+qJsCDluky8uhdLWep7Gcr62QsAKHTMxjCS/8nEITsmFAhfIx+QSw==", + "node_modules/@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", "dev": true }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/@types/react": { + "version": "18.2.42", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.42.tgz", + "integrity": "sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==", "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, - "browserslist": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz", - "integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==", - "requires": { - "caniuse-lite": "^1.0.30001286", - "electron-to-chromium": "^1.4.17", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "cacache": { - "version": "15.3.0", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", - "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", - "requires": { - "@npmcli/fs": "^1.0.0", - "@npmcli/move-file": "^1.0.1", - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "glob": "^7.1.4", - "infer-owner": "^1.0.4", - "lru-cache": "^6.0.0", - "minipass": "^3.1.1", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.2", - "mkdirp": "^1.0.3", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^8.0.1", - "tar": "^6.0.2", - "unique-filename": "^1.1.1" - } - }, - "caniuse-lite": { - "version": "1.0.30001309", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001309.tgz", - "integrity": "sha512-Pl8vfigmBXXq+/yUz1jUwULeq9xhMJznzdc/xwl4WclDAuebcTHVefpz8lE/bMI+UN7TOkSSe7B7RnZd6+dzjA==" - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "colorette": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", - "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", - "dev": true - }, - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/@types/react-dom": { + "version": "18.2.17", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.17.tgz", + "integrity": "sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==", "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "electron-to-chromium": { - "version": "1.4.66", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.66.tgz", - "integrity": "sha512-f1RXFMsvwufWLwYUxTiP7HmjprKXrqEWHiQkjAYa9DJeVIlZk5v8gBGcaV+FhtXLly6C1OTVzQY+2UQrACiLlg==" - }, - "enhanced-resolve": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", - "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "dependencies": { + "@types/react": "*" } }, - "envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "node_modules/@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", "dev": true }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "requires": { - "estraverse": "^5.2.0" - }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001566", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz", + "integrity": "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } - } + ] }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, - "fast-deep-equal": { + "node_modules/csstype": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fastest-levenshtein": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", - "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", - "dev": true - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "requires": { - "minipass": "^3.0.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "dev": true }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-to-regexp": { + "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" }, - "google-protobuf": { + "node_modules/google-protobuf": { "version": "3.19.4", "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" }, - "graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==" + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { + "node_modules/js-tokens": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" - }, - "infer-owner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, - "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - }, - "loader-runner": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", - "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==" - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "requires": { - "semver": "^6.0.0" - }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, - "mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" - }, - "mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "requires": { - "mime-db": "1.51.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz", - "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==", - "requires": { - "yallist": "^4.0.0" - } - }, - "minipass-collect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", - "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", - "requires": { - "minipass": "^3.0.0" - } - }, - "minipass-flush": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", - "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "requires": { - "minipass": "^3.0.0" - } - }, - "minipass-pipeline": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", - "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "requires": { - "minipass": "^3.0.0" - } - }, - "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node-releases": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==" - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "requires": { - "aggregate-error": "^3.0.0" + "node_modules/next": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/next/-/next-14.0.3.tgz", + "integrity": "sha512-AbYdRNfImBr3XGtvnwOxq8ekVCwbFTv/UJoLwmaX89nk9i051AEY4/HAWzU0YpaTDw8IofUpmuIlvzWF13jxIw==", + "dependencies": { + "@next/env": "14.0.3", + "@swc/helpers": "0.5.2", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001406", + "postcss": "8.4.31", + "styled-jsx": "5.1.1", + "watchpack": "2.4.0" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=18.17.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "14.0.3", + "@next/swc-darwin-x64": "14.0.3", + "@next/swc-linux-arm64-gnu": "14.0.3", + "@next/swc-linux-arm64-musl": "14.0.3", + "@next/swc-linux-x64-gnu": "14.0.3", + "@next/swc-linux-x64-musl": "14.0.3", + "@next/swc-win32-arm64-msvc": "14.0.3", + "@next/swc-win32-ia32-msvc": "14.0.3", + "@next/swc-win32-x64-msvc": "14.0.3" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "sass": { + "optional": true + } } }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "picocolors": { + "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "requires": { - "find-up": "^4.0.0" - } - }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=" - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "rechoir": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", - "dev": true, - "requires": { - "resolve": "^1.9.0" - } - }, - "resolve": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", - "dev": true, - "requires": { - "is-core-module": "^2.8.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "serialize-javascript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", - "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", - "requires": { - "randombytes": "^2.1.0" + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" } }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" } }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" } }, - "ssri": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", - "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", - "requires": { - "minipass": "^3.1.1" + "node_modules/sonner": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-1.2.4.tgz", + "integrity": "sha512-WGLP2QQnomgewaCTsK7YWiLcy5n1Yj83vsL5cP4zHMmpSkmFsCYTpQKhlXJrPE5kzjwbqCkCFXcOpbKc4vaUaA==", + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" } }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" } }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" - }, - "tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" } }, - "terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", - "requires": { - "commander": "^2.20.0", - "source-map": "~0.7.2", - "source-map-support": "~0.5.20" - }, + "node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - } - } - }, - "terser-webpack-plugin": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-4.2.3.tgz", - "integrity": "sha512-jTgXh40RnvOrLQNgIkwEKnQ8rmHjHK4u+6UBEi+W+FPmvb+uo+chJXntKe7/3lW5mNysgSWD60KyesnhW8D6MQ==", - "requires": { - "cacache": "^15.0.5", - "find-cache-dir": "^3.3.1", - "jest-worker": "^26.5.0", - "p-limit": "^3.0.2", - "schema-utils": "^3.0.0", - "serialize-javascript": "^5.0.1", - "source-map": "^0.6.1", - "terser": "^5.3.4", - "webpack-sources": "^1.4.3" + "client-only": "0.0.1" }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "requires": { - "yocto-queue": "^0.1.0" - } + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true }, - "webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - } + "babel-plugin-macros": { + "optional": true } } }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "ts-loader": { - "version": "9.2.6", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.6.tgz", - "integrity": "sha512-QMTC4UFzHmu9wU2VHZEmWWE9cUajjfcdcws+Gh7FhiO+Dy0RnR1bNz0YCHqhI0yRowCE9arVnNxYHqELOy9Hjw==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4" - } - }, - "ts-protoc-gen": { + "node_modules/ts-protoc-gen": { "version": "0.15.0", "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "requires": { + "dependencies": { "google-protobuf": "^3.15.5" + }, + "bin": { + "protoc-gen-ts": "bin/protoc-gen-ts" } }, - "typescript": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", - "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", - "dev": true - }, - "unique-filename": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", - "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "requires": { - "unique-slug": "^2.0.0" - } + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, - "unique-slug": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", - "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "requires": { - "imurmurhash": "^0.1.4" + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" } }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - } + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true }, - "watchpack": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", - "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", - "requires": { + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" } - }, - "webpack": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.0.0.tgz", - "integrity": "sha512-OK+Q9xGgda3idw/DgCf75XsVFxRLPu48qPwygqI3W9ls5sDdKif5Ay4SM/1UVob0w4juJy14Zv9nNv0WeyV0aA==", - "requires": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.45", - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-module-context": "1.9.0", - "@webassemblyjs/wasm-edit": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0", - "acorn": "^8.0.3", - "browserslist": "^4.14.3", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.2.0", - "eslint-scope": "^5.1.0", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^4.1.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "pkg-dir": "^4.2.0", - "schema-utils": "^3.0.0", - "tapable": "^2.0.0", - "terser-webpack-plugin": "^4.1.0", - "watchpack": "^2.0.0", - "webpack-sources": "^2.0.1" - } - }, - "webpack-cli": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.2.tgz", - "integrity": "sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==", - "dev": true, - "requires": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.1.1", - "@webpack-cli/info": "^1.4.1", - "@webpack-cli/serve": "^1.6.1", - "colorette": "^2.0.14", - "commander": "^7.0.0", - "execa": "^5.0.0", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^2.2.0", - "rechoir": "^0.7.0", - "webpack-merge": "^5.7.3" - } - }, - "webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", - "dev": true, - "requires": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - } - }, - "webpack-sources": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", - "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", - "requires": { - "source-list-map": "^2.0.1", - "source-map": "^0.6.1" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" } } } diff --git a/examples/grpcweb/package.json b/examples/grpcweb/package.json index fe918f1..3333d52 100644 --- a/examples/grpcweb/package.json +++ b/examples/grpcweb/package.json @@ -1,24 +1,30 @@ { - "name": "nodegrpcweb", - "version": "1.0.0", - "description": "", - "main": "dist/index.js", + "name": "sni-grpcweb-example", + "version": "0.1.0", + "private": true, + "engines": { + "node": ">=18.x" + }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "compile": "protoc --ts_out ./lib --ts_opt output_javascript --proto_path ../../protos/sni ../../protos/sni/*.proto", + "dev": "npm run compile && next dev", + "build": "npm run compile && next build", + "start": "next start" }, - "author": "", - "license": "MIT", "dependencies": { - "@improbable-eng/grpc-web": "^0.15.0", - "@improbable-eng/grpc-web-node-http-transport": "^0.15.0", - "@types/google-protobuf": "^3.15.5", - "google-protobuf": "^3.19.4", - "ts-protoc-gen": "^0.15.0", - "webpack": "^5.0.0" + "@protobuf-ts/grpcweb-transport": "^2.9.2", + "@protobuf-ts/plugin": "^2.9.2", + "@protobuf-ts/protoc": "^2.9.2", + "next": "14.0.3", + "react": "^18", + "react-dom": "^18", + "sonner": "^1.2.4", + "ts-protoc-gen": "^0.15.0" }, "devDependencies": { - "ts-loader": "^9.2.6", - "typescript": "^4.5.5", - "webpack-cli": "^4.9.2" + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "typescript": "^5" } } diff --git a/examples/grpcweb/sni-client/sni_pb.d.ts b/examples/grpcweb/sni-client/sni_pb.d.ts deleted file mode 100644 index a56e0f3..0000000 --- a/examples/grpcweb/sni-client/sni_pb.d.ts +++ /dev/null @@ -1,1117 +0,0 @@ -// package: -// file: sni.proto - -import * as jspb from "google-protobuf"; - -export class DevicesRequest extends jspb.Message { - clearKindsList(): void; - getKindsList(): Array; - setKindsList(value: Array): void; - addKinds(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DevicesRequest.AsObject; - static toObject(includeInstance: boolean, msg: DevicesRequest): DevicesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DevicesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DevicesRequest; - static deserializeBinaryFromReader(message: DevicesRequest, reader: jspb.BinaryReader): DevicesRequest; -} - -export namespace DevicesRequest { - export type AsObject = { - kindsList: Array, - } -} - -export class DevicesResponse extends jspb.Message { - clearDevicesList(): void; - getDevicesList(): Array; - setDevicesList(value: Array): void; - addDevices(value?: DevicesResponse.Device, index?: number): DevicesResponse.Device; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DevicesResponse.AsObject; - static toObject(includeInstance: boolean, msg: DevicesResponse): DevicesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DevicesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DevicesResponse; - static deserializeBinaryFromReader(message: DevicesResponse, reader: jspb.BinaryReader): DevicesResponse; -} - -export namespace DevicesResponse { - export type AsObject = { - devicesList: Array, - } - - export class Device extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getDisplayname(): string; - setDisplayname(value: string): void; - - getKind(): string; - setKind(value: string): void; - - clearCapabilitiesList(): void; - getCapabilitiesList(): Array; - setCapabilitiesList(value: Array): void; - addCapabilities(value: DeviceCapabilityMap[keyof DeviceCapabilityMap], index?: number): DeviceCapabilityMap[keyof DeviceCapabilityMap]; - - getDefaultaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setDefaultaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Device.AsObject; - static toObject(includeInstance: boolean, msg: Device): Device.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Device; - static deserializeBinaryFromReader(message: Device, reader: jspb.BinaryReader): Device; - } - - export namespace Device { - export type AsObject = { - uri: string, - displayname: string, - kind: string, - capabilitiesList: Array, - defaultaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - } - } -} - -export class ResetSystemRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetSystemRequest.AsObject; - static toObject(includeInstance: boolean, msg: ResetSystemRequest): ResetSystemRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetSystemRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetSystemRequest; - static deserializeBinaryFromReader(message: ResetSystemRequest, reader: jspb.BinaryReader): ResetSystemRequest; -} - -export namespace ResetSystemRequest { - export type AsObject = { - uri: string, - } -} - -export class ResetSystemResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetSystemResponse.AsObject; - static toObject(includeInstance: boolean, msg: ResetSystemResponse): ResetSystemResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetSystemResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetSystemResponse; - static deserializeBinaryFromReader(message: ResetSystemResponse, reader: jspb.BinaryReader): ResetSystemResponse; -} - -export namespace ResetSystemResponse { - export type AsObject = { - uri: string, - } -} - -export class ResetToMenuRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetToMenuRequest.AsObject; - static toObject(includeInstance: boolean, msg: ResetToMenuRequest): ResetToMenuRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetToMenuRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetToMenuRequest; - static deserializeBinaryFromReader(message: ResetToMenuRequest, reader: jspb.BinaryReader): ResetToMenuRequest; -} - -export namespace ResetToMenuRequest { - export type AsObject = { - uri: string, - } -} - -export class ResetToMenuResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetToMenuResponse.AsObject; - static toObject(includeInstance: boolean, msg: ResetToMenuResponse): ResetToMenuResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetToMenuResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetToMenuResponse; - static deserializeBinaryFromReader(message: ResetToMenuResponse, reader: jspb.BinaryReader): ResetToMenuResponse; -} - -export namespace ResetToMenuResponse { - export type AsObject = { - uri: string, - } -} - -export class PauseEmulationRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPaused(): boolean; - setPaused(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PauseEmulationRequest.AsObject; - static toObject(includeInstance: boolean, msg: PauseEmulationRequest): PauseEmulationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PauseEmulationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PauseEmulationRequest; - static deserializeBinaryFromReader(message: PauseEmulationRequest, reader: jspb.BinaryReader): PauseEmulationRequest; -} - -export namespace PauseEmulationRequest { - export type AsObject = { - uri: string, - paused: boolean, - } -} - -export class PauseEmulationResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPaused(): boolean; - setPaused(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PauseEmulationResponse.AsObject; - static toObject(includeInstance: boolean, msg: PauseEmulationResponse): PauseEmulationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PauseEmulationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PauseEmulationResponse; - static deserializeBinaryFromReader(message: PauseEmulationResponse, reader: jspb.BinaryReader): PauseEmulationResponse; -} - -export namespace PauseEmulationResponse { - export type AsObject = { - uri: string, - paused: boolean, - } -} - -export class PauseToggleEmulationRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PauseToggleEmulationRequest.AsObject; - static toObject(includeInstance: boolean, msg: PauseToggleEmulationRequest): PauseToggleEmulationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PauseToggleEmulationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PauseToggleEmulationRequest; - static deserializeBinaryFromReader(message: PauseToggleEmulationRequest, reader: jspb.BinaryReader): PauseToggleEmulationRequest; -} - -export namespace PauseToggleEmulationRequest { - export type AsObject = { - uri: string, - } -} - -export class PauseToggleEmulationResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PauseToggleEmulationResponse.AsObject; - static toObject(includeInstance: boolean, msg: PauseToggleEmulationResponse): PauseToggleEmulationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PauseToggleEmulationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PauseToggleEmulationResponse; - static deserializeBinaryFromReader(message: PauseToggleEmulationResponse, reader: jspb.BinaryReader): PauseToggleEmulationResponse; -} - -export namespace PauseToggleEmulationResponse { - export type AsObject = { - uri: string, - } -} - -export class DetectMemoryMappingRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - hasFallbackmemorymapping(): boolean; - clearFallbackmemorymapping(): void; - getFallbackmemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setFallbackmemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - hasRomheader00ffb0(): boolean; - clearRomheader00ffb0(): void; - getRomheader00ffb0(): Uint8Array | string; - getRomheader00ffb0_asU8(): Uint8Array; - getRomheader00ffb0_asB64(): string; - setRomheader00ffb0(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DetectMemoryMappingRequest.AsObject; - static toObject(includeInstance: boolean, msg: DetectMemoryMappingRequest): DetectMemoryMappingRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DetectMemoryMappingRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DetectMemoryMappingRequest; - static deserializeBinaryFromReader(message: DetectMemoryMappingRequest, reader: jspb.BinaryReader): DetectMemoryMappingRequest; -} - -export namespace DetectMemoryMappingRequest { - export type AsObject = { - uri: string, - fallbackmemorymapping: MemoryMappingMap[keyof MemoryMappingMap], - romheader00ffb0: Uint8Array | string, - } -} - -export class DetectMemoryMappingResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getMemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setMemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - getConfidence(): boolean; - setConfidence(value: boolean): void; - - getRomheader00ffb0(): Uint8Array | string; - getRomheader00ffb0_asU8(): Uint8Array; - getRomheader00ffb0_asB64(): string; - setRomheader00ffb0(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DetectMemoryMappingResponse.AsObject; - static toObject(includeInstance: boolean, msg: DetectMemoryMappingResponse): DetectMemoryMappingResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DetectMemoryMappingResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DetectMemoryMappingResponse; - static deserializeBinaryFromReader(message: DetectMemoryMappingResponse, reader: jspb.BinaryReader): DetectMemoryMappingResponse; -} - -export namespace DetectMemoryMappingResponse { - export type AsObject = { - uri: string, - memorymapping: MemoryMappingMap[keyof MemoryMappingMap], - confidence: boolean, - romheader00ffb0: Uint8Array | string, - } -} - -export class ReadMemoryRequest extends jspb.Message { - getRequestaddress(): number; - setRequestaddress(value: number): void; - - getRequestaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setRequestaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getRequestmemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setRequestmemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - getSize(): number; - setSize(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: ReadMemoryRequest): ReadMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadMemoryRequest; - static deserializeBinaryFromReader(message: ReadMemoryRequest, reader: jspb.BinaryReader): ReadMemoryRequest; -} - -export namespace ReadMemoryRequest { - export type AsObject = { - requestaddress: number, - requestaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - requestmemorymapping: MemoryMappingMap[keyof MemoryMappingMap], - size: number, - } -} - -export class ReadMemoryResponse extends jspb.Message { - getRequestaddress(): number; - setRequestaddress(value: number): void; - - getRequestaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setRequestaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getRequestmemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setRequestmemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - getDeviceaddress(): number; - setDeviceaddress(value: number): void; - - getDeviceaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setDeviceaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: ReadMemoryResponse): ReadMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadMemoryResponse; - static deserializeBinaryFromReader(message: ReadMemoryResponse, reader: jspb.BinaryReader): ReadMemoryResponse; -} - -export namespace ReadMemoryResponse { - export type AsObject = { - requestaddress: number, - requestaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - requestmemorymapping: MemoryMappingMap[keyof MemoryMappingMap], - deviceaddress: number, - deviceaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - data: Uint8Array | string, - } -} - -export class WriteMemoryRequest extends jspb.Message { - getRequestaddress(): number; - setRequestaddress(value: number): void; - - getRequestaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setRequestaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getRequestmemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setRequestmemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WriteMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: WriteMemoryRequest): WriteMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WriteMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WriteMemoryRequest; - static deserializeBinaryFromReader(message: WriteMemoryRequest, reader: jspb.BinaryReader): WriteMemoryRequest; -} - -export namespace WriteMemoryRequest { - export type AsObject = { - requestaddress: number, - requestaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - requestmemorymapping: MemoryMappingMap[keyof MemoryMappingMap], - data: Uint8Array | string, - } -} - -export class WriteMemoryResponse extends jspb.Message { - getRequestaddress(): number; - setRequestaddress(value: number): void; - - getRequestaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setRequestaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getRequestmemorymapping(): MemoryMappingMap[keyof MemoryMappingMap]; - setRequestmemorymapping(value: MemoryMappingMap[keyof MemoryMappingMap]): void; - - getDeviceaddress(): number; - setDeviceaddress(value: number): void; - - getDeviceaddressspace(): AddressSpaceMap[keyof AddressSpaceMap]; - setDeviceaddressspace(value: AddressSpaceMap[keyof AddressSpaceMap]): void; - - getSize(): number; - setSize(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WriteMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: WriteMemoryResponse): WriteMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WriteMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WriteMemoryResponse; - static deserializeBinaryFromReader(message: WriteMemoryResponse, reader: jspb.BinaryReader): WriteMemoryResponse; -} - -export namespace WriteMemoryResponse { - export type AsObject = { - requestaddress: number, - requestaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - requestmemorymapping: MemoryMappingMap[keyof MemoryMappingMap], - deviceaddress: number, - deviceaddressspace: AddressSpaceMap[keyof AddressSpaceMap], - size: number, - } -} - -export class SingleReadMemoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): ReadMemoryRequest | undefined; - setRequest(value?: ReadMemoryRequest): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleReadMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: SingleReadMemoryRequest): SingleReadMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleReadMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleReadMemoryRequest; - static deserializeBinaryFromReader(message: SingleReadMemoryRequest, reader: jspb.BinaryReader): SingleReadMemoryRequest; -} - -export namespace SingleReadMemoryRequest { - export type AsObject = { - uri: string, - request?: ReadMemoryRequest.AsObject, - } -} - -export class SingleReadMemoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - hasResponse(): boolean; - clearResponse(): void; - getResponse(): ReadMemoryResponse | undefined; - setResponse(value?: ReadMemoryResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleReadMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleReadMemoryResponse): SingleReadMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleReadMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleReadMemoryResponse; - static deserializeBinaryFromReader(message: SingleReadMemoryResponse, reader: jspb.BinaryReader): SingleReadMemoryResponse; -} - -export namespace SingleReadMemoryResponse { - export type AsObject = { - uri: string, - response?: ReadMemoryResponse.AsObject, - } -} - -export class SingleWriteMemoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): WriteMemoryRequest | undefined; - setRequest(value?: WriteMemoryRequest): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleWriteMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: SingleWriteMemoryRequest): SingleWriteMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleWriteMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleWriteMemoryRequest; - static deserializeBinaryFromReader(message: SingleWriteMemoryRequest, reader: jspb.BinaryReader): SingleWriteMemoryRequest; -} - -export namespace SingleWriteMemoryRequest { - export type AsObject = { - uri: string, - request?: WriteMemoryRequest.AsObject, - } -} - -export class SingleWriteMemoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - hasResponse(): boolean; - clearResponse(): void; - getResponse(): WriteMemoryResponse | undefined; - setResponse(value?: WriteMemoryResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleWriteMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleWriteMemoryResponse): SingleWriteMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleWriteMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleWriteMemoryResponse; - static deserializeBinaryFromReader(message: SingleWriteMemoryResponse, reader: jspb.BinaryReader): SingleWriteMemoryResponse; -} - -export namespace SingleWriteMemoryResponse { - export type AsObject = { - uri: string, - response?: WriteMemoryResponse.AsObject, - } -} - -export class MultiReadMemoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - clearRequestsList(): void; - getRequestsList(): Array; - setRequestsList(value: Array): void; - addRequests(value?: ReadMemoryRequest, index?: number): ReadMemoryRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiReadMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: MultiReadMemoryRequest): MultiReadMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiReadMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiReadMemoryRequest; - static deserializeBinaryFromReader(message: MultiReadMemoryRequest, reader: jspb.BinaryReader): MultiReadMemoryRequest; -} - -export namespace MultiReadMemoryRequest { - export type AsObject = { - uri: string, - requestsList: Array, - } -} - -export class MultiReadMemoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - clearResponsesList(): void; - getResponsesList(): Array; - setResponsesList(value: Array): void; - addResponses(value?: ReadMemoryResponse, index?: number): ReadMemoryResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiReadMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiReadMemoryResponse): MultiReadMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiReadMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiReadMemoryResponse; - static deserializeBinaryFromReader(message: MultiReadMemoryResponse, reader: jspb.BinaryReader): MultiReadMemoryResponse; -} - -export namespace MultiReadMemoryResponse { - export type AsObject = { - uri: string, - responsesList: Array, - } -} - -export class MultiWriteMemoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - clearRequestsList(): void; - getRequestsList(): Array; - setRequestsList(value: Array): void; - addRequests(value?: WriteMemoryRequest, index?: number): WriteMemoryRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiWriteMemoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: MultiWriteMemoryRequest): MultiWriteMemoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiWriteMemoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiWriteMemoryRequest; - static deserializeBinaryFromReader(message: MultiWriteMemoryRequest, reader: jspb.BinaryReader): MultiWriteMemoryRequest; -} - -export namespace MultiWriteMemoryRequest { - export type AsObject = { - uri: string, - requestsList: Array, - } -} - -export class MultiWriteMemoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - clearResponsesList(): void; - getResponsesList(): Array; - setResponsesList(value: Array): void; - addResponses(value?: WriteMemoryResponse, index?: number): WriteMemoryResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiWriteMemoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiWriteMemoryResponse): MultiWriteMemoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiWriteMemoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiWriteMemoryResponse; - static deserializeBinaryFromReader(message: MultiWriteMemoryResponse, reader: jspb.BinaryReader): MultiWriteMemoryResponse; -} - -export namespace MultiWriteMemoryResponse { - export type AsObject = { - uri: string, - responsesList: Array, - } -} - -export class ReadDirectoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadDirectoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: ReadDirectoryRequest): ReadDirectoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadDirectoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadDirectoryRequest; - static deserializeBinaryFromReader(message: ReadDirectoryRequest, reader: jspb.BinaryReader): ReadDirectoryRequest; -} - -export namespace ReadDirectoryRequest { - export type AsObject = { - uri: string, - path: string, - } -} - -export class DirEntry extends jspb.Message { - getName(): string; - setName(value: string): void; - - getType(): DirEntryTypeMap[keyof DirEntryTypeMap]; - setType(value: DirEntryTypeMap[keyof DirEntryTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DirEntry.AsObject; - static toObject(includeInstance: boolean, msg: DirEntry): DirEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DirEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DirEntry; - static deserializeBinaryFromReader(message: DirEntry, reader: jspb.BinaryReader): DirEntry; -} - -export namespace DirEntry { - export type AsObject = { - name: string, - type: DirEntryTypeMap[keyof DirEntryTypeMap], - } -} - -export class ReadDirectoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - clearEntriesList(): void; - getEntriesList(): Array; - setEntriesList(value: Array): void; - addEntries(value?: DirEntry, index?: number): DirEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadDirectoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: ReadDirectoryResponse): ReadDirectoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadDirectoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadDirectoryResponse; - static deserializeBinaryFromReader(message: ReadDirectoryResponse, reader: jspb.BinaryReader): ReadDirectoryResponse; -} - -export namespace ReadDirectoryResponse { - export type AsObject = { - uri: string, - path: string, - entriesList: Array, - } -} - -export class MakeDirectoryRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MakeDirectoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: MakeDirectoryRequest): MakeDirectoryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MakeDirectoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MakeDirectoryRequest; - static deserializeBinaryFromReader(message: MakeDirectoryRequest, reader: jspb.BinaryReader): MakeDirectoryRequest; -} - -export namespace MakeDirectoryRequest { - export type AsObject = { - uri: string, - path: string, - } -} - -export class MakeDirectoryResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MakeDirectoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: MakeDirectoryResponse): MakeDirectoryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MakeDirectoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MakeDirectoryResponse; - static deserializeBinaryFromReader(message: MakeDirectoryResponse, reader: jspb.BinaryReader): MakeDirectoryResponse; -} - -export namespace MakeDirectoryResponse { - export type AsObject = { - uri: string, - path: string, - } -} - -export class RemoveFileRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveFileRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveFileRequest): RemoveFileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveFileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveFileRequest; - static deserializeBinaryFromReader(message: RemoveFileRequest, reader: jspb.BinaryReader): RemoveFileRequest; -} - -export namespace RemoveFileRequest { - export type AsObject = { - uri: string, - path: string, - } -} - -export class RemoveFileResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveFileResponse.AsObject; - static toObject(includeInstance: boolean, msg: RemoveFileResponse): RemoveFileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveFileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveFileResponse; - static deserializeBinaryFromReader(message: RemoveFileResponse, reader: jspb.BinaryReader): RemoveFileResponse; -} - -export namespace RemoveFileResponse { - export type AsObject = { - uri: string, - path: string, - } -} - -export class RenameFileRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - getNewfilename(): string; - setNewfilename(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RenameFileRequest.AsObject; - static toObject(includeInstance: boolean, msg: RenameFileRequest): RenameFileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RenameFileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RenameFileRequest; - static deserializeBinaryFromReader(message: RenameFileRequest, reader: jspb.BinaryReader): RenameFileRequest; -} - -export namespace RenameFileRequest { - export type AsObject = { - uri: string, - path: string, - newfilename: string, - } -} - -export class RenameFileResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - getNewfilename(): string; - setNewfilename(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RenameFileResponse.AsObject; - static toObject(includeInstance: boolean, msg: RenameFileResponse): RenameFileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RenameFileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RenameFileResponse; - static deserializeBinaryFromReader(message: RenameFileResponse, reader: jspb.BinaryReader): RenameFileResponse; -} - -export namespace RenameFileResponse { - export type AsObject = { - uri: string, - path: string, - newfilename: string, - } -} - -export class PutFileRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PutFileRequest.AsObject; - static toObject(includeInstance: boolean, msg: PutFileRequest): PutFileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PutFileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PutFileRequest; - static deserializeBinaryFromReader(message: PutFileRequest, reader: jspb.BinaryReader): PutFileRequest; -} - -export namespace PutFileRequest { - export type AsObject = { - uri: string, - path: string, - data: Uint8Array | string, - } -} - -export class PutFileResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - getSize(): number; - setSize(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PutFileResponse.AsObject; - static toObject(includeInstance: boolean, msg: PutFileResponse): PutFileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PutFileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PutFileResponse; - static deserializeBinaryFromReader(message: PutFileResponse, reader: jspb.BinaryReader): PutFileResponse; -} - -export namespace PutFileResponse { - export type AsObject = { - uri: string, - path: string, - size: number, - } -} - -export class GetFileRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetFileRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetFileRequest): GetFileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetFileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetFileRequest; - static deserializeBinaryFromReader(message: GetFileRequest, reader: jspb.BinaryReader): GetFileRequest; -} - -export namespace GetFileRequest { - export type AsObject = { - uri: string, - path: string, - } -} - -export class GetFileResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - getSize(): number; - setSize(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetFileResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetFileResponse): GetFileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetFileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetFileResponse; - static deserializeBinaryFromReader(message: GetFileResponse, reader: jspb.BinaryReader): GetFileResponse; -} - -export namespace GetFileResponse { - export type AsObject = { - uri: string, - path: string, - size: number, - data: Uint8Array | string, - } -} - -export class BootFileRequest extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BootFileRequest.AsObject; - static toObject(includeInstance: boolean, msg: BootFileRequest): BootFileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BootFileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BootFileRequest; - static deserializeBinaryFromReader(message: BootFileRequest, reader: jspb.BinaryReader): BootFileRequest; -} - -export namespace BootFileRequest { - export type AsObject = { - uri: string, - path: string, - } -} - -export class BootFileResponse extends jspb.Message { - getUri(): string; - setUri(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BootFileResponse.AsObject; - static toObject(includeInstance: boolean, msg: BootFileResponse): BootFileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BootFileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BootFileResponse; - static deserializeBinaryFromReader(message: BootFileResponse, reader: jspb.BinaryReader): BootFileResponse; -} - -export namespace BootFileResponse { - export type AsObject = { - uri: string, - path: string, - } -} - -export interface AddressSpaceMap { - FXPAKPRO: 0; - SNESABUS: 1; - RAW: 2; -} - -export const AddressSpace: AddressSpaceMap; - -export interface MemoryMappingMap { - UNKNOWN: 0; - HIROM: 1; - LOROM: 2; - EXHIROM: 3; -} - -export const MemoryMapping: MemoryMappingMap; - -export interface DeviceCapabilityMap { - NONE: 0; - READMEMORY: 1; - WRITEMEMORY: 2; - EXECUTEASM: 3; - RESETSYSTEM: 4; - PAUSEUNPAUSEEMULATION: 5; - PAUSETOGGLEEMULATION: 6; - RESETTOMENU: 7; - READDIRECTORY: 10; - MAKEDIRECTORY: 11; - REMOVEFILE: 12; - RENAMEFILE: 13; - PUTFILE: 14; - GETFILE: 15; - BOOTFILE: 16; -} - -export const DeviceCapability: DeviceCapabilityMap; - -export interface DirEntryTypeMap { - DIRECTORY: 0; - FILE: 1; -} - -export const DirEntryType: DirEntryTypeMap; - diff --git a/examples/grpcweb/sni-client/sni_pb.js b/examples/grpcweb/sni-client/sni_pb.js deleted file mode 100644 index 0f932db..0000000 --- a/examples/grpcweb/sni-client/sni_pb.js +++ /dev/null @@ -1,8364 +0,0 @@ -// source: sni.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.AddressSpace', null, global); -goog.exportSymbol('proto.BootFileRequest', null, global); -goog.exportSymbol('proto.BootFileResponse', null, global); -goog.exportSymbol('proto.DetectMemoryMappingRequest', null, global); -goog.exportSymbol('proto.DetectMemoryMappingResponse', null, global); -goog.exportSymbol('proto.DeviceCapability', null, global); -goog.exportSymbol('proto.DevicesRequest', null, global); -goog.exportSymbol('proto.DevicesResponse', null, global); -goog.exportSymbol('proto.DevicesResponse.Device', null, global); -goog.exportSymbol('proto.DirEntry', null, global); -goog.exportSymbol('proto.DirEntryType', null, global); -goog.exportSymbol('proto.GetFileRequest', null, global); -goog.exportSymbol('proto.GetFileResponse', null, global); -goog.exportSymbol('proto.MakeDirectoryRequest', null, global); -goog.exportSymbol('proto.MakeDirectoryResponse', null, global); -goog.exportSymbol('proto.MemoryMapping', null, global); -goog.exportSymbol('proto.MultiReadMemoryRequest', null, global); -goog.exportSymbol('proto.MultiReadMemoryResponse', null, global); -goog.exportSymbol('proto.MultiWriteMemoryRequest', null, global); -goog.exportSymbol('proto.MultiWriteMemoryResponse', null, global); -goog.exportSymbol('proto.PauseEmulationRequest', null, global); -goog.exportSymbol('proto.PauseEmulationResponse', null, global); -goog.exportSymbol('proto.PauseToggleEmulationRequest', null, global); -goog.exportSymbol('proto.PauseToggleEmulationResponse', null, global); -goog.exportSymbol('proto.PutFileRequest', null, global); -goog.exportSymbol('proto.PutFileResponse', null, global); -goog.exportSymbol('proto.ReadDirectoryRequest', null, global); -goog.exportSymbol('proto.ReadDirectoryResponse', null, global); -goog.exportSymbol('proto.ReadMemoryRequest', null, global); -goog.exportSymbol('proto.ReadMemoryResponse', null, global); -goog.exportSymbol('proto.RemoveFileRequest', null, global); -goog.exportSymbol('proto.RemoveFileResponse', null, global); -goog.exportSymbol('proto.RenameFileRequest', null, global); -goog.exportSymbol('proto.RenameFileResponse', null, global); -goog.exportSymbol('proto.ResetSystemRequest', null, global); -goog.exportSymbol('proto.ResetSystemResponse', null, global); -goog.exportSymbol('proto.ResetToMenuRequest', null, global); -goog.exportSymbol('proto.ResetToMenuResponse', null, global); -goog.exportSymbol('proto.SingleReadMemoryRequest', null, global); -goog.exportSymbol('proto.SingleReadMemoryResponse', null, global); -goog.exportSymbol('proto.SingleWriteMemoryRequest', null, global); -goog.exportSymbol('proto.SingleWriteMemoryResponse', null, global); -goog.exportSymbol('proto.WriteMemoryRequest', null, global); -goog.exportSymbol('proto.WriteMemoryResponse', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DevicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.DevicesRequest.repeatedFields_, null); -}; -goog.inherits(proto.DevicesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DevicesRequest.displayName = 'proto.DevicesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DevicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.DevicesResponse.repeatedFields_, null); -}; -goog.inherits(proto.DevicesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DevicesResponse.displayName = 'proto.DevicesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DevicesResponse.Device = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.DevicesResponse.Device.repeatedFields_, null); -}; -goog.inherits(proto.DevicesResponse.Device, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DevicesResponse.Device.displayName = 'proto.DevicesResponse.Device'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ResetSystemRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ResetSystemRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ResetSystemRequest.displayName = 'proto.ResetSystemRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ResetSystemResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ResetSystemResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ResetSystemResponse.displayName = 'proto.ResetSystemResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ResetToMenuRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ResetToMenuRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ResetToMenuRequest.displayName = 'proto.ResetToMenuRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ResetToMenuResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ResetToMenuResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ResetToMenuResponse.displayName = 'proto.ResetToMenuResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PauseEmulationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PauseEmulationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PauseEmulationRequest.displayName = 'proto.PauseEmulationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PauseEmulationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PauseEmulationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PauseEmulationResponse.displayName = 'proto.PauseEmulationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PauseToggleEmulationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PauseToggleEmulationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PauseToggleEmulationRequest.displayName = 'proto.PauseToggleEmulationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PauseToggleEmulationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PauseToggleEmulationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PauseToggleEmulationResponse.displayName = 'proto.PauseToggleEmulationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DetectMemoryMappingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.DetectMemoryMappingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DetectMemoryMappingRequest.displayName = 'proto.DetectMemoryMappingRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DetectMemoryMappingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.DetectMemoryMappingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DetectMemoryMappingResponse.displayName = 'proto.DetectMemoryMappingResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ReadMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ReadMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ReadMemoryRequest.displayName = 'proto.ReadMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ReadMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ReadMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ReadMemoryResponse.displayName = 'proto.ReadMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.WriteMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.WriteMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.WriteMemoryRequest.displayName = 'proto.WriteMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.WriteMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.WriteMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.WriteMemoryResponse.displayName = 'proto.WriteMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.SingleReadMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.SingleReadMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.SingleReadMemoryRequest.displayName = 'proto.SingleReadMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.SingleReadMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.SingleReadMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.SingleReadMemoryResponse.displayName = 'proto.SingleReadMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.SingleWriteMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.SingleWriteMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.SingleWriteMemoryRequest.displayName = 'proto.SingleWriteMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.SingleWriteMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.SingleWriteMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.SingleWriteMemoryResponse.displayName = 'proto.SingleWriteMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MultiReadMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.MultiReadMemoryRequest.repeatedFields_, null); -}; -goog.inherits(proto.MultiReadMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MultiReadMemoryRequest.displayName = 'proto.MultiReadMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MultiReadMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.MultiReadMemoryResponse.repeatedFields_, null); -}; -goog.inherits(proto.MultiReadMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MultiReadMemoryResponse.displayName = 'proto.MultiReadMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MultiWriteMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.MultiWriteMemoryRequest.repeatedFields_, null); -}; -goog.inherits(proto.MultiWriteMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MultiWriteMemoryRequest.displayName = 'proto.MultiWriteMemoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MultiWriteMemoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.MultiWriteMemoryResponse.repeatedFields_, null); -}; -goog.inherits(proto.MultiWriteMemoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MultiWriteMemoryResponse.displayName = 'proto.MultiWriteMemoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ReadDirectoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ReadDirectoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ReadDirectoryRequest.displayName = 'proto.ReadDirectoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.DirEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.DirEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.DirEntry.displayName = 'proto.DirEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ReadDirectoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ReadDirectoryResponse.repeatedFields_, null); -}; -goog.inherits(proto.ReadDirectoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ReadDirectoryResponse.displayName = 'proto.ReadDirectoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MakeDirectoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.MakeDirectoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MakeDirectoryRequest.displayName = 'proto.MakeDirectoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.MakeDirectoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.MakeDirectoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.MakeDirectoryResponse.displayName = 'proto.MakeDirectoryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.RemoveFileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.RemoveFileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.RemoveFileRequest.displayName = 'proto.RemoveFileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.RemoveFileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.RemoveFileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.RemoveFileResponse.displayName = 'proto.RemoveFileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.RenameFileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.RenameFileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.RenameFileRequest.displayName = 'proto.RenameFileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.RenameFileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.RenameFileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.RenameFileResponse.displayName = 'proto.RenameFileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PutFileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PutFileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PutFileRequest.displayName = 'proto.PutFileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PutFileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PutFileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PutFileResponse.displayName = 'proto.PutFileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.GetFileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.GetFileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.GetFileRequest.displayName = 'proto.GetFileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.GetFileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.GetFileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.GetFileResponse.displayName = 'proto.GetFileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.BootFileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.BootFileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.BootFileRequest.displayName = 'proto.BootFileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.BootFileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.BootFileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.BootFileResponse.displayName = 'proto.BootFileResponse'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.DevicesRequest.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DevicesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.DevicesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DevicesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - kindsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DevicesRequest} - */ -proto.DevicesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DevicesRequest; - return proto.DevicesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DevicesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DevicesRequest} - */ -proto.DevicesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addKinds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DevicesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DevicesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DevicesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKindsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string kinds = 1; - * @return {!Array} - */ -proto.DevicesRequest.prototype.getKindsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.DevicesRequest} returns this - */ -proto.DevicesRequest.prototype.setKindsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.DevicesRequest} returns this - */ -proto.DevicesRequest.prototype.addKinds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.DevicesRequest} returns this - */ -proto.DevicesRequest.prototype.clearKindsList = function() { - return this.setKindsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.DevicesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DevicesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.DevicesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DevicesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - devicesList: jspb.Message.toObjectList(msg.getDevicesList(), - proto.DevicesResponse.Device.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DevicesResponse} - */ -proto.DevicesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DevicesResponse; - return proto.DevicesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DevicesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DevicesResponse} - */ -proto.DevicesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.DevicesResponse.Device; - reader.readMessage(value,proto.DevicesResponse.Device.deserializeBinaryFromReader); - msg.addDevices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DevicesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DevicesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DevicesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.DevicesResponse.Device.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.DevicesResponse.Device.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DevicesResponse.Device.prototype.toObject = function(opt_includeInstance) { - return proto.DevicesResponse.Device.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DevicesResponse.Device} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesResponse.Device.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - displayname: jspb.Message.getFieldWithDefault(msg, 2, ""), - kind: jspb.Message.getFieldWithDefault(msg, 3, ""), - capabilitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - defaultaddressspace: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DevicesResponse.Device} - */ -proto.DevicesResponse.Device.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DevicesResponse.Device; - return proto.DevicesResponse.Device.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DevicesResponse.Device} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DevicesResponse.Device} - */ -proto.DevicesResponse.Device.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); - for (var i = 0; i < values.length; i++) { - msg.addCapabilities(values[i]); - } - break; - case 5: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setDefaultaddressspace(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DevicesResponse.Device.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DevicesResponse.Device.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DevicesResponse.Device} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DevicesResponse.Device.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDisplayname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCapabilitiesList(); - if (f.length > 0) { - writer.writePackedEnum( - 4, - f - ); - } - f = message.getDefaultaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.DevicesResponse.Device.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string displayName = 2; - * @return {string} - */ -proto.DevicesResponse.Device.prototype.getDisplayname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.setDisplayname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string kind = 3; - * @return {string} - */ -proto.DevicesResponse.Device.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated DeviceCapability capabilities = 4; - * @return {!Array} - */ -proto.DevicesResponse.Device.prototype.getCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.setCapabilitiesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {!proto.DeviceCapability} value - * @param {number=} opt_index - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.addCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.clearCapabilitiesList = function() { - return this.setCapabilitiesList([]); -}; - - -/** - * optional AddressSpace defaultAddressSpace = 5; - * @return {!proto.AddressSpace} - */ -proto.DevicesResponse.Device.prototype.getDefaultaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.DevicesResponse.Device} returns this - */ -proto.DevicesResponse.Device.prototype.setDefaultaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * repeated Device devices = 1; - * @return {!Array} - */ -proto.DevicesResponse.prototype.getDevicesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.DevicesResponse.Device, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.DevicesResponse} returns this -*/ -proto.DevicesResponse.prototype.setDevicesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.DevicesResponse.Device=} opt_value - * @param {number=} opt_index - * @return {!proto.DevicesResponse.Device} - */ -proto.DevicesResponse.prototype.addDevices = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DevicesResponse.Device, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.DevicesResponse} returns this - */ -proto.DevicesResponse.prototype.clearDevicesList = function() { - return this.setDevicesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ResetSystemRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ResetSystemRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ResetSystemRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetSystemRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ResetSystemRequest} - */ -proto.ResetSystemRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ResetSystemRequest; - return proto.ResetSystemRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ResetSystemRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ResetSystemRequest} - */ -proto.ResetSystemRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ResetSystemRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ResetSystemRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ResetSystemRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetSystemRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ResetSystemRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ResetSystemRequest} returns this - */ -proto.ResetSystemRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ResetSystemResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ResetSystemResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ResetSystemResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetSystemResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ResetSystemResponse} - */ -proto.ResetSystemResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ResetSystemResponse; - return proto.ResetSystemResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ResetSystemResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ResetSystemResponse} - */ -proto.ResetSystemResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ResetSystemResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ResetSystemResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ResetSystemResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetSystemResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ResetSystemResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ResetSystemResponse} returns this - */ -proto.ResetSystemResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ResetToMenuRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ResetToMenuRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ResetToMenuRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetToMenuRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ResetToMenuRequest} - */ -proto.ResetToMenuRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ResetToMenuRequest; - return proto.ResetToMenuRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ResetToMenuRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ResetToMenuRequest} - */ -proto.ResetToMenuRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ResetToMenuRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ResetToMenuRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ResetToMenuRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetToMenuRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ResetToMenuRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ResetToMenuRequest} returns this - */ -proto.ResetToMenuRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ResetToMenuResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ResetToMenuResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ResetToMenuResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetToMenuResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ResetToMenuResponse} - */ -proto.ResetToMenuResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ResetToMenuResponse; - return proto.ResetToMenuResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ResetToMenuResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ResetToMenuResponse} - */ -proto.ResetToMenuResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ResetToMenuResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ResetToMenuResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ResetToMenuResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ResetToMenuResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ResetToMenuResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ResetToMenuResponse} returns this - */ -proto.ResetToMenuResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PauseEmulationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.PauseEmulationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PauseEmulationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseEmulationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - paused: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PauseEmulationRequest} - */ -proto.PauseEmulationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PauseEmulationRequest; - return proto.PauseEmulationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PauseEmulationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PauseEmulationRequest} - */ -proto.PauseEmulationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPaused(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PauseEmulationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PauseEmulationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PauseEmulationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseEmulationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPaused(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PauseEmulationRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PauseEmulationRequest} returns this - */ -proto.PauseEmulationRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool paused = 2; - * @return {boolean} - */ -proto.PauseEmulationRequest.prototype.getPaused = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.PauseEmulationRequest} returns this - */ -proto.PauseEmulationRequest.prototype.setPaused = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PauseEmulationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.PauseEmulationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PauseEmulationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseEmulationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - paused: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PauseEmulationResponse} - */ -proto.PauseEmulationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PauseEmulationResponse; - return proto.PauseEmulationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PauseEmulationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PauseEmulationResponse} - */ -proto.PauseEmulationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPaused(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PauseEmulationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PauseEmulationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PauseEmulationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseEmulationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPaused(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PauseEmulationResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PauseEmulationResponse} returns this - */ -proto.PauseEmulationResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool paused = 2; - * @return {boolean} - */ -proto.PauseEmulationResponse.prototype.getPaused = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.PauseEmulationResponse} returns this - */ -proto.PauseEmulationResponse.prototype.setPaused = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PauseToggleEmulationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.PauseToggleEmulationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PauseToggleEmulationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseToggleEmulationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PauseToggleEmulationRequest} - */ -proto.PauseToggleEmulationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PauseToggleEmulationRequest; - return proto.PauseToggleEmulationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PauseToggleEmulationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PauseToggleEmulationRequest} - */ -proto.PauseToggleEmulationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PauseToggleEmulationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PauseToggleEmulationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PauseToggleEmulationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseToggleEmulationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PauseToggleEmulationRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PauseToggleEmulationRequest} returns this - */ -proto.PauseToggleEmulationRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PauseToggleEmulationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.PauseToggleEmulationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PauseToggleEmulationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseToggleEmulationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PauseToggleEmulationResponse} - */ -proto.PauseToggleEmulationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PauseToggleEmulationResponse; - return proto.PauseToggleEmulationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PauseToggleEmulationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PauseToggleEmulationResponse} - */ -proto.PauseToggleEmulationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PauseToggleEmulationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PauseToggleEmulationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PauseToggleEmulationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PauseToggleEmulationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PauseToggleEmulationResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PauseToggleEmulationResponse} returns this - */ -proto.PauseToggleEmulationResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DetectMemoryMappingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.DetectMemoryMappingRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DetectMemoryMappingRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DetectMemoryMappingRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - fallbackmemorymapping: jspb.Message.getFieldWithDefault(msg, 2, 0), - romheader00ffb0: msg.getRomheader00ffb0_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DetectMemoryMappingRequest} - */ -proto.DetectMemoryMappingRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DetectMemoryMappingRequest; - return proto.DetectMemoryMappingRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DetectMemoryMappingRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DetectMemoryMappingRequest} - */ -proto.DetectMemoryMappingRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setFallbackmemorymapping(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRomheader00ffb0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DetectMemoryMappingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DetectMemoryMappingRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DetectMemoryMappingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DetectMemoryMappingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {!proto.MemoryMapping} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeEnum( - 2, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.DetectMemoryMappingRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DetectMemoryMappingRequest} returns this - */ -proto.DetectMemoryMappingRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional MemoryMapping fallbackMemoryMapping = 2; - * @return {!proto.MemoryMapping} - */ -proto.DetectMemoryMappingRequest.prototype.getFallbackmemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.DetectMemoryMappingRequest} returns this - */ -proto.DetectMemoryMappingRequest.prototype.setFallbackmemorymapping = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.DetectMemoryMappingRequest} returns this - */ -proto.DetectMemoryMappingRequest.prototype.clearFallbackmemorymapping = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.DetectMemoryMappingRequest.prototype.hasFallbackmemorymapping = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bytes romHeader00FFB0 = 3; - * @return {!(string|Uint8Array)} - */ -proto.DetectMemoryMappingRequest.prototype.getRomheader00ffb0 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes romHeader00FFB0 = 3; - * This is a type-conversion wrapper around `getRomheader00ffb0()` - * @return {string} - */ -proto.DetectMemoryMappingRequest.prototype.getRomheader00ffb0_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRomheader00ffb0())); -}; - - -/** - * optional bytes romHeader00FFB0 = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRomheader00ffb0()` - * @return {!Uint8Array} - */ -proto.DetectMemoryMappingRequest.prototype.getRomheader00ffb0_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRomheader00ffb0())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.DetectMemoryMappingRequest} returns this - */ -proto.DetectMemoryMappingRequest.prototype.setRomheader00ffb0 = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.DetectMemoryMappingRequest} returns this - */ -proto.DetectMemoryMappingRequest.prototype.clearRomheader00ffb0 = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.DetectMemoryMappingRequest.prototype.hasRomheader00ffb0 = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DetectMemoryMappingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.DetectMemoryMappingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DetectMemoryMappingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DetectMemoryMappingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - memorymapping: jspb.Message.getFieldWithDefault(msg, 2, 0), - confidence: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - romheader00ffb0: msg.getRomheader00ffb0_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DetectMemoryMappingResponse} - */ -proto.DetectMemoryMappingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DetectMemoryMappingResponse; - return proto.DetectMemoryMappingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DetectMemoryMappingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DetectMemoryMappingResponse} - */ -proto.DetectMemoryMappingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setMemorymapping(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfidence(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRomheader00ffb0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DetectMemoryMappingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DetectMemoryMappingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DetectMemoryMappingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DetectMemoryMappingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMemorymapping(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getConfidence(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getRomheader00ffb0_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.DetectMemoryMappingResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DetectMemoryMappingResponse} returns this - */ -proto.DetectMemoryMappingResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional MemoryMapping memoryMapping = 2; - * @return {!proto.MemoryMapping} - */ -proto.DetectMemoryMappingResponse.prototype.getMemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.DetectMemoryMappingResponse} returns this - */ -proto.DetectMemoryMappingResponse.prototype.setMemorymapping = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional bool confidence = 3; - * @return {boolean} - */ -proto.DetectMemoryMappingResponse.prototype.getConfidence = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.DetectMemoryMappingResponse} returns this - */ -proto.DetectMemoryMappingResponse.prototype.setConfidence = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bytes romHeader00FFB0 = 4; - * @return {!(string|Uint8Array)} - */ -proto.DetectMemoryMappingResponse.prototype.getRomheader00ffb0 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes romHeader00FFB0 = 4; - * This is a type-conversion wrapper around `getRomheader00ffb0()` - * @return {string} - */ -proto.DetectMemoryMappingResponse.prototype.getRomheader00ffb0_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRomheader00ffb0())); -}; - - -/** - * optional bytes romHeader00FFB0 = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRomheader00ffb0()` - * @return {!Uint8Array} - */ -proto.DetectMemoryMappingResponse.prototype.getRomheader00ffb0_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRomheader00ffb0())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.DetectMemoryMappingResponse} returns this - */ -proto.DetectMemoryMappingResponse.prototype.setRomheader00ffb0 = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ReadMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ReadMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ReadMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - requestaddress: jspb.Message.getFieldWithDefault(msg, 1, 0), - requestaddressspace: jspb.Message.getFieldWithDefault(msg, 2, 0), - requestmemorymapping: jspb.Message.getFieldWithDefault(msg, 4, 0), - size: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ReadMemoryRequest} - */ -proto.ReadMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ReadMemoryRequest; - return proto.ReadMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ReadMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ReadMemoryRequest} - */ -proto.ReadMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRequestaddress(value); - break; - case 2: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setRequestaddressspace(value); - break; - case 4: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setRequestmemorymapping(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSize(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ReadMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ReadMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ReadMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestaddress(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getRequestaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRequestmemorymapping(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 requestAddress = 1; - * @return {number} - */ -proto.ReadMemoryRequest.prototype.getRequestaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.ReadMemoryRequest} returns this - */ -proto.ReadMemoryRequest.prototype.setRequestaddress = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional AddressSpace requestAddressSpace = 2; - * @return {!proto.AddressSpace} - */ -proto.ReadMemoryRequest.prototype.getRequestaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.ReadMemoryRequest} returns this - */ -proto.ReadMemoryRequest.prototype.setRequestaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional MemoryMapping requestMemoryMapping = 4; - * @return {!proto.MemoryMapping} - */ -proto.ReadMemoryRequest.prototype.getRequestmemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.ReadMemoryRequest} returns this - */ -proto.ReadMemoryRequest.prototype.setRequestmemorymapping = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional uint32 size = 3; - * @return {number} - */ -proto.ReadMemoryRequest.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.ReadMemoryRequest} returns this - */ -proto.ReadMemoryRequest.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ReadMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ReadMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ReadMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestaddress: jspb.Message.getFieldWithDefault(msg, 1, 0), - requestaddressspace: jspb.Message.getFieldWithDefault(msg, 2, 0), - requestmemorymapping: jspb.Message.getFieldWithDefault(msg, 6, 0), - deviceaddress: jspb.Message.getFieldWithDefault(msg, 3, 0), - deviceaddressspace: jspb.Message.getFieldWithDefault(msg, 4, 0), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ReadMemoryResponse} - */ -proto.ReadMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ReadMemoryResponse; - return proto.ReadMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ReadMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ReadMemoryResponse} - */ -proto.ReadMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRequestaddress(value); - break; - case 2: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setRequestaddressspace(value); - break; - case 6: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setRequestmemorymapping(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceaddress(value); - break; - case 4: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setDeviceaddressspace(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ReadMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ReadMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ReadMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestaddress(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getRequestaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRequestmemorymapping(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getDeviceaddress(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getDeviceaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional uint32 requestAddress = 1; - * @return {number} - */ -proto.ReadMemoryResponse.prototype.getRequestaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setRequestaddress = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional AddressSpace requestAddressSpace = 2; - * @return {!proto.AddressSpace} - */ -proto.ReadMemoryResponse.prototype.getRequestaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setRequestaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional MemoryMapping requestMemoryMapping = 6; - * @return {!proto.MemoryMapping} - */ -proto.ReadMemoryResponse.prototype.getRequestmemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setRequestmemorymapping = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional uint32 deviceAddress = 3; - * @return {number} - */ -proto.ReadMemoryResponse.prototype.getDeviceaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setDeviceaddress = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional AddressSpace deviceAddressSpace = 4; - * @return {!proto.AddressSpace} - */ -proto.ReadMemoryResponse.prototype.getDeviceaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setDeviceaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional bytes data = 5; - * @return {!(string|Uint8Array)} - */ -proto.ReadMemoryResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes data = 5; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.ReadMemoryResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.ReadMemoryResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.ReadMemoryResponse} returns this - */ -proto.ReadMemoryResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.WriteMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.WriteMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.WriteMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.WriteMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - requestaddress: jspb.Message.getFieldWithDefault(msg, 1, 0), - requestaddressspace: jspb.Message.getFieldWithDefault(msg, 2, 0), - requestmemorymapping: jspb.Message.getFieldWithDefault(msg, 4, 0), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.WriteMemoryRequest} - */ -proto.WriteMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.WriteMemoryRequest; - return proto.WriteMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.WriteMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.WriteMemoryRequest} - */ -proto.WriteMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRequestaddress(value); - break; - case 2: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setRequestaddressspace(value); - break; - case 4: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setRequestmemorymapping(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.WriteMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.WriteMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.WriteMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.WriteMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestaddress(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getRequestaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRequestmemorymapping(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional uint32 requestAddress = 1; - * @return {number} - */ -proto.WriteMemoryRequest.prototype.getRequestaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.WriteMemoryRequest} returns this - */ -proto.WriteMemoryRequest.prototype.setRequestaddress = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional AddressSpace requestAddressSpace = 2; - * @return {!proto.AddressSpace} - */ -proto.WriteMemoryRequest.prototype.getRequestaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.WriteMemoryRequest} returns this - */ -proto.WriteMemoryRequest.prototype.setRequestaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional MemoryMapping requestMemoryMapping = 4; - * @return {!proto.MemoryMapping} - */ -proto.WriteMemoryRequest.prototype.getRequestmemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.WriteMemoryRequest} returns this - */ -proto.WriteMemoryRequest.prototype.setRequestmemorymapping = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional bytes data = 3; - * @return {!(string|Uint8Array)} - */ -proto.WriteMemoryRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.WriteMemoryRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.WriteMemoryRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.WriteMemoryRequest} returns this - */ -proto.WriteMemoryRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.WriteMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.WriteMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.WriteMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.WriteMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestaddress: jspb.Message.getFieldWithDefault(msg, 1, 0), - requestaddressspace: jspb.Message.getFieldWithDefault(msg, 2, 0), - requestmemorymapping: jspb.Message.getFieldWithDefault(msg, 6, 0), - deviceaddress: jspb.Message.getFieldWithDefault(msg, 3, 0), - deviceaddressspace: jspb.Message.getFieldWithDefault(msg, 4, 0), - size: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.WriteMemoryResponse} - */ -proto.WriteMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.WriteMemoryResponse; - return proto.WriteMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.WriteMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.WriteMemoryResponse} - */ -proto.WriteMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRequestaddress(value); - break; - case 2: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setRequestaddressspace(value); - break; - case 6: - var value = /** @type {!proto.MemoryMapping} */ (reader.readEnum()); - msg.setRequestmemorymapping(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceaddress(value); - break; - case 4: - var value = /** @type {!proto.AddressSpace} */ (reader.readEnum()); - msg.setDeviceaddressspace(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSize(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.WriteMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.WriteMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.WriteMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.WriteMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestaddress(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getRequestaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRequestmemorymapping(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getDeviceaddress(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getDeviceaddressspace(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } -}; - - -/** - * optional uint32 requestAddress = 1; - * @return {number} - */ -proto.WriteMemoryResponse.prototype.getRequestaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setRequestaddress = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional AddressSpace requestAddressSpace = 2; - * @return {!proto.AddressSpace} - */ -proto.WriteMemoryResponse.prototype.getRequestaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setRequestaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional MemoryMapping requestMemoryMapping = 6; - * @return {!proto.MemoryMapping} - */ -proto.WriteMemoryResponse.prototype.getRequestmemorymapping = function() { - return /** @type {!proto.MemoryMapping} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.MemoryMapping} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setRequestmemorymapping = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional uint32 deviceAddress = 3; - * @return {number} - */ -proto.WriteMemoryResponse.prototype.getDeviceaddress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setDeviceaddress = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional AddressSpace deviceAddressSpace = 4; - * @return {!proto.AddressSpace} - */ -proto.WriteMemoryResponse.prototype.getDeviceaddressspace = function() { - return /** @type {!proto.AddressSpace} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.AddressSpace} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setDeviceaddressspace = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional uint32 size = 5; - * @return {number} - */ -proto.WriteMemoryResponse.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.WriteMemoryResponse} returns this - */ -proto.WriteMemoryResponse.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.SingleReadMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.SingleReadMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.SingleReadMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleReadMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && proto.ReadMemoryRequest.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.SingleReadMemoryRequest} - */ -proto.SingleReadMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.SingleReadMemoryRequest; - return proto.SingleReadMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.SingleReadMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.SingleReadMemoryRequest} - */ -proto.SingleReadMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.ReadMemoryRequest; - reader.readMessage(value,proto.ReadMemoryRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.SingleReadMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.SingleReadMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.SingleReadMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleReadMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ReadMemoryRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.SingleReadMemoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.SingleReadMemoryRequest} returns this - */ -proto.SingleReadMemoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ReadMemoryRequest request = 2; - * @return {?proto.ReadMemoryRequest} - */ -proto.SingleReadMemoryRequest.prototype.getRequest = function() { - return /** @type{?proto.ReadMemoryRequest} */ ( - jspb.Message.getWrapperField(this, proto.ReadMemoryRequest, 2)); -}; - - -/** - * @param {?proto.ReadMemoryRequest|undefined} value - * @return {!proto.SingleReadMemoryRequest} returns this -*/ -proto.SingleReadMemoryRequest.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.SingleReadMemoryRequest} returns this - */ -proto.SingleReadMemoryRequest.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.SingleReadMemoryRequest.prototype.hasRequest = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.SingleReadMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.SingleReadMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.SingleReadMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleReadMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && proto.ReadMemoryResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.SingleReadMemoryResponse} - */ -proto.SingleReadMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.SingleReadMemoryResponse; - return proto.SingleReadMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.SingleReadMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.SingleReadMemoryResponse} - */ -proto.SingleReadMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.ReadMemoryResponse; - reader.readMessage(value,proto.ReadMemoryResponse.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.SingleReadMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.SingleReadMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.SingleReadMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleReadMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ReadMemoryResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.SingleReadMemoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.SingleReadMemoryResponse} returns this - */ -proto.SingleReadMemoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ReadMemoryResponse response = 2; - * @return {?proto.ReadMemoryResponse} - */ -proto.SingleReadMemoryResponse.prototype.getResponse = function() { - return /** @type{?proto.ReadMemoryResponse} */ ( - jspb.Message.getWrapperField(this, proto.ReadMemoryResponse, 2)); -}; - - -/** - * @param {?proto.ReadMemoryResponse|undefined} value - * @return {!proto.SingleReadMemoryResponse} returns this -*/ -proto.SingleReadMemoryResponse.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.SingleReadMemoryResponse} returns this - */ -proto.SingleReadMemoryResponse.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.SingleReadMemoryResponse.prototype.hasResponse = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.SingleWriteMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.SingleWriteMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.SingleWriteMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleWriteMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && proto.WriteMemoryRequest.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.SingleWriteMemoryRequest} - */ -proto.SingleWriteMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.SingleWriteMemoryRequest; - return proto.SingleWriteMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.SingleWriteMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.SingleWriteMemoryRequest} - */ -proto.SingleWriteMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.WriteMemoryRequest; - reader.readMessage(value,proto.WriteMemoryRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.SingleWriteMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.SingleWriteMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.SingleWriteMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleWriteMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.WriteMemoryRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.SingleWriteMemoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.SingleWriteMemoryRequest} returns this - */ -proto.SingleWriteMemoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional WriteMemoryRequest request = 2; - * @return {?proto.WriteMemoryRequest} - */ -proto.SingleWriteMemoryRequest.prototype.getRequest = function() { - return /** @type{?proto.WriteMemoryRequest} */ ( - jspb.Message.getWrapperField(this, proto.WriteMemoryRequest, 2)); -}; - - -/** - * @param {?proto.WriteMemoryRequest|undefined} value - * @return {!proto.SingleWriteMemoryRequest} returns this -*/ -proto.SingleWriteMemoryRequest.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.SingleWriteMemoryRequest} returns this - */ -proto.SingleWriteMemoryRequest.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.SingleWriteMemoryRequest.prototype.hasRequest = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.SingleWriteMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.SingleWriteMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.SingleWriteMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleWriteMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && proto.WriteMemoryResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.SingleWriteMemoryResponse} - */ -proto.SingleWriteMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.SingleWriteMemoryResponse; - return proto.SingleWriteMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.SingleWriteMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.SingleWriteMemoryResponse} - */ -proto.SingleWriteMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.WriteMemoryResponse; - reader.readMessage(value,proto.WriteMemoryResponse.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.SingleWriteMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.SingleWriteMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.SingleWriteMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.SingleWriteMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.WriteMemoryResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.SingleWriteMemoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.SingleWriteMemoryResponse} returns this - */ -proto.SingleWriteMemoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional WriteMemoryResponse response = 2; - * @return {?proto.WriteMemoryResponse} - */ -proto.SingleWriteMemoryResponse.prototype.getResponse = function() { - return /** @type{?proto.WriteMemoryResponse} */ ( - jspb.Message.getWrapperField(this, proto.WriteMemoryResponse, 2)); -}; - - -/** - * @param {?proto.WriteMemoryResponse|undefined} value - * @return {!proto.SingleWriteMemoryResponse} returns this -*/ -proto.SingleWriteMemoryResponse.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.SingleWriteMemoryResponse} returns this - */ -proto.SingleWriteMemoryResponse.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.SingleWriteMemoryResponse.prototype.hasResponse = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.MultiReadMemoryRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MultiReadMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.MultiReadMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MultiReadMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiReadMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - requestsList: jspb.Message.toObjectList(msg.getRequestsList(), - proto.ReadMemoryRequest.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MultiReadMemoryRequest} - */ -proto.MultiReadMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MultiReadMemoryRequest; - return proto.MultiReadMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MultiReadMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MultiReadMemoryRequest} - */ -proto.MultiReadMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.ReadMemoryRequest; - reader.readMessage(value,proto.ReadMemoryRequest.deserializeBinaryFromReader); - msg.addRequests(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MultiReadMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MultiReadMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MultiReadMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiReadMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequestsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.ReadMemoryRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MultiReadMemoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MultiReadMemoryRequest} returns this - */ -proto.MultiReadMemoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ReadMemoryRequest requests = 2; - * @return {!Array} - */ -proto.MultiReadMemoryRequest.prototype.getRequestsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ReadMemoryRequest, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.MultiReadMemoryRequest} returns this -*/ -proto.MultiReadMemoryRequest.prototype.setRequestsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.ReadMemoryRequest=} opt_value - * @param {number=} opt_index - * @return {!proto.ReadMemoryRequest} - */ -proto.MultiReadMemoryRequest.prototype.addRequests = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ReadMemoryRequest, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.MultiReadMemoryRequest} returns this - */ -proto.MultiReadMemoryRequest.prototype.clearRequestsList = function() { - return this.setRequestsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.MultiReadMemoryResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MultiReadMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.MultiReadMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MultiReadMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiReadMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - responsesList: jspb.Message.toObjectList(msg.getResponsesList(), - proto.ReadMemoryResponse.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MultiReadMemoryResponse} - */ -proto.MultiReadMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MultiReadMemoryResponse; - return proto.MultiReadMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MultiReadMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MultiReadMemoryResponse} - */ -proto.MultiReadMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.ReadMemoryResponse; - reader.readMessage(value,proto.ReadMemoryResponse.deserializeBinaryFromReader); - msg.addResponses(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MultiReadMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MultiReadMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MultiReadMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiReadMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponsesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.ReadMemoryResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MultiReadMemoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MultiReadMemoryResponse} returns this - */ -proto.MultiReadMemoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ReadMemoryResponse responses = 2; - * @return {!Array} - */ -proto.MultiReadMemoryResponse.prototype.getResponsesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ReadMemoryResponse, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.MultiReadMemoryResponse} returns this -*/ -proto.MultiReadMemoryResponse.prototype.setResponsesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.ReadMemoryResponse=} opt_value - * @param {number=} opt_index - * @return {!proto.ReadMemoryResponse} - */ -proto.MultiReadMemoryResponse.prototype.addResponses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ReadMemoryResponse, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.MultiReadMemoryResponse} returns this - */ -proto.MultiReadMemoryResponse.prototype.clearResponsesList = function() { - return this.setResponsesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.MultiWriteMemoryRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MultiWriteMemoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.MultiWriteMemoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MultiWriteMemoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiWriteMemoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - requestsList: jspb.Message.toObjectList(msg.getRequestsList(), - proto.WriteMemoryRequest.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MultiWriteMemoryRequest} - */ -proto.MultiWriteMemoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MultiWriteMemoryRequest; - return proto.MultiWriteMemoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MultiWriteMemoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MultiWriteMemoryRequest} - */ -proto.MultiWriteMemoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.WriteMemoryRequest; - reader.readMessage(value,proto.WriteMemoryRequest.deserializeBinaryFromReader); - msg.addRequests(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MultiWriteMemoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MultiWriteMemoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MultiWriteMemoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiWriteMemoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequestsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.WriteMemoryRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MultiWriteMemoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MultiWriteMemoryRequest} returns this - */ -proto.MultiWriteMemoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated WriteMemoryRequest requests = 2; - * @return {!Array} - */ -proto.MultiWriteMemoryRequest.prototype.getRequestsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.WriteMemoryRequest, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.MultiWriteMemoryRequest} returns this -*/ -proto.MultiWriteMemoryRequest.prototype.setRequestsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.WriteMemoryRequest=} opt_value - * @param {number=} opt_index - * @return {!proto.WriteMemoryRequest} - */ -proto.MultiWriteMemoryRequest.prototype.addRequests = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.WriteMemoryRequest, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.MultiWriteMemoryRequest} returns this - */ -proto.MultiWriteMemoryRequest.prototype.clearRequestsList = function() { - return this.setRequestsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.MultiWriteMemoryResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MultiWriteMemoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.MultiWriteMemoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MultiWriteMemoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiWriteMemoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - responsesList: jspb.Message.toObjectList(msg.getResponsesList(), - proto.WriteMemoryResponse.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MultiWriteMemoryResponse} - */ -proto.MultiWriteMemoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MultiWriteMemoryResponse; - return proto.MultiWriteMemoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MultiWriteMemoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MultiWriteMemoryResponse} - */ -proto.MultiWriteMemoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = new proto.WriteMemoryResponse; - reader.readMessage(value,proto.WriteMemoryResponse.deserializeBinaryFromReader); - msg.addResponses(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MultiWriteMemoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MultiWriteMemoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MultiWriteMemoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MultiWriteMemoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponsesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.WriteMemoryResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MultiWriteMemoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MultiWriteMemoryResponse} returns this - */ -proto.MultiWriteMemoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated WriteMemoryResponse responses = 2; - * @return {!Array} - */ -proto.MultiWriteMemoryResponse.prototype.getResponsesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.WriteMemoryResponse, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.MultiWriteMemoryResponse} returns this -*/ -proto.MultiWriteMemoryResponse.prototype.setResponsesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.WriteMemoryResponse=} opt_value - * @param {number=} opt_index - * @return {!proto.WriteMemoryResponse} - */ -proto.MultiWriteMemoryResponse.prototype.addResponses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.WriteMemoryResponse, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.MultiWriteMemoryResponse} returns this - */ -proto.MultiWriteMemoryResponse.prototype.clearResponsesList = function() { - return this.setResponsesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ReadDirectoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ReadDirectoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ReadDirectoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadDirectoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ReadDirectoryRequest} - */ -proto.ReadDirectoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ReadDirectoryRequest; - return proto.ReadDirectoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ReadDirectoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ReadDirectoryRequest} - */ -proto.ReadDirectoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ReadDirectoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ReadDirectoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ReadDirectoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadDirectoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ReadDirectoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ReadDirectoryRequest} returns this - */ -proto.ReadDirectoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.ReadDirectoryRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ReadDirectoryRequest} returns this - */ -proto.ReadDirectoryRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.DirEntry.prototype.toObject = function(opt_includeInstance) { - return proto.DirEntry.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.DirEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DirEntry.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.DirEntry} - */ -proto.DirEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.DirEntry; - return proto.DirEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.DirEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.DirEntry} - */ -proto.DirEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!proto.DirEntryType} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.DirEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.DirEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.DirEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.DirEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.DirEntry.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.DirEntry} returns this - */ -proto.DirEntry.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional DirEntryType type = 2; - * @return {!proto.DirEntryType} - */ -proto.DirEntry.prototype.getType = function() { - return /** @type {!proto.DirEntryType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.DirEntryType} value - * @return {!proto.DirEntry} returns this - */ -proto.DirEntry.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ReadDirectoryResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ReadDirectoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ReadDirectoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ReadDirectoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadDirectoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - entriesList: jspb.Message.toObjectList(msg.getEntriesList(), - proto.DirEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ReadDirectoryResponse} - */ -proto.ReadDirectoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ReadDirectoryResponse; - return proto.ReadDirectoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ReadDirectoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ReadDirectoryResponse} - */ -proto.ReadDirectoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = new proto.DirEntry; - reader.readMessage(value,proto.DirEntry.deserializeBinaryFromReader); - msg.addEntries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ReadDirectoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ReadDirectoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ReadDirectoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ReadDirectoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEntriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.DirEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.ReadDirectoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ReadDirectoryResponse} returns this - */ -proto.ReadDirectoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.ReadDirectoryResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ReadDirectoryResponse} returns this - */ -proto.ReadDirectoryResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated DirEntry entries = 3; - * @return {!Array} - */ -proto.ReadDirectoryResponse.prototype.getEntriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.DirEntry, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ReadDirectoryResponse} returns this -*/ -proto.ReadDirectoryResponse.prototype.setEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.DirEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.DirEntry} - */ -proto.ReadDirectoryResponse.prototype.addEntries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.DirEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ReadDirectoryResponse} returns this - */ -proto.ReadDirectoryResponse.prototype.clearEntriesList = function() { - return this.setEntriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MakeDirectoryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.MakeDirectoryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MakeDirectoryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MakeDirectoryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MakeDirectoryRequest} - */ -proto.MakeDirectoryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MakeDirectoryRequest; - return proto.MakeDirectoryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MakeDirectoryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MakeDirectoryRequest} - */ -proto.MakeDirectoryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MakeDirectoryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MakeDirectoryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MakeDirectoryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MakeDirectoryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MakeDirectoryRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MakeDirectoryRequest} returns this - */ -proto.MakeDirectoryRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.MakeDirectoryRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MakeDirectoryRequest} returns this - */ -proto.MakeDirectoryRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.MakeDirectoryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.MakeDirectoryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.MakeDirectoryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MakeDirectoryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.MakeDirectoryResponse} - */ -proto.MakeDirectoryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.MakeDirectoryResponse; - return proto.MakeDirectoryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.MakeDirectoryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.MakeDirectoryResponse} - */ -proto.MakeDirectoryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.MakeDirectoryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.MakeDirectoryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.MakeDirectoryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.MakeDirectoryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.MakeDirectoryResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MakeDirectoryResponse} returns this - */ -proto.MakeDirectoryResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.MakeDirectoryResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.MakeDirectoryResponse} returns this - */ -proto.MakeDirectoryResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.RemoveFileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.RemoveFileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.RemoveFileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RemoveFileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.RemoveFileRequest} - */ -proto.RemoveFileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.RemoveFileRequest; - return proto.RemoveFileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.RemoveFileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.RemoveFileRequest} - */ -proto.RemoveFileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.RemoveFileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.RemoveFileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.RemoveFileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RemoveFileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.RemoveFileRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RemoveFileRequest} returns this - */ -proto.RemoveFileRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.RemoveFileRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RemoveFileRequest} returns this - */ -proto.RemoveFileRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.RemoveFileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.RemoveFileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.RemoveFileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RemoveFileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.RemoveFileResponse} - */ -proto.RemoveFileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.RemoveFileResponse; - return proto.RemoveFileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.RemoveFileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.RemoveFileResponse} - */ -proto.RemoveFileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.RemoveFileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.RemoveFileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.RemoveFileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RemoveFileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.RemoveFileResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RemoveFileResponse} returns this - */ -proto.RemoveFileResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.RemoveFileResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RemoveFileResponse} returns this - */ -proto.RemoveFileResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.RenameFileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.RenameFileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.RenameFileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RenameFileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - newfilename: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.RenameFileRequest} - */ -proto.RenameFileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.RenameFileRequest; - return proto.RenameFileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.RenameFileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.RenameFileRequest} - */ -proto.RenameFileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewfilename(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.RenameFileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.RenameFileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.RenameFileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RenameFileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNewfilename(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.RenameFileRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileRequest} returns this - */ -proto.RenameFileRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.RenameFileRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileRequest} returns this - */ -proto.RenameFileRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string newFilename = 3; - * @return {string} - */ -proto.RenameFileRequest.prototype.getNewfilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileRequest} returns this - */ -proto.RenameFileRequest.prototype.setNewfilename = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.RenameFileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.RenameFileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.RenameFileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RenameFileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - newfilename: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.RenameFileResponse} - */ -proto.RenameFileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.RenameFileResponse; - return proto.RenameFileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.RenameFileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.RenameFileResponse} - */ -proto.RenameFileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewfilename(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.RenameFileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.RenameFileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.RenameFileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.RenameFileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNewfilename(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.RenameFileResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileResponse} returns this - */ -proto.RenameFileResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.RenameFileResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileResponse} returns this - */ -proto.RenameFileResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string newFilename = 3; - * @return {string} - */ -proto.RenameFileResponse.prototype.getNewfilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.RenameFileResponse} returns this - */ -proto.RenameFileResponse.prototype.setNewfilename = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PutFileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.PutFileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PutFileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PutFileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PutFileRequest} - */ -proto.PutFileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PutFileRequest; - return proto.PutFileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PutFileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PutFileRequest} - */ -proto.PutFileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PutFileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PutFileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PutFileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PutFileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PutFileRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PutFileRequest} returns this - */ -proto.PutFileRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.PutFileRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PutFileRequest} returns this - */ -proto.PutFileRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes data = 3; - * @return {!(string|Uint8Array)} - */ -proto.PutFileRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.PutFileRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.PutFileRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.PutFileRequest} returns this - */ -proto.PutFileRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PutFileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.PutFileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PutFileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PutFileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - size: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PutFileResponse} - */ -proto.PutFileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PutFileResponse; - return proto.PutFileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PutFileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PutFileResponse} - */ -proto.PutFileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSize(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PutFileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PutFileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PutFileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PutFileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.PutFileResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PutFileResponse} returns this - */ -proto.PutFileResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.PutFileResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PutFileResponse} returns this - */ -proto.PutFileResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 size = 3; - * @return {number} - */ -proto.PutFileResponse.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PutFileResponse} returns this - */ -proto.PutFileResponse.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.GetFileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.GetFileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.GetFileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.GetFileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.GetFileRequest} - */ -proto.GetFileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.GetFileRequest; - return proto.GetFileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.GetFileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.GetFileRequest} - */ -proto.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.GetFileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.GetFileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.GetFileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.GetFileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.GetFileRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.GetFileRequest} returns this - */ -proto.GetFileRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.GetFileRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.GetFileRequest} returns this - */ -proto.GetFileRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.GetFileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.GetFileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.GetFileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.GetFileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - size: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.GetFileResponse} - */ -proto.GetFileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.GetFileResponse; - return proto.GetFileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.GetFileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.GetFileResponse} - */ -proto.GetFileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSize(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.GetFileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.GetFileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.GetFileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.GetFileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.GetFileResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.GetFileResponse} returns this - */ -proto.GetFileResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.GetFileResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.GetFileResponse} returns this - */ -proto.GetFileResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 size = 3; - * @return {number} - */ -proto.GetFileResponse.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.GetFileResponse} returns this - */ -proto.GetFileResponse.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes data = 4; - * @return {!(string|Uint8Array)} - */ -proto.GetFileResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.GetFileResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.GetFileResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.GetFileResponse} returns this - */ -proto.GetFileResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.BootFileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.BootFileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.BootFileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.BootFileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.BootFileRequest} - */ -proto.BootFileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.BootFileRequest; - return proto.BootFileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.BootFileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.BootFileRequest} - */ -proto.BootFileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.BootFileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.BootFileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.BootFileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.BootFileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.BootFileRequest.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.BootFileRequest} returns this - */ -proto.BootFileRequest.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.BootFileRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.BootFileRequest} returns this - */ -proto.BootFileRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.BootFileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.BootFileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.BootFileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.BootFileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uri: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.BootFileResponse} - */ -proto.BootFileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.BootFileResponse; - return proto.BootFileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.BootFileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.BootFileResponse} - */ -proto.BootFileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUri(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.BootFileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.BootFileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.BootFileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.BootFileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string uri = 1; - * @return {string} - */ -proto.BootFileResponse.prototype.getUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.BootFileResponse} returns this - */ -proto.BootFileResponse.prototype.setUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.BootFileResponse.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.BootFileResponse} returns this - */ -proto.BootFileResponse.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.AddressSpace = { - FXPAKPRO: 0, - SNESABUS: 1, - RAW: 2 -}; - -/** - * @enum {number} - */ -proto.MemoryMapping = { - UNKNOWN: 0, - HIROM: 1, - LOROM: 2, - EXHIROM: 3 -}; - -/** - * @enum {number} - */ -proto.DeviceCapability = { - NONE: 0, - READMEMORY: 1, - WRITEMEMORY: 2, - EXECUTEASM: 3, - RESETSYSTEM: 4, - PAUSEUNPAUSEEMULATION: 5, - PAUSETOGGLEEMULATION: 6, - RESETTOMENU: 7, - READDIRECTORY: 10, - MAKEDIRECTORY: 11, - REMOVEFILE: 12, - RENAMEFILE: 13, - PUTFILE: 14, - GETFILE: 15, - BOOTFILE: 16 -}; - -/** - * @enum {number} - */ -proto.DirEntryType = { - DIRECTORY: 0, - FILE: 1 -}; - -goog.object.extend(exports, proto); diff --git a/examples/grpcweb/sni-client/sni_pb_service.d.ts b/examples/grpcweb/sni-client/sni_pb_service.d.ts deleted file mode 100644 index 1a739bc..0000000 --- a/examples/grpcweb/sni-client/sni_pb_service.d.ts +++ /dev/null @@ -1,419 +0,0 @@ -// package: -// file: sni.proto - -import * as sni_pb from "./sni_pb"; -import {grpc} from "@improbable-eng/grpc-web"; - -type DevicesListDevices = { - readonly methodName: string; - readonly service: typeof Devices; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.DevicesRequest; - readonly responseType: typeof sni_pb.DevicesResponse; -}; - -export class Devices { - static readonly serviceName: string; - static readonly ListDevices: DevicesListDevices; -} - -type DeviceControlResetSystem = { - readonly methodName: string; - readonly service: typeof DeviceControl; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.ResetSystemRequest; - readonly responseType: typeof sni_pb.ResetSystemResponse; -}; - -type DeviceControlResetToMenu = { - readonly methodName: string; - readonly service: typeof DeviceControl; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.ResetToMenuRequest; - readonly responseType: typeof sni_pb.ResetToMenuResponse; -}; - -type DeviceControlPauseUnpauseEmulation = { - readonly methodName: string; - readonly service: typeof DeviceControl; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.PauseEmulationRequest; - readonly responseType: typeof sni_pb.PauseEmulationResponse; -}; - -type DeviceControlPauseToggleEmulation = { - readonly methodName: string; - readonly service: typeof DeviceControl; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.PauseToggleEmulationRequest; - readonly responseType: typeof sni_pb.PauseToggleEmulationResponse; -}; - -export class DeviceControl { - static readonly serviceName: string; - static readonly ResetSystem: DeviceControlResetSystem; - static readonly ResetToMenu: DeviceControlResetToMenu; - static readonly PauseUnpauseEmulation: DeviceControlPauseUnpauseEmulation; - static readonly PauseToggleEmulation: DeviceControlPauseToggleEmulation; -} - -type DeviceMemoryMappingDetect = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.DetectMemoryMappingRequest; - readonly responseType: typeof sni_pb.DetectMemoryMappingResponse; -}; - -type DeviceMemorySingleRead = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.SingleReadMemoryRequest; - readonly responseType: typeof sni_pb.SingleReadMemoryResponse; -}; - -type DeviceMemorySingleWrite = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.SingleWriteMemoryRequest; - readonly responseType: typeof sni_pb.SingleWriteMemoryResponse; -}; - -type DeviceMemoryMultiRead = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.MultiReadMemoryRequest; - readonly responseType: typeof sni_pb.MultiReadMemoryResponse; -}; - -type DeviceMemoryMultiWrite = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.MultiWriteMemoryRequest; - readonly responseType: typeof sni_pb.MultiWriteMemoryResponse; -}; - -type DeviceMemoryStreamRead = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: true; - readonly responseStream: true; - readonly requestType: typeof sni_pb.MultiReadMemoryRequest; - readonly responseType: typeof sni_pb.MultiReadMemoryResponse; -}; - -type DeviceMemoryStreamWrite = { - readonly methodName: string; - readonly service: typeof DeviceMemory; - readonly requestStream: true; - readonly responseStream: true; - readonly requestType: typeof sni_pb.MultiWriteMemoryRequest; - readonly responseType: typeof sni_pb.MultiWriteMemoryResponse; -}; - -export class DeviceMemory { - static readonly serviceName: string; - static readonly MappingDetect: DeviceMemoryMappingDetect; - static readonly SingleRead: DeviceMemorySingleRead; - static readonly SingleWrite: DeviceMemorySingleWrite; - static readonly MultiRead: DeviceMemoryMultiRead; - static readonly MultiWrite: DeviceMemoryMultiWrite; - static readonly StreamRead: DeviceMemoryStreamRead; - static readonly StreamWrite: DeviceMemoryStreamWrite; -} - -type DeviceFilesystemReadDirectory = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.ReadDirectoryRequest; - readonly responseType: typeof sni_pb.ReadDirectoryResponse; -}; - -type DeviceFilesystemMakeDirectory = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.MakeDirectoryRequest; - readonly responseType: typeof sni_pb.MakeDirectoryResponse; -}; - -type DeviceFilesystemRemoveFile = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.RemoveFileRequest; - readonly responseType: typeof sni_pb.RemoveFileResponse; -}; - -type DeviceFilesystemRenameFile = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.RenameFileRequest; - readonly responseType: typeof sni_pb.RenameFileResponse; -}; - -type DeviceFilesystemPutFile = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.PutFileRequest; - readonly responseType: typeof sni_pb.PutFileResponse; -}; - -type DeviceFilesystemGetFile = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.GetFileRequest; - readonly responseType: typeof sni_pb.GetFileResponse; -}; - -type DeviceFilesystemBootFile = { - readonly methodName: string; - readonly service: typeof DeviceFilesystem; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof sni_pb.BootFileRequest; - readonly responseType: typeof sni_pb.BootFileResponse; -}; - -export class DeviceFilesystem { - static readonly serviceName: string; - static readonly ReadDirectory: DeviceFilesystemReadDirectory; - static readonly MakeDirectory: DeviceFilesystemMakeDirectory; - static readonly RemoveFile: DeviceFilesystemRemoveFile; - static readonly RenameFile: DeviceFilesystemRenameFile; - static readonly PutFile: DeviceFilesystemPutFile; - static readonly GetFile: DeviceFilesystemGetFile; - static readonly BootFile: DeviceFilesystemBootFile; -} - -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } - -interface UnaryResponse { - cancel(): void; -} -interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; -} -interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; -} -interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; -} - -export class DevicesClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - listDevices( - requestMessage: sni_pb.DevicesRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.DevicesResponse|null) => void - ): UnaryResponse; - listDevices( - requestMessage: sni_pb.DevicesRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.DevicesResponse|null) => void - ): UnaryResponse; -} - -export class DeviceControlClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - resetSystem( - requestMessage: sni_pb.ResetSystemRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.ResetSystemResponse|null) => void - ): UnaryResponse; - resetSystem( - requestMessage: sni_pb.ResetSystemRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.ResetSystemResponse|null) => void - ): UnaryResponse; - resetToMenu( - requestMessage: sni_pb.ResetToMenuRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.ResetToMenuResponse|null) => void - ): UnaryResponse; - resetToMenu( - requestMessage: sni_pb.ResetToMenuRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.ResetToMenuResponse|null) => void - ): UnaryResponse; - pauseUnpauseEmulation( - requestMessage: sni_pb.PauseEmulationRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.PauseEmulationResponse|null) => void - ): UnaryResponse; - pauseUnpauseEmulation( - requestMessage: sni_pb.PauseEmulationRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.PauseEmulationResponse|null) => void - ): UnaryResponse; - pauseToggleEmulation( - requestMessage: sni_pb.PauseToggleEmulationRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.PauseToggleEmulationResponse|null) => void - ): UnaryResponse; - pauseToggleEmulation( - requestMessage: sni_pb.PauseToggleEmulationRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.PauseToggleEmulationResponse|null) => void - ): UnaryResponse; -} - -export class DeviceMemoryClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - mappingDetect( - requestMessage: sni_pb.DetectMemoryMappingRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.DetectMemoryMappingResponse|null) => void - ): UnaryResponse; - mappingDetect( - requestMessage: sni_pb.DetectMemoryMappingRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.DetectMemoryMappingResponse|null) => void - ): UnaryResponse; - singleRead( - requestMessage: sni_pb.SingleReadMemoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.SingleReadMemoryResponse|null) => void - ): UnaryResponse; - singleRead( - requestMessage: sni_pb.SingleReadMemoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.SingleReadMemoryResponse|null) => void - ): UnaryResponse; - singleWrite( - requestMessage: sni_pb.SingleWriteMemoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.SingleWriteMemoryResponse|null) => void - ): UnaryResponse; - singleWrite( - requestMessage: sni_pb.SingleWriteMemoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.SingleWriteMemoryResponse|null) => void - ): UnaryResponse; - multiRead( - requestMessage: sni_pb.MultiReadMemoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.MultiReadMemoryResponse|null) => void - ): UnaryResponse; - multiRead( - requestMessage: sni_pb.MultiReadMemoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.MultiReadMemoryResponse|null) => void - ): UnaryResponse; - multiWrite( - requestMessage: sni_pb.MultiWriteMemoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.MultiWriteMemoryResponse|null) => void - ): UnaryResponse; - multiWrite( - requestMessage: sni_pb.MultiWriteMemoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.MultiWriteMemoryResponse|null) => void - ): UnaryResponse; - streamRead(metadata?: grpc.Metadata): BidirectionalStream; - streamWrite(metadata?: grpc.Metadata): BidirectionalStream; -} - -export class DeviceFilesystemClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - readDirectory( - requestMessage: sni_pb.ReadDirectoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.ReadDirectoryResponse|null) => void - ): UnaryResponse; - readDirectory( - requestMessage: sni_pb.ReadDirectoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.ReadDirectoryResponse|null) => void - ): UnaryResponse; - makeDirectory( - requestMessage: sni_pb.MakeDirectoryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.MakeDirectoryResponse|null) => void - ): UnaryResponse; - makeDirectory( - requestMessage: sni_pb.MakeDirectoryRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.MakeDirectoryResponse|null) => void - ): UnaryResponse; - removeFile( - requestMessage: sni_pb.RemoveFileRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.RemoveFileResponse|null) => void - ): UnaryResponse; - removeFile( - requestMessage: sni_pb.RemoveFileRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.RemoveFileResponse|null) => void - ): UnaryResponse; - renameFile( - requestMessage: sni_pb.RenameFileRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.RenameFileResponse|null) => void - ): UnaryResponse; - renameFile( - requestMessage: sni_pb.RenameFileRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.RenameFileResponse|null) => void - ): UnaryResponse; - putFile( - requestMessage: sni_pb.PutFileRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.PutFileResponse|null) => void - ): UnaryResponse; - putFile( - requestMessage: sni_pb.PutFileRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.PutFileResponse|null) => void - ): UnaryResponse; - getFile( - requestMessage: sni_pb.GetFileRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.GetFileResponse|null) => void - ): UnaryResponse; - getFile( - requestMessage: sni_pb.GetFileRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.GetFileResponse|null) => void - ): UnaryResponse; - bootFile( - requestMessage: sni_pb.BootFileRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: sni_pb.BootFileResponse|null) => void - ): UnaryResponse; - bootFile( - requestMessage: sni_pb.BootFileRequest, - callback: (error: ServiceError|null, responseMessage: sni_pb.BootFileResponse|null) => void - ): UnaryResponse; -} - diff --git a/examples/grpcweb/sni-client/sni_pb_service.js b/examples/grpcweb/sni-client/sni_pb_service.js deleted file mode 100644 index 109a104..0000000 --- a/examples/grpcweb/sni-client/sni_pb_service.js +++ /dev/null @@ -1,854 +0,0 @@ -// package: -// file: sni.proto - -var sni_pb = require("./sni_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; - -var Devices = (function () { - function Devices() {} - Devices.serviceName = "Devices"; - return Devices; -}()); - -Devices.ListDevices = { - methodName: "ListDevices", - service: Devices, - requestStream: false, - responseStream: false, - requestType: sni_pb.DevicesRequest, - responseType: sni_pb.DevicesResponse -}; - -exports.Devices = Devices; - -function DevicesClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -DevicesClient.prototype.listDevices = function listDevices(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Devices.ListDevices, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.DevicesClient = DevicesClient; - -var DeviceControl = (function () { - function DeviceControl() {} - DeviceControl.serviceName = "DeviceControl"; - return DeviceControl; -}()); - -DeviceControl.ResetSystem = { - methodName: "ResetSystem", - service: DeviceControl, - requestStream: false, - responseStream: false, - requestType: sni_pb.ResetSystemRequest, - responseType: sni_pb.ResetSystemResponse -}; - -DeviceControl.ResetToMenu = { - methodName: "ResetToMenu", - service: DeviceControl, - requestStream: false, - responseStream: false, - requestType: sni_pb.ResetToMenuRequest, - responseType: sni_pb.ResetToMenuResponse -}; - -DeviceControl.PauseUnpauseEmulation = { - methodName: "PauseUnpauseEmulation", - service: DeviceControl, - requestStream: false, - responseStream: false, - requestType: sni_pb.PauseEmulationRequest, - responseType: sni_pb.PauseEmulationResponse -}; - -DeviceControl.PauseToggleEmulation = { - methodName: "PauseToggleEmulation", - service: DeviceControl, - requestStream: false, - responseStream: false, - requestType: sni_pb.PauseToggleEmulationRequest, - responseType: sni_pb.PauseToggleEmulationResponse -}; - -exports.DeviceControl = DeviceControl; - -function DeviceControlClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -DeviceControlClient.prototype.resetSystem = function resetSystem(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceControl.ResetSystem, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceControlClient.prototype.resetToMenu = function resetToMenu(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceControl.ResetToMenu, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceControlClient.prototype.pauseUnpauseEmulation = function pauseUnpauseEmulation(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceControl.PauseUnpauseEmulation, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceControlClient.prototype.pauseToggleEmulation = function pauseToggleEmulation(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceControl.PauseToggleEmulation, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.DeviceControlClient = DeviceControlClient; - -var DeviceMemory = (function () { - function DeviceMemory() {} - DeviceMemory.serviceName = "DeviceMemory"; - return DeviceMemory; -}()); - -DeviceMemory.MappingDetect = { - methodName: "MappingDetect", - service: DeviceMemory, - requestStream: false, - responseStream: false, - requestType: sni_pb.DetectMemoryMappingRequest, - responseType: sni_pb.DetectMemoryMappingResponse -}; - -DeviceMemory.SingleRead = { - methodName: "SingleRead", - service: DeviceMemory, - requestStream: false, - responseStream: false, - requestType: sni_pb.SingleReadMemoryRequest, - responseType: sni_pb.SingleReadMemoryResponse -}; - -DeviceMemory.SingleWrite = { - methodName: "SingleWrite", - service: DeviceMemory, - requestStream: false, - responseStream: false, - requestType: sni_pb.SingleWriteMemoryRequest, - responseType: sni_pb.SingleWriteMemoryResponse -}; - -DeviceMemory.MultiRead = { - methodName: "MultiRead", - service: DeviceMemory, - requestStream: false, - responseStream: false, - requestType: sni_pb.MultiReadMemoryRequest, - responseType: sni_pb.MultiReadMemoryResponse -}; - -DeviceMemory.MultiWrite = { - methodName: "MultiWrite", - service: DeviceMemory, - requestStream: false, - responseStream: false, - requestType: sni_pb.MultiWriteMemoryRequest, - responseType: sni_pb.MultiWriteMemoryResponse -}; - -DeviceMemory.StreamRead = { - methodName: "StreamRead", - service: DeviceMemory, - requestStream: true, - responseStream: true, - requestType: sni_pb.MultiReadMemoryRequest, - responseType: sni_pb.MultiReadMemoryResponse -}; - -DeviceMemory.StreamWrite = { - methodName: "StreamWrite", - service: DeviceMemory, - requestStream: true, - responseStream: true, - requestType: sni_pb.MultiWriteMemoryRequest, - responseType: sni_pb.MultiWriteMemoryResponse -}; - -exports.DeviceMemory = DeviceMemory; - -function DeviceMemoryClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -DeviceMemoryClient.prototype.mappingDetect = function mappingDetect(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceMemory.MappingDetect, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.singleRead = function singleRead(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceMemory.SingleRead, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.singleWrite = function singleWrite(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceMemory.SingleWrite, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.multiRead = function multiRead(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceMemory.MultiRead, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.multiWrite = function multiWrite(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceMemory.MultiWrite, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.streamRead = function streamRead(metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.client(DeviceMemory.StreamRead, { - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport - }); - client.onEnd(function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - }); - client.onMessage(function (message) { - listeners.data.forEach(function (handler) { - handler(message); - }) - }); - client.start(metadata); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - write: function (requestMessage) { - client.send(requestMessage); - return this; - }, - end: function () { - client.finishSend(); - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -DeviceMemoryClient.prototype.streamWrite = function streamWrite(metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.client(DeviceMemory.StreamWrite, { - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport - }); - client.onEnd(function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - }); - client.onMessage(function (message) { - listeners.data.forEach(function (handler) { - handler(message); - }) - }); - client.start(metadata); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - write: function (requestMessage) { - client.send(requestMessage); - return this; - }, - end: function () { - client.finishSend(); - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -exports.DeviceMemoryClient = DeviceMemoryClient; - -var DeviceFilesystem = (function () { - function DeviceFilesystem() {} - DeviceFilesystem.serviceName = "DeviceFilesystem"; - return DeviceFilesystem; -}()); - -DeviceFilesystem.ReadDirectory = { - methodName: "ReadDirectory", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.ReadDirectoryRequest, - responseType: sni_pb.ReadDirectoryResponse -}; - -DeviceFilesystem.MakeDirectory = { - methodName: "MakeDirectory", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.MakeDirectoryRequest, - responseType: sni_pb.MakeDirectoryResponse -}; - -DeviceFilesystem.RemoveFile = { - methodName: "RemoveFile", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.RemoveFileRequest, - responseType: sni_pb.RemoveFileResponse -}; - -DeviceFilesystem.RenameFile = { - methodName: "RenameFile", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.RenameFileRequest, - responseType: sni_pb.RenameFileResponse -}; - -DeviceFilesystem.PutFile = { - methodName: "PutFile", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.PutFileRequest, - responseType: sni_pb.PutFileResponse -}; - -DeviceFilesystem.GetFile = { - methodName: "GetFile", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.GetFileRequest, - responseType: sni_pb.GetFileResponse -}; - -DeviceFilesystem.BootFile = { - methodName: "BootFile", - service: DeviceFilesystem, - requestStream: false, - responseStream: false, - requestType: sni_pb.BootFileRequest, - responseType: sni_pb.BootFileResponse -}; - -exports.DeviceFilesystem = DeviceFilesystem; - -function DeviceFilesystemClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -DeviceFilesystemClient.prototype.readDirectory = function readDirectory(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.ReadDirectory, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.makeDirectory = function makeDirectory(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.MakeDirectory, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.removeFile = function removeFile(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.RemoveFile, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.renameFile = function renameFile(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.RenameFile, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.putFile = function putFile(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.PutFile, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.getFile = function getFile(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.GetFile, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -DeviceFilesystemClient.prototype.bootFile = function bootFile(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(DeviceFilesystem.BootFile, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.DeviceFilesystemClient = DeviceFilesystemClient; - diff --git a/examples/grpcweb/src/index.ts b/examples/grpcweb/src/index.ts deleted file mode 100644 index 79ddc5a..0000000 --- a/examples/grpcweb/src/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import {grpc} from "@improbable-eng/grpc-web"; - -// Import code-generated data structures. -import {Devices, DevicesClient} from "../sni-client/sni_pb_service"; -import {DevicesRequest, DevicesResponse} from "../sni-client/sni_pb"; - -const host = "http://localhost:8190"; - -const req = new DevicesRequest(); -grpc.unary(Devices.ListDevices, { - request: req, - host: host, - onEnd: res => { - const { status, statusMessage, headers, message, trailers } = res; - if (status === grpc.Code.OK && message) { - console.log("all ok. got devices: ", message.toObject()); - } - } -}); diff --git a/examples/grpcweb/tsconfig.json b/examples/grpcweb/tsconfig.json index 936731d..c714696 100644 --- a/examples/grpcweb/tsconfig.json +++ b/examples/grpcweb/tsconfig.json @@ -1,101 +1,27 @@ -{ - "compilerOptions": { - /* Visit https://aka.ms/tsconfig.json to read more about this file */ - - /* Projects */ - // "incremental": true, /* Enable incremental compilation */ - // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ - // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ - // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ - // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ - - /* Language and Environment */ - "target": "es6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - //"lib": ["es2016"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "jsx": "preserve", /* Specify what JSX code is generated. */ - // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ - // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ - // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ - // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ - // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - - /* Modules */ - "module": "es6", /* Specify what module code is generated. */ - "rootDir": "src", /* Specify the root folder within your source files. */ - "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ - // "types": [], /* Specify type package names to be included without being referenced in a source file. */ - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - // "resolveJsonModule": true, /* Enable importing .json files */ - // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ - - /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ - // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ - - /* Emit */ - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - // "declarationMap": true, /* Create sourcemaps for d.ts files. */ - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ - // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ - "outDir": "dist", /* Specify an output folder for all emitted files. */ - // "removeComments": true, /* Disable emitting comments. */ - // "noEmit": true, /* Disable emitting files from a compilation. */ - // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ - // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ - // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ - // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ - // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ - // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ - // "newLine": "crlf", /* Set the newline character for emitting files. */ - // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ - // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ - // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ - // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ - // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ - // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ - - /* Interop Constraints */ - // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ - // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ - // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ - // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ - // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ - // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ - // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ - // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ - // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ - // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ - // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ - // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ - // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ - // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ - // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ - // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ - // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ - - /* Completeness */ - // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } -} +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/examples/grpcweb/webpack.config.js b/examples/grpcweb/webpack.config.js deleted file mode 100644 index 23a33e1..0000000 --- a/examples/grpcweb/webpack.config.js +++ /dev/null @@ -1,21 +0,0 @@ -const path = require('path'); - -module.exports = { - entry: './src/index.ts', - module: { - rules: [ - { - test: /\.tsx?$/, - use: 'ts-loader', - exclude: /node_modules/, - }, - ], - }, - resolve: { - extensions: ['.tsx', '.ts', '.js'], - }, - output: { - filename: 'bundle.js', - path: path.resolve(__dirname, 'dist'), - }, -};