From 9554767e88a3ffa658924694d3679b66ccd8875b Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Fri, 10 Jan 2025 16:30:52 -0500 Subject: [PATCH] union type --- proto/device_sync/device_sync.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 proto/device_sync/device_sync.proto diff --git a/proto/device_sync/device_sync.proto b/proto/device_sync/device_sync.proto new file mode 100644 index 0000000..9be6c50 --- /dev/null +++ b/proto/device_sync/device_sync.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package xmtp.device_sync; + +import "device_sync/group_backup.proto"; +import "device_sync/message_backup.proto"; +import "device_sync/consent_backup.proto"; + +message BackupElement { + oneof element { + xmtp.device_sync.group_backup.GroupSave group = 1; + xmtp.device_sync.message_backup.MessageSave message = 2; + xmtp.device_sync.consent_backup.ConsentSave consent = 3; + } +}