Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc-cloned / node_modules / protobufjs / README.md
diff --git a/legacy-libs/grpc-cloned/node_modules/protobufjs/README.md b/legacy-libs/grpc-cloned/node_modules/protobufjs/README.md
new file mode 100644 (file)
index 0000000..1cf6661
--- /dev/null
@@ -0,0 +1,184 @@
+protobuf.js 5 [![Build Status](https://travis-ci.org/dcodeIO/protobuf.js.svg?branch=ProtoBuf5)](https://travis-ci.org/dcodeIO/protobuf.js) [![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=%3C3%20protobuf.js)\r
+=====================================\r
+**Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use\r
+in communications protocols, data storage, and more, originally designed at Google ([see](https://developers.google.com/protocol-buffers/docs/overview)).\r
+\r
+**protobuf.js** is a pure JavaScript implementation on top of [bytebuffer.js](https://github.com/dcodeIO/bytebuffer.js)\r
+including a .proto parser, message class building and simple encoding and decoding. There is no compilation step\r
+required, it's super easy to use and it works out of the box on .proto files!\r
+\r
+Getting started\r
+---------------\r
+* **Step 1:** Become familar with [Google's Protocol Buffers (protobuf)](https://developers.google.com/protocol-buffers/docs/overview)\r
+* **Step 2:** Read on or head straight to [our wiki](https://github.com/dcodeIO/protobuf.js/wiki) for additional information\r
+* **Step 3:** Build something cool! :-)\r
+\r
+Features\r
+--------\r
+* [RequireJS](http://requirejs.org/)/AMD compatible\r
+* [node.js](http://nodejs.org)/CommonJS compatible, also available via [npm](https://npmjs.org/package/protobufjs)\r
+* Browser compatible\r
+* [Closure Compiler](https://developers.google.com/closure/compiler/) compatible (fully annotated, [externs](https://github.com/dcodeIO/protobuf.js/tree/master/externs))\r
+* Fully documented using [jsdoc3](https://github.com/jsdoc3/jsdoc)\r
+* Well tested through [test.js](https://github.com/dcodeIO/test.js)\r
+* [bytebuffer.js](https://github.com/dcodeIO/bytebuffer.js) is the only production dependency\r
+* Fully compatible to the official implementation including advanced features\r
+* proto2js command line utility\r
+\r
+Installation\r
+------------\r
+\r
+### node.js / CommonJS\r
+\r
+```\r
+$> npm install protobufjs\r
+```\r
+\r
+```js\r
+var ProtoBuf = require("protobufjs");\r
+...\r
+```\r
+\r
+### RequireJS / AMD\r
+\r
+Requires [bytebuffer.js](http://github.com/dcodeIO/bytebuffer.js). Optionally depends on [long.js](https://github.com/dcodeIO/long.js) for long (int64) support. If you do not require long support, you can skip the Long.js config. RequireJS example:\r
+\r
+```js\r
+require(["protobuf"], function(ProtoBuf) {\r
+    ...\r
+});\r
+```\r
+\r
+Or as a module dependency:\r
+\r
+```js\r
+define("MyModule", ["protobuf"], function(ProtoBuf) {\r
+    ...\r
+});\r
+```\r
+\r
+### Browser\r
+\r
+Requires [bytebuffer.js](http://github.com/dcodeIO/bytebuffer.js). Optionally depends on [long.js](https://github.com/dcodeIO/long.js) for long (int64) support. If you do not require long support, you can skip the Long.js include.\r
+\r
+```html\r
+<!-- Order is important -->\r
+<script src="long.min.js"></script>\r
+<script src="bytebuffer.min.js"></script>\r
+<script src="protobuf.min.js"></script>\r
+```\r
+\r
+```js\r
+var ProtoBuf = dcodeIO.ProtoBuf;\r
+...\r
+```\r
+\r
+Getting started\r
+---------------\r
+\r
+*Note:* You'll need the full build to load .proto data. light builds are able to load JSON only.\r
+\r
+### Loading .proto files\r
+\r
+To load a .proto file, use:\r
+\r
+**API:** `ProtoBuf.loadProtoFile(source[, callback[, builder]]):Builder|undefined`\r
+\r
+```js\r
+// Synchronously\r
+var builder = ProtoBuf.loadProtoFile("path/to/file.proto");\r
+\r
+// Asynchronously\r
+ProtoBuf.loadProtoFile("path/to/file.proto", function(err, builder) {\r
+    ...\r
+});\r
+```\r
+\r
+`ProtoBuf.loadProtoFile` also accepts an object specifying the import root directory and the file to load as its first parameter: `{root: string, file: string}`. Additionally, an already created and then reused builder can be specified as the last argument, which is useful if all the definitions shall reside in a single namespace.\r
+\r
+### Loading .proto strings\r
+\r
+**API:** `ProtoBuf.loadProto(source[, builder][, filename]):Builder`\r
+\r
+```js\r
+var builder = ProtoBuf.loadProto(...protoString..., "myproto.proto");\r
+```\r
+\r
+### Loading JSON files and strings\r
+\r
+To load the (raw) JSON counterpart generated through pbjs, use `ProtoBuf.loadJsonFile` respectively `ProtoBuf.loadJson`. It's the same API.\r
+\r
+If you generated classes or modules with it, loading is done just by including respectively requiring the resulting file. Loading is handled transparently in this case.\r
+\r
+When using JSON only, you can use protobuf-light.js or protobuf-light.min.js instead, which do NOT include the ProtoBuf.DotProto package for parsing and are therefore smaller.\r
+\r
+Command line\r
+------------\r
+Since ProtoBuf.js 4.0.0 the library ships with the `pbjs` command line utility. With it it's possible to convert between .proto and JSON descriptors and even to generate the code required to access runtime structures as pure JS (classes), an AMD module or a CommonJS module.\r
+\r
+```\r
+\r
+ _ |_ . _\r
+|_)|_)|_)           ProtoBuf.js v4.0.0-b3 https://github.com/dcodeIO/ProtoBuf.js\r
+|     '\r
+\r
+CLI utility to convert between .proto and JSON syntax / to generate classes.\r
+\r
+Usage: pbjs <filename> [options] [> outFile]\r
+\r
+Options:\r
+  --help, -h        Show help  [boolean]\r
+  --version, -v     Show version number  [boolean]\r
+  --source, -s      Specifies the source format. Valid formats are:\r
+\r
+                       json       Plain JSON descriptor\r
+                       proto      Plain .proto descriptor\r
+\r
+  --target, -t      Specifies the target format. Valid formats are:\r
+\r
+                       amd        Runtime structures as AMD module\r
+                       commonjs   Runtime structures as CommonJS module\r
+                       js         Runtime structures\r
+                       json       Plain JSON descriptor\r
+                       proto      Plain .proto descriptor\r
+\r
+  --using, -u       Specifies an option to apply to the volatile builder\r
+                    loading the source, e.g. convertFieldsToCamelCase.\r
+  --min, -m         Minifies the output.  [default: false]\r
+  --path, -p        Adds a directory to the include path.\r
+  --legacy, -l      Includes legacy descriptors from google/protobuf/ if\r
+                    explicitly referenced.  [default: false]\r
+  --quiet, -q       Suppresses any informatory output to stderr.  [default: false]\r
+  --use, -i         Specifies an option to apply to the emitted builder\r
+                    utilized by your program, e.g. populateAccessors.\r
+  --exports, -e     Specifies the namespace to export. Defaults to export\r
+                    the root namespace.\r
+  --dependency, -d  Library dependency to use when generating classes.\r
+                    Defaults to 'protobufjs' for CommonJS, 'ProtoBuf' for\r
+                    AMD modules and 'dcodeIO.ProtoBuf' for classes.\r
+```\r
+\r
+Documentation\r
+-------------\r
+* [Read the official protobuf guide](https://developers.google.com/protocol-buffers/docs/overview)\r
+* [Read the API docs](http://htmlpreview.github.io/?https://raw.githubusercontent.com/dcodeIO/protobuf.js/ProtoBuf5/docs/ProtoBuf.html)\r
+* [Check out the examples](https://github.com/dcodeIO/protobuf.js/tree/ProtoBuf5/examples)\r
+\r
+Tests\r
+-----\r
+* [View source](https://github.com/dcodeIO/protobuf.js/blob/ProtoBuf5/tests/suite.js)\r
+\r
+Downloads\r
+---------\r
+* [Distributions](https://github.com/dcodeIO/protobuf.js/tree/ProtoBuf5/dist)\r
+* [ZIP-Archive](https://github.com/dcodeIO/protobuf.js/archive/ProtoBuf5.zip)\r
+* [Tarball](https://github.com/dcodeIO/protobuf.js/tarball/ProtoBuf5)\r
+\r
+CDN usage\r
+---------\r
+```html\r
+<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/5.0.1/dist/protobuf.min.js"></script>\r
+```\r
+With the version pointing to the exact [release](https://github.com/dcodeIO/protobuf.js/releases) your project depends upon.\r
+\r
+**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\r