Created
October 15, 2020 02:49
-
-
Save iamsurajgharat/1d43d8181f286a58617adebce1714c6f to your computer and use it in GitHub Desktop.
gRPC basics with example - proto file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package com.surajgharat.practice.grpc.service; | |
service SumService { | |
rpc Sum(SumInput) returns (SumOutput) {} | |
} | |
message SumInput { | |
int32 n1 = 1; | |
int32 n2 = 2; | |
} | |
message SumOutput { int32 result = 1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment