...

/

Configuring Protobuf in Java

Configuring Protobuf in Java

Learn how to set up Protocol Buffers in Java.

.proto file for FTP service

It's time to get our hands dirty and write some code! As part of the course project, we will create a .proto file that defines a gRPC service called FTPService which provides operations related to file transfer.

We created the course project in Setting up the dev Environment lesson. Now it’s time to add the first module in which we will define the .proto file. If you wish to follow along on your local machine, open the grpc-ftp-project in your IDE and create a "Module" named ftp-service-proto.

  • Choose "Java" as "Language."

  • Choose "Maven" as the "Build system."

  • We have used io.datajek as the "GroupId."

  • We have used ftp-service-proto as "ArtifactId."

This module will automatically be added to the POM file of the ...