Last active
July 11, 2019 07:16
-
-
Save tocalai/05bf4e71e9bee731fc5893467b8ee0ce to your computer and use it in GitHub Desktop.
IDL for message using Protocol Buffer
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"; // 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