mirror of https://github.com/qt/qtgrpc.git
28 lines
353 B
Protocol Buffer
28 lines
353 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
//! [0]
|
||
|
package qt.examples.sensors;
|
||
|
|
||
|
message Coordinates
|
||
|
{
|
||
|
double longitude = 1;
|
||
|
double latitude = 2;
|
||
|
double altitude = 3;
|
||
|
}
|
||
|
|
||
|
message Temperature
|
||
|
{
|
||
|
enum Unit {
|
||
|
Farenheit = 0;
|
||
|
Celsius = 1;
|
||
|
}
|
||
|
sint32 value = 1;
|
||
|
Unit units = 2;
|
||
|
}
|
||
|
|
||
|
message WarningNotification
|
||
|
{
|
||
|
string text = 1;
|
||
|
}
|
||
|
//! [0]
|