Google Coding Knowledge
What's JSPB
JSPB is a JavaScript protocol buffer implementation
What's JSPB wire format?
JSPB uses an array based JSON-compliant syntax for the wire format.
What is a Boq node?
Self-contained chunks of code and configuration that can be assembled with other nodes and deployed together as a server.
How to generate JSPB from proto libraries?
Use jspb_proto_library target jspb_proto_library( name = "example_jspb_proto", deps = [":example_proto"], )
How to build a proto library?
Use proto_library target proto_library( name = "example_proto", srcs = ["example.proto"], deps = [...], )
How to import a goog module member exports in TypeScript? goog.module('proto.my.pkg.Foo'); exports = { foo, bar, }
import * as Foo from 'goog:proto.my.pkg.Foo'; // from //path/to/proto:protos import {foo, bar} from 'goog:proto.my.pkg.Foo'; // from //path/to/proto:protos
How to import a goog module default exports in TypeScript? goog.module('proto.my.pkg.Foo'); exports = Foo
import Foo from 'goog:proto.my.pkg.Foo'; // from //path/to/proto:protos
How to import a goog provide module in TypeScript? goog.provide('proto.my.pkg.Foo');
import Foo from 'goog:proto.my.pkg.Foo'; // from //path/to/proto:protos