aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/proto/messages/VehicleMessageHeader.proto
diff options
context:
space:
mode:
authorJames Simon <jamsimox@amazon.com>2023-09-22 09:45:27 -0400
committerJames Simon <jamsimox@amazon.com>2023-09-22 09:45:27 -0400
commit766283068a39df9bd7dabf10c8c36f5a75d4335a (patch)
tree2a7e07becb75e71c48774fd686c8840df031f5b6 /src/main/proto/messages/VehicleMessageHeader.proto
parent59f56720a88b9a8f638e4f0e6f1560cc575887df (diff)
added changes fixed doc gen2HEADmaster
Signed-off-by: James Simon <jamsimox@amazon.com> Change-Id: I9214b5eae0402e0de542227bda2aee2981c52eb5
Diffstat (limited to 'src/main/proto/messages/VehicleMessageHeader.proto')
-rw-r--r--src/main/proto/messages/VehicleMessageHeader.proto54
1 files changed, 32 insertions, 22 deletions
diff --git a/src/main/proto/messages/VehicleMessageHeader.proto b/src/main/proto/messages/VehicleMessageHeader.proto
index 5da44a9..2a6cda0 100644
--- a/src/main/proto/messages/VehicleMessageHeader.proto
+++ b/src/main/proto/messages/VehicleMessageHeader.proto
@@ -1,30 +1,40 @@
-syntax = "proto3";
-import "vss/vspec.proto";
-package messages;
-
+syntax = "proto3";/**
+*<h1>Vehicle Message Header</h1>
+*<p>
+* This message defines an application message header for messages past across the system. This is useful because the standard MQTT message headers are typically local to the broker of the system, so while the MQTT headers are useful for QoS assurances and message debugging they do not necessarily correlate the messages to the services deeper in the vehicle or the cloud services.
+*</p>
+*<h2>Message Orchestration</h2>
+*<p><img src="doc/images/VehicleMessageHeader.png" alt="HeaderMessage.puml"></p>
+*<h2>MQTT Topic Design</h2>
+*<table>
+* <thead>
+* <tr>
+* <th>Direction</th>
+* <th>Subscribe Topic</th>
+* <th>Publish Topic</th>
+* </tr>
+* </thead>
+* <tbody>
+* <tr>
+* <td>Vehicle to Cloud</td>
+* <td>No Topic</td>
+* <td>No Topic</td>
+* </tr>
+* <tr>
+* <td>Cloud to Vehicle</td>
+* <td>No Topic</td>
+* <td>No Topic</td>
+* </tr>
+* </tbody>
+* </table>
+*/
-// # Vehicle Message Header
-//
-// This message defines an application message header for messages past across the system. This is useful because the standard MQTT message headers are typically local to the broker of the system, so while the MQTT headers
-// are useful for QoS assurances and message debugging they do not necessarily correlate the messages to the
-// services deeper in the vehicle or the cloud services.
-//
-// ## Message Orchestration
-// ![HeaderMessage.puml](build/resources/main/V2C/images/HeaderMessage.png)
-//
-// ## MQTT Topic Design
-// | Direction | Subscribe Topic | Publish Topic |
-// | ----------- | ----- | -------- |
-// | Vehicle to Cloud | No Topic | No Topic |
-// | ----------- | ----- | -------- |
-// | Cloud to Vehicle | No Topic | No Topic |
-//
-//
+package messages;
message VehicleMessageHeading {
int32 message_id = 1; // Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
int32 correlation_id = 2; // For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
-.vss.VehicleVehicleIdentification vehicle_identity = 3; // this should be salted and hashed version of the VIN or other Vehicle Identification.
+string vehicle_identity = 3; // this should be salted and hashed version of the VIN or other Vehicle Identification.
string vehicle_device_id = 7; // this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
int64 message_timestamp = 4; // EPOCH timestamp when the message was created
double protocol_version = 5; // version of the protocol schema/data model being used.