Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(989)

Unified Diff: blimp/common/proto/helium.proto

Issue 2400303002: Add LwwRegister CRDT (Closed)
Patch Set: Update LwwRegister to use Coded(In/Out)putStream. LwwRegisterSerializer -> SyncablePrimitiveSeriali… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/net/BUILD.gn » ('j') | blimp/net/helium/bias.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/proto/helium.proto
diff --git a/blimp/common/proto/helium.proto b/blimp/common/proto/helium.proto
index 774560ecb053abc9dbacaa7266c88bfeec1f26e4..23e77cb1eaf586c7b16d66f8f984d4a49ca29003 100644
--- a/blimp/common/proto/helium.proto
+++ b/blimp/common/proto/helium.proto
@@ -25,12 +25,20 @@ message TestChangesetMessage {
int32 value2 = 2;
}
+message LwwRegisterChangesetMessage {
+ oneof register {
+ int32 integer_value = 1;
+ string string_value = 2;
+ }
+}
+
// A union of serializable Changeset types. There will be one for each Helium
// Object that requires serialization.
message ChangesetMessage {
oneof payload {
// Sample message for the test
TestChangesetMessage test = 1;
+ LwwRegisterChangesetMessage lww_register = 2;
};
}
« no previous file with comments | « no previous file | blimp/net/BUILD.gn » ('j') | blimp/net/helium/bias.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698