Skip to content

support of protoset binary format? #1117

Open
@c0b

Description

@c0b

from grpc/grpc-node#556 wonder is the protoset binary format already supported? or can be added?

I have searched the keyword of grpc + nodejs + protoset on google and within this repo, nothing found so far

protobuf.load("awesome.protoset", function(err, root) {
  ...
}

I see the compiled protoset binary format is a good solution to bundle many related *.proto files into a single one file, it's pretty well supported by protoc compiler, and in Go language pkg github.com/golang/protobuf, and tools like grpcurl
https://github.com/fullstorydev/grpcurl#protoset-files
https://github.com/golang/protobuf/tree/master/protoc-gen-go/descriptor

$ protoc --help
Usage: protoc [OPTION] PROTO_FILES
Parse PROTO_FILES and generate output based on the options given:
  -IPATH, --proto_path=PATH   Specify the directory in which to search for
                              imports.  May be specified multiple times;
                              directories will be searched in order.  If not
                              given, the current working directory is used.

  -oFILE,                     Writes a FileDescriptorSet (a protocol buffer,
    --descriptor_set_out=FILE defined in descriptor.proto) containing all of
                              the input files to FILE.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions