Reputation: 4597
I am attempting to compile a C# library for GoogleCloudSpeechToTextv1p1beta1 from a .proto file here. The protobuf compiler works, except that it is missing dependencies from the googleapis/google/protobuf directory. All of the other import files that it depends on exist, here.
My question is this: Why is the protobuf directory missing from the googleapis/google directory? Is it a library that I need to compile/assemble personally? Or is it something Google should be providing and it's just missing?
Upvotes: 3
Views: 1568
Reputation: 1502086
The google/protobuf
directory is shipped with the Google.Protobuf.Tools
package, under tools
(so there's tools/google/protobuf/any.proto
for example). Alternatively, the same files are within the protobuf GitHub repo (under src
- the protos are mixed with the C++ code).
So you should include the tools
directory as a "root" in the protoc
call if you need to... but in this particular case, there's already a NuGet package of Google.Cloud.Speech.V1P1Beta1 so I'd suggest you use that instead :) (There are even docs available if you know to extrapolate the URL scheme from other APIs. It's not really advertised as such.)
Upvotes: 5