Skip to content

Commit

Permalink
orb-relay protos for dataxchg messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Quinn committed Aug 23, 2024
1 parent c2a397d commit 8e03afc
Showing 1 changed file with 24 additions and 31 deletions.
55 changes: 24 additions & 31 deletions proto/dataxchg/dataxchg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,43 @@ package dataxchg;
import "google/protobuf/timestamp.proto";

enum DataSource {
DATA_SOURCE_UNDEFINED = 0;
LATEST_SCAN_IMAGE = 1;
ORB_CONFIG = 2;
DATA_SOURCE_UNDEFINED = 0;
LATEST_SCAN_IMAGE = 1;
ORB_CONFIG = 2;
}

enum DataFormat {
DATA_FORMAT_UNDEFINED = 0;
JSON = 1;
CSV = 2;
PNG = 3;
JPEG = 4;
TEXT = 5;
RAW = 6;
DATA_FORMAT_UNDEFINED = 0;
JSON = 1;
CSV = 2;
PNG = 3;
JPEG = 4;
TEXT = 5;
RAW = 6;
}

message DataReference {
oneof source {
DataSource data_source = 1;
string file_path = 2;
}
oneof source {
DataSource data_source = 1;
string file_path = 2;
}
}

message DataSourceMetadata {
DataSource source = 1;
string file_path = 2;
DataFormat format = 3;
google.protobuf.Timestamp last_modified = 4;
uint32 size = 5;
DataSource source = 1;
string file_path = 2;
DataFormat format = 3;
google.protobuf.Timestamp last_modified = 4;
uint32 size = 5;
}

message OrbRelayDataMetadataPull { DataReference reference = 1; }

message OrbRelayDataMetadataPull {
DataReference reference = 1;
}

message OrbRelayDataExchangePull {
DataReference reference = 1;
}
message OrbRelayDataExchangePull { DataReference reference = 1; }

message OrbRelayDataMetadataPush {
DataSourceMetadata source_metadata = 1;
}
message OrbRelayDataMetadataPush { DataSourceMetadata source_metadata = 1; }

message OrbRelayDataExchangePush {
DataSourceMetadata metadata = 1;
bytes data = 2;
DataSourceMetadata metadata = 1;
bytes data = 2;
}

0 comments on commit 8e03afc

Please sign in to comment.