mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-24 13:48:49 +08:00

* Update copyright comment for go files Signed-off-by: nwneisen <nwneisen@gmail.com> * Update copyright in assortment of file types Signed-off-by: nwneisen <nwneisen@gmail.com> * Remove missed copyright date Signed-off-by: nwneisen <nwneisen@gmail.com>
41 lines
907 B
Protocol Buffer
41 lines
907 B
Protocol Buffer
// Copyright (c) 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;
|
|
}
|