Protobuf
Protobuf
컴파일
package <package>;
는.
으로 구분되어 namespace로 사용됩니다.- e.g.,
package foo.bar;
->foo::bar
- e.g.,
import "<path>/<proto>.proto";
는 디렉토리 경로와 파일명으로 사용됩니다.- e.g.,
import "foo/bar.proto";
->foo/bar[.grpc].pb<.h|.ccc>
- e.g.,
protoc \
--proto_path=<protoRoot> \
--cpp_out=<cppRoot> \
<protoFile>