Utilites for converting protobuf descriptors (e.g. from GRPC reflection) to protobuf.js descriptors.
convertFileDescriptorSet(buffer: Uint8Array): Root
- decode binary FileDescriptorSet intoprotobuf.js
Root;convertFileDescriptor(buffer: Uint8Array): Root
- decode binary FileDescriptorProto intoprotobuf.js
Root;addFromFileDescriptorSet(root: Root, buffer: Uint8Array)
- add definitions from binary FileDescriptorSet into existingprotobuf.js
Root;addFromFileDescriptor(root: Root, buffer: Uint8Array)
- add definitions from binary FileDescriptorProto into existingprotobuf.js
Root;function resolveAll(root: Root)
- resolve types and apply necessary postprocessing.