Created
November 10, 2020 22:10
-
-
Save cheoalfredo/2dad04d20228bd472246a09157c20030 to your computer and use it in GitHub Desktop.
archivo .proto para gRPC
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"; | |
option csharp_namespace = "MyServer"; | |
package greet; | |
service OperacionMatematica { | |
rpc Divide (DivisionRequest) returns (DivisionResponse); | |
} | |
message DivisionRequest { | |
int32 dividendo = 1; | |
int32 divisor = 2; | |
} | |
message DivisionResponse { | |
int32 cociente = 1; | |
int32 residuo = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment