From the course: Building Java Microservices with gRPC

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Generated classes walk-through

Generated classes walk-through

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

Generated classes walk-through

- [Instructor] Our demo is complete, but we still need to take a look through the generated classes in order to understand them better. So firstly, all the classes got generated in a package, which is com.example.services. And that is because, if you recollect, under the employee proto file we explicitly mentioned the Java_ package on number five. Had we not done this, then all the classes would have sat in a package which is called example. Now the most important class to look in this is the employee service GRPC. I will open this with my editor. So if you look through this, this has got the client and the silver stubs boat. Which you will use to implement the server and the client later. So it has got to get employee method, the RPC method, which you see on line 20 and 21. Additionally, it has got a list of methods, which provide the client a step in order to make a call to the service remote method. Now the…

Contents