How to use the protobufjs/light.roots function in protobufjs

To help you get started, we’ve selected a few protobufjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github berty / berty / js / packages / berty-api / index.pb.js View on Github external
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
import * as $protobuf from "protobufjs/light";

const $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $protobuf.Root()))
.addJSON({
  berty: {
    nested: {
      chat: {
        nested: {
          ChatService: {
            methods: {
              Search: {
                requestType: "Search.Request",
                responseType: "Search.Reply",
                responseStream: true
              },
              EventSubscribe: {
                requestType: "EventSubscribe.Request",
                responseType: "EventSubscribe.Reply",
                responseStream: true
github buttplugio / buttplug-js / packages / buttplug-server-cli / src / buttplug-gui-proto.js View on Github external
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/light");

var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $protobuf.Root()))
.addJSON({
  ButtplugGuiProtocol: {
    options: {
      csharp_namespace: "Buttplug.Server.CLI"
    },
    nested: {
      ServerControlMessage: {
        oneofs: {
          msg: {
            oneof: [
              "stop"
            ]
          }
        },
        fields: {
          stop: {
github dcos / dcos-ui / src / js / mesos-proto.ts View on Github external
THIS FILE IS (MOSTLY) GENERATED!
  Here are the steps to reproduce it. Please note that the proto-file-dependencies (the file names added in the long command below) have been collected manually. You may have to reverse-engineer all the dependencies again, if you want to recompile.

git clone https://github.com/apache/mesos cd mesos/include npm install protobufjs https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/duration.proto npx pbjs -t json-module duration.proto mesos/v1/mesos.proto mesos/v1/maintenance/maintenance.proto mesos/v1/allocator/allocator.proto mesos/v1/quota/quota.proto mesos/v1/master/master.proto -o mesos=proto.js -w es6 --keep-case echo "now manually edit the output-files header!"

*/

import * as $protobuf from "protobufjs/light";

const $root = (
$protobuf.roots.default || ($protobuf.roots.default = new $protobuf.Root())
).addJSON({
google: {
  nested: {
    protobuf: {
      options: {
        csharp_namespace: "Google.Protobuf.WellKnownTypes",
        cc_enable_arenas: true,
        go_package: "github.com/golang/protobuf/ptypes/duration",
        java_package: "com.google.protobuf",
        java_outer_classname: "DurationProto",
        java_multiple_files: true,
        objc_class_prefix: "GPB"
      },
      nested: {
        Duration: {
          fields: {
github berty / berty / js / packages / api / index.pb.js View on Github external
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
import * as $protobuf from "protobufjs/light";

const $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $protobuf.Root()))
.addJSON({
  berty: {
    nested: {
      bridge: {
        nested: {
          v1: {
            options: {
              go_package: "berty.tech/berty/go/framework/bertybridge/internal/bridgepb"
            },
            nested: {
              BridgeService: {
                methods: {
                  ClientInvokeUnary: {
                    requestType: "ClientInvokeUnary.Request",
                    responseType: "ClientInvokeUnary.Reply"
                  },