2015-05-17 12:28:47 +02:00
|
|
|
/**
|
2017-01-04 17:37:10 +01:00
|
|
|
* Copyright (C) 2014-2017 Lightbend Inc. <http://www.lightbend.com>
|
2015-05-17 12:28:47 +02:00
|
|
|
*/
|
|
|
|
|
package akka.cluster.ddata;
|
|
|
|
|
|
|
|
|
|
option java_package = "akka.cluster.ddata.protobuf.msg";
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
import "ReplicatorMessages.proto";
|
|
|
|
|
|
|
|
|
|
message GSet {
|
|
|
|
|
repeated string stringElements = 1;
|
|
|
|
|
repeated sint32 intElements = 2 [packed=true];
|
|
|
|
|
repeated sint64 longElements = 3 [packed=true];
|
|
|
|
|
repeated OtherMessage otherElements = 4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ORSet {
|
|
|
|
|
required VersionVector vvector = 1;
|
|
|
|
|
repeated VersionVector dots = 2;
|
|
|
|
|
repeated string stringElements = 3;
|
|
|
|
|
repeated sint32 intElements = 4 [packed=true];
|
|
|
|
|
repeated sint64 longElements = 5 [packed=true];
|
|
|
|
|
repeated OtherMessage otherElements = 6;
|
2017-02-07 11:21:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ORSetDeltaGroup {
|
|
|
|
|
message Entry {
|
|
|
|
|
required ORSetDeltaOp operation = 1;
|
|
|
|
|
required ORSet underlying = 2;
|
|
|
|
|
}
|
2015-05-17 12:28:47 +02:00
|
|
|
|
2017-02-07 11:21:56 +01:00
|
|
|
repeated Entry entries = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum ORSetDeltaOp {
|
|
|
|
|
Add = 0;
|
|
|
|
|
Remove = 1;
|
|
|
|
|
Full = 2;
|
2015-05-17 12:28:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Flag {
|
|
|
|
|
required bool enabled = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LWWRegister {
|
|
|
|
|
required sint64 timestamp = 1;
|
|
|
|
|
required UniqueAddress node = 2;
|
|
|
|
|
required OtherMessage state = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GCounter {
|
|
|
|
|
message Entry {
|
|
|
|
|
required UniqueAddress node = 1;
|
|
|
|
|
required bytes value = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repeated Entry entries = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PNCounter {
|
|
|
|
|
required GCounter increments = 1;
|
|
|
|
|
required GCounter decrements = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ORMap {
|
|
|
|
|
message Entry {
|
2016-12-22 11:47:27 +01:00
|
|
|
optional string stringKey = 1;
|
2015-05-17 12:28:47 +02:00
|
|
|
required OtherMessage value = 2;
|
2016-12-22 11:47:27 +01:00
|
|
|
optional sint32 intKey = 3;
|
|
|
|
|
optional sint64 longKey = 4;
|
|
|
|
|
optional OtherMessage otherKey = 5;
|
2015-05-17 12:28:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required ORSet keys = 1;
|
|
|
|
|
repeated Entry entries = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LWWMap {
|
|
|
|
|
message Entry {
|
2016-12-22 11:47:27 +01:00
|
|
|
optional string stringKey = 1;
|
2015-05-17 12:28:47 +02:00
|
|
|
required LWWRegister value = 2;
|
2016-12-22 11:47:27 +01:00
|
|
|
optional sint32 intKey = 3;
|
|
|
|
|
optional sint64 longKey = 4;
|
|
|
|
|
optional OtherMessage otherKey = 5;
|
2015-05-17 12:28:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required ORSet keys = 1;
|
|
|
|
|
repeated Entry entries = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PNCounterMap {
|
|
|
|
|
message Entry {
|
2016-12-22 11:47:27 +01:00
|
|
|
optional string stringKey = 1;
|
2015-05-17 12:28:47 +02:00
|
|
|
required PNCounter value = 2;
|
2016-12-22 11:47:27 +01:00
|
|
|
optional sint32 intKey = 3;
|
|
|
|
|
optional sint64 longKey = 4;
|
|
|
|
|
optional OtherMessage otherKey = 5;
|
2015-05-17 12:28:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required ORSet keys = 1;
|
|
|
|
|
repeated Entry entries = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-18 16:17:53 +02:00
|
|
|
message ORMultiMap {
|
|
|
|
|
message Entry {
|
2016-12-22 11:47:27 +01:00
|
|
|
optional string stringKey = 1;
|
2015-06-18 16:17:53 +02:00
|
|
|
required ORSet value = 2;
|
2016-12-22 11:47:27 +01:00
|
|
|
optional sint32 intKey = 3;
|
|
|
|
|
optional sint64 longKey = 4;
|
|
|
|
|
optional OtherMessage otherKey = 5;
|
2015-06-18 16:17:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required ORSet keys = 1;
|
|
|
|
|
repeated Entry entries = 2;
|
|
|
|
|
}
|
2015-05-17 12:28:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|