-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error using google.protobuf.Any #117
Comments
You may need to manually import the type. https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto |
@kjvalencik do you mean like copy and paste the any.proto content to my proto? |
You shouldn't need to copy if it's already there. Do you have an import line for it? Only paths are supported when importing in pbf. |
option go_package = "go";
package wire;
import "google/protobuf/any.proto";
message RequestEnvelope {
string correlationId = 1;
string callPath = 2;
google.protobuf.Any payload = 3;
} this is the full file. The ./google/protobuf/any.proto file exists (otherwise I get ENOENT) |
Could you check out this sandbox please? |
Ok so what i managed to figure out is that when proto is parsed, it looks like this
Note the
|
Did (@anri-asaturov) you find solution? I have same problem, but with google.protobuf.BytesValue (in wrapper.proto)? |
@janch11 no, I had to fork/rewrite pbf to my needs since there was even more issues not aligning with my use case |
I have the same problem with Any too. How exactly can I fix it? |
Sandbox: https://repl.it/repls/GleamingWhimsicalInformationtechnology
pbf fails to compile this proto
with
Is it known that it's not supported or am I doing something wrong?
The text was updated successfully, but these errors were encountered: