// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";
package messaging;

option go_package = "./messaging";

// Message represents a message emitted by the Magistrala adapters layer.
message Message {
  string channel = 1;
  string domain = 2;
  string subtopic = 3;
  string publisher = 4;
  string protocol = 5;
  bytes payload = 6;
  int64 created = 7; // Unix timestamp in nanoseconds
  string client_id = 8; // Transport-level client identifier
  // Internal metadata propagated between services
  map<string, string> metadata = 9;
}
