February 2019
Intermediate to advanced
446 pages
10h 55m
English
grpc-server-service/src/main/proto/EmployeeService.proto is created for defining the service using Protobuf version proto3. We'll add the CRUD operations on Employee, which is defined using rpc method-signature. Then, we need to define the parameters and return types using the protocol buffer IDL. It is pretty simple, isn't it? You might like to compare it with Swagger YAML before answering that question. Please find the EmployeeService.proto file as follows:
syntax = "proto3";package com.packtpub.mmj.grpc;option java_package = "com.packtpub.mmj.grpc.server";option java_multiple_files = true;option java_generic_services = true;message Employee { int64 id = 1; string firstName = 2; string lastName = 3; ...Read now
Unlock full access