forked from absmach/magistrala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.proto
44 lines (40 loc) · 924 Bytes
/
message.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Copyright (c) 2018
// Mainflux
//
// SPDX-License-Identifier: Apache-2.0
//
syntax = "proto3";
package mainflux;
// RawMessage represents a message emitted by the Mainflux adapters layer.
message RawMessage {
string channel = 1;
string subtopic = 2;
string publisher = 3;
string protocol = 4;
string contentType = 5;
bytes payload = 6;
}
// Message represents a resolved (normalized) raw message.
message Message {
string channel = 1;
string subtopic = 2;
string publisher = 3;
string protocol = 4;
string name = 5;
string unit = 6;
oneof value {
double floatValue = 7;
string stringValue = 8;
bool boolValue = 9;
string dataValue = 10;
}
SumValue valueSum = 11;
double time = 12;
double updateTime = 13;
string link = 14;
}
// SumValue is a simple wrapper around the double value.
message SumValue {
double value = 1;
}