Hi
I have a proto like this:

syntax = "proto3";
package foobar;

import "google/api/annotations.proto";

message ProductId {
string id = 1;
}

message ProductDetails {
string name = 1;
string imageUrl = 2;
}

service ProductInfo {
rpc getProductDetails(ProductId) returns (ProductDetails) {
option (google.api.http) = {
post: "/product/details"
};
}
}

I am using py_proto_library to generate code for this proto. Note, I am 
referring to annotations.proto in my proto file.

I want the py_proto_library target to only compile my proto and generate 
code for it. The compiled versions of annotations.proto are available via 
googleapis-common-protos which is installed in my python environment. At 
runtime, I want to the generated code to refer to the files 
googleapis-common-protos for dependencies like annotation.proto

How can I achieve this?

Regards
Mihir





-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/1432fb79-7d15-4f3f-9da5-86951a8e77abn%40googlegroups.com.

Reply via email to