Importing proto files from google such as Struct is pretty much straightforward as shown below:
syntax = "proto3";
package messages;
import "google/protobuf/struct.proto";
message UnaryRequest{
google.protobuf.Struct data = 1;
}
I would like to replicate same flow with my team such that instead of
import "google/protobuf/struct.proto"
we will have:
syntax = "proto3";
package messages;
import "myorg/protobuf/unary.proto"; //Notice difference here
message UnaryRequest{
myorg.protobuf.UnaryData data = 1; //Notice difference here
}
Where import "myorg/protobuf/unary.proto"
is expected to be retrieved from my orgs utility npm package which is reusable across internal microservices.
How can this be done?
Any ideas would be really appreciated.