Skip to content

Instantly share code, notes, and snippets.

@tocalai
Last active July 11, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tocalai/8a4c02af4b5765a54dbb252cc9e342f5 to your computer and use it in GitHub Desktop.
Save tocalai/8a4c02af4b5765a54dbb252cc9e342f5 to your computer and use it in GitHub Desktop.
IDL for service using Protocol Buffer
syntax = "proto3"; // used version proto3
package Demo.Message; // will be placed in a namespace matching the package name if csharp_namespace is not specified
option csharp_namespace = "Demo.Message";
import "message.proto";
// define alert service
service AlertService {
// method for sending alert
rpc SendAlert(AlertRequest) returns (AlertResponse);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment