How to auto-generate gRPC code using protoc

Figure 1: gRPC uses the Protocol Buffers binary format as the lingua franca of data exchange

Figure 1: gRPC uses the Protocol Buffers binary format as the lingua franca of data exchange

What is a .proto file?
Figure 2: The protoc executable is available for each release of Protocol Buffers

Figure 2: The protoc executable is available for each release of Protocol Buffers

Figure 3: The protoc executable is available in an operating system specific zip file

Figure 3: The protoc executable is available in an operating system specific zip file

Figure 4: The language-specific zip files contain examples working with the protoc compiler

Figure 4: The language-specific zip files contain examples working with the protoc compiler

Figure 5: protoc generates JavaScript objects from messages defined in the .proto file.

Figure 5: protoc for JavaScript will auto-generate objects that are described as messages in the relevant .proto file.

Figure 6: The results of using protoc to auto-generate C# code

Figure 6: The results of using protoc to auto-generate C# code

Get hands-on experience auto-generating the ProgrammableWeb gRPC code on Katacoda
Figure 7: The interactive lesson Katacoda that demonstrates how to use protoc to auto-generate message and service code under GoLang
Katacoda interactive lesson on using protoc to auto-generate message and service code in GoLang.

Figure 8: The Katacoda interactive lesson for auto-generating Node.js creates code for both the procedures and messages defined in the gRPC .proto file

+

Esta página está disponible en español

Ver en español