Skip to content

Instantly share code, notes, and snippets.

@tocalai
Last active July 11, 2019 07:16
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/05bf4e71e9bee731fc5893467b8ee0ce to your computer and use it in GitHub Desktop.
Save tocalai/05bf4e71e9bee731fc5893467b8ee0ce to your computer and use it in GitHub Desktop.
IDL for message using Protocol Buffer
syntax = "proto3"; // use 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 "google/protobuf/timestamp.proto"; // for field of timestamp
// alert reuqest
message AlertRequest {
int32 Type =1;
string Uid =2;
string MsgValue =3;
int32 Severity =4;
google.protobuf.Timestamp DateTime =5;
}
// alert response
message AlertResponse {
string Ack =1;
string ReturnCode =2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment