Ah no, I was doing the steps manually with a project that doesn't use
gradle or maven.

As I look back over the doc I see you did mention about the plugin, but I
missed it. :(

"Next we need to generate the gRPC client and server interfaces from our
.proto service definition. We do this using the protocol buffer compiler
protoc with a special gRPC Java plugin. You need to use the proto3
<https://github.com/google/protobuf/releases> compiler (which supports both
proto2 and proto3 syntax) in order to generate gRPC services.

When using Gradle or Maven, the protoc build plugin can generate the
necessary code as part of the build. You can refer to the README
<https://github.com/grpc/grpc-java/blob/master/README.md> for how to
generate code from your own .proto files."

The README link there points to gRPC instead of protobuf, not sure if that
is intentional. And for better clarity perhaps add "a special gRPC Java
plugin which is downloaded separately" and "the protoc build plugin can
automatically download the protoc gRPC plugin and" or something.
Once I figured that out, I was able to find and download the protoc plugin
and adjust my protoc command line to include the protoc plugin and continue
the tutorial successfully. :)

Thank you!


On Mon, Oct 28, 2019 at 1:41 PM Jihun Cho <[email protected]> wrote:

> Hi,
>
> did you build from the release tags?
> after I ran `./gradlew installDist`
>
> I can find the RouteGuideGrpc.java in the build directory. can you make
> sure you ran this command and your branch is a release branch?
>
>
> On Mon, Oct 28, 2019 at 11:14 AM <[email protected]> wrote:
>
>> Just as a heads up, it appears that the java tutorial is outdated- I got
>> to the step where you start making stubs for the java client, and there was
>> no RouteGuideGrpc.java file! I looked into it and apparently protobuf
>> has changed so it requires a plugin. And the generated code docs have been
>> updated and are correct, but the tutorial doesn't say anything about it,
>> and in fact appears to follow the old java_generic_services
>>  functionality.
>> Just thought someone might want to know.
>> Thanks for all the hard work and for sharing these tools!
>>   -vazor
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "grpc.io" 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/grpc-io/6683c6ce-f814-4b5e-a079-11654bd731a5%40googlegroups.com
>> <https://groups.google.com/d/msgid/grpc-io/6683c6ce-f814-4b5e-a079-11654bd731a5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" 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/grpc-io/CANwk9dv2VaW%2B4YaG5oXPkVBRvrReXK5vBOBCSvFjVW7CwMsoWg%40mail.gmail.com.

Reply via email to