forked from eclipse-uprotocol/up-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
umessage.proto
33 lines (28 loc) · 1.01 KB
/
umessage.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
/*
* SPDX-FileCopyrightText: 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under
* the terms of the Apache License Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*/
syntax = "proto3";
package uprotocol.v1;
import "uprotocol/v1/uattributes.proto";
option java_package = "org.eclipse.uprotocol.v1";
option java_outer_classname = "UMessageProto";
option java_multiple_files = true;
// UMessage is the top-level message type for the uProtocol.
// It contains a header (UAttributes), and payload and is a way of representing a
// message that would be sent between two uEs.
message UMessage {
// uProtocol mandatory and optional attributes
UAttributes attributes = 1;
// Optional message payload
optional bytes payload = 2;
}