diff --git a/akka-docs/src/main/paradox/typed/persistence-active-active.md b/akka-docs/src/main/paradox/typed/persistence-active-active.md index 108cf7f04a..4d621b2b31 100644 --- a/akka-docs/src/main/paradox/typed/persistence-active-active.md +++ b/akka-docs/src/main/paradox/typed/persistence-active-active.md @@ -290,7 +290,9 @@ to fast forward the stream of events for the origin replica. (With additional po ## Journal Support For a journal plugin to support active active it needs to store and read metadata for each event if it is defined in the @apiref[PersistentRepr] - `metadata` field. To attach the metadata after writing it, `PersistentRepr.withMetadata` is used. + `metadata` field. To attach the metadata after writing it, `PersistentRepr.withMetadata` is used. The @apidoc[JournalSpec] in the Persistence TCK provides + a capability flag `supportsMetadata` to toggle verification that metadata is handled correctly. For a snapshot plugin to support active active it needs to store and read metadata for the snapshot if it is defined in the @apiref[akka.persistence.SnapshotMetadata] `metadata` field. -To attach the metadata when reading the snapshot the `akka.persistence.SnapshotMetadata.apply` factory overload taking a `metadata` parameter is used. \ No newline at end of file +To attach the metadata when reading the snapshot the `akka.persistence.SnapshotMetadata.apply` factory overload taking a `metadata` parameter is used. +The @apidoc[SnapshotStoreSpec] in the Persistence TCK provides a capability flag `supportsMetadata` to toggle verification that metadata is handled correctly. \ No newline at end of file diff --git a/akka-persistence-tck/src/main/scala/akka/persistence/CapabilityFlags.scala b/akka-persistence-tck/src/main/scala/akka/persistence/CapabilityFlags.scala index 7434737402..fde55aa446 100644 --- a/akka-persistence-tck/src/main/scala/akka/persistence/CapabilityFlags.scala +++ b/akka-persistence-tck/src/main/scala/akka/persistence/CapabilityFlags.scala @@ -69,5 +69,11 @@ trait SnapshotStoreCapabilityFlags extends CapabilityFlags { * deserialize snapshots. */ protected def supportsSerialization: CapabilityFlag + + /** + * When `true` enables tests which check if the snapshot store properly stores and + * loads metadata (needed for Active Active) along with the snapshots + */ + protected def supportsMetadata: CapabilityFlag } //#snapshot-store-flags diff --git a/akka-persistence-tck/src/main/scala/akka/persistence/journal/JournalSpec.scala b/akka-persistence-tck/src/main/scala/akka/persistence/journal/JournalSpec.scala index 1d6eaed53b..3380126b73 100644 --- a/akka-persistence-tck/src/main/scala/akka/persistence/journal/JournalSpec.scala +++ b/akka-persistence-tck/src/main/scala/akka/persistence/journal/JournalSpec.scala @@ -323,7 +323,7 @@ abstract class JournalSpec(config: Config) AtomicWrite( PersistentRepr( payload = event, - sequenceNr = 1L, + sequenceNr = 6L, persistenceId = pid, sender = Actor.noSender, writerUuid = writerUuid).withMetadata(meta)) @@ -335,7 +335,7 @@ abstract class JournalSpec(config: Config) val WriterUuid = writerUuid probe.expectMsgPF() { case WriteMessageSuccess( - PersistentImpl(payload, 1L, Pid, _, _, Actor.noSender, WriterUuid, _, Some(`meta`)), + PersistentImpl(payload, 6L, Pid, _, _, Actor.noSender, WriterUuid, _, Some(`meta`)), _) => payload should be(event) } diff --git a/akka-persistence-tck/src/main/scala/akka/persistence/snapshot/SnapshotStoreSpec.scala b/akka-persistence-tck/src/main/scala/akka/persistence/snapshot/SnapshotStoreSpec.scala index 702bedb37f..520c1fa6d0 100644 --- a/akka-persistence-tck/src/main/scala/akka/persistence/snapshot/SnapshotStoreSpec.scala +++ b/akka-persistence-tck/src/main/scala/akka/persistence/snapshot/SnapshotStoreSpec.scala @@ -52,6 +52,7 @@ abstract class SnapshotStoreSpec(config: Config) private var metadata: Seq[SnapshotMetadata] = Nil override protected def supportsSerialization: CapabilityFlag = true + override protected def supportsMetadata: CapabilityFlag = false override protected def beforeEach(): Unit = { super.beforeEach() @@ -199,5 +200,27 @@ abstract class SnapshotStoreSpec(config: Config) } } } + optional(flag = supportsMetadata) { + "store metadata" in { + // we do not have the actual ReplicatedSnapshot metadata on classpath, but since + // the plugin should defer to serialization defined by Akka, so in general the type + // should not really be important to the plugin + val fictionalMeta = "fictional metadata" + val metadata = SnapshotMetadata(pid, 100).withMetadata(fictionalMeta) + val snap = "snap" + snapshotStore.tell(SaveSnapshot(metadata, snap), senderProbe.ref) + senderProbe.expectMsgPF() { case SaveSnapshotSuccess(md) => md } + + val Pid = pid + snapshotStore.tell(LoadSnapshot(pid, SnapshotSelectionCriteria.Latest, Long.MaxValue), senderProbe.ref) + senderProbe.expectMsgPF() { + case LoadSnapshotResult( + Some(SelectedSnapshot(meta @ SnapshotMetadata(Pid, 100, _), payload)), + Long.MaxValue) => + payload should be(snap) + meta.metadata should ===(Some(fictionalMeta)) + } + } + } } } diff --git a/akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/Crdts.java b/akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/ActiveActive.java similarity index 55% rename from akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/Crdts.java rename to akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/ActiveActive.java index dad9330ab0..cd0ca60693 100644 --- a/akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/Crdts.java +++ b/akka-persistence-typed/src/main/java/akka/persistence/typed/serialization/ActiveActive.java @@ -3,12 +3,12 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Crdts.proto +// source: ActiveActive.proto package akka.persistence.typed.serialization; -public final class Crdts { - private Crdts() {} +public final class ActiveActive { + private ActiveActive() {} public static void registerAllExtensions( akka.protobufv3.internal.ExtensionRegistryLite registry) {} @@ -86,7 +86,9 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.EnumDescriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.getDescriptor().getEnumTypes().get(0); + return akka.persistence.typed.serialization.ActiveActive.getDescriptor() + .getEnumTypes() + .get(0); } private static final ORSetDeltaOp[] VALUES = values(); @@ -199,16 +201,17 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_Counter_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_Counter_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts.internal_static_Counter_fieldAccessorTable + return akka.persistence.typed.serialization.ActiveActive + .internal_static_Counter_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.Counter.class, - akka.persistence.typed.serialization.Crdts.Counter.Builder.class); + akka.persistence.typed.serialization.ActiveActive.Counter.class, + akka.persistence.typed.serialization.ActiveActive.Counter.Builder.class); } private int bitField0_; @@ -275,11 +278,11 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.Counter)) { + if (!(obj instanceof akka.persistence.typed.serialization.ActiveActive.Counter)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.Counter other = - (akka.persistence.typed.serialization.Crdts.Counter) obj; + akka.persistence.typed.serialization.ActiveActive.Counter other = + (akka.persistence.typed.serialization.ActiveActive.Counter) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { @@ -305,72 +308,72 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom(byte[] data) + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.Counter parseDelimitedFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.Counter parseDelimitedFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseDelimitedFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.Counter parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.Counter parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -387,7 +390,8 @@ public final class Crdts { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(akka.persistence.typed.serialization.Crdts.Counter prototype) { + public static Builder newBuilder( + akka.persistence.typed.serialization.ActiveActive.Counter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -407,21 +411,22 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Counter) - akka.persistence.typed.serialization.Crdts.CounterOrBuilder { + akka.persistence.typed.serialization.ActiveActive.CounterOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_Counter_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_Counter_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts.internal_static_Counter_fieldAccessorTable + return akka.persistence.typed.serialization.ActiveActive + .internal_static_Counter_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.Counter.class, - akka.persistence.typed.serialization.Crdts.Counter.Builder.class); + akka.persistence.typed.serialization.ActiveActive.Counter.class, + akka.persistence.typed.serialization.ActiveActive.Counter.Builder.class); } - // Construct using akka.persistence.typed.serialization.Crdts.Counter.newBuilder() + // Construct using akka.persistence.typed.serialization.ActiveActive.Counter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -445,17 +450,17 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts.internal_static_Counter_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_Counter_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.Counter getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.Counter.getDefaultInstance(); + public akka.persistence.typed.serialization.ActiveActive.Counter getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.Counter.getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.Counter build() { - akka.persistence.typed.serialization.Crdts.Counter result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.Counter build() { + akka.persistence.typed.serialization.ActiveActive.Counter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -463,9 +468,9 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.Counter buildPartial() { - akka.persistence.typed.serialization.Crdts.Counter result = - new akka.persistence.typed.serialization.Crdts.Counter(this); + public akka.persistence.typed.serialization.ActiveActive.Counter buildPartial() { + akka.persistence.typed.serialization.ActiveActive.Counter result = + new akka.persistence.typed.serialization.ActiveActive.Counter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -514,16 +519,16 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.Counter) { - return mergeFrom((akka.persistence.typed.serialization.Crdts.Counter) other); + if (other instanceof akka.persistence.typed.serialization.ActiveActive.Counter) { + return mergeFrom((akka.persistence.typed.serialization.ActiveActive.Counter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(akka.persistence.typed.serialization.Crdts.Counter other) { - if (other == akka.persistence.typed.serialization.Crdts.Counter.getDefaultInstance()) + public Builder mergeFrom(akka.persistence.typed.serialization.ActiveActive.Counter other) { + if (other == akka.persistence.typed.serialization.ActiveActive.Counter.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); @@ -546,12 +551,12 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.Counter parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.Counter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.Counter) e.getUnfinishedMessage(); + (akka.persistence.typed.serialization.ActiveActive.Counter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,13 +629,13 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:Counter) - private static final akka.persistence.typed.serialization.Crdts.Counter DEFAULT_INSTANCE; + private static final akka.persistence.typed.serialization.ActiveActive.Counter DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.Counter(); + DEFAULT_INSTANCE = new akka.persistence.typed.serialization.ActiveActive.Counter(); } - public static akka.persistence.typed.serialization.Crdts.Counter getDefaultInstance() { + public static akka.persistence.typed.serialization.ActiveActive.Counter getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -656,7 +661,7 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.Counter getDefaultInstanceForType() { + public akka.persistence.typed.serialization.ActiveActive.Counter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -752,17 +757,18 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_CounterUpdate_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_CounterUpdate_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_CounterUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.CounterUpdate.class, - akka.persistence.typed.serialization.Crdts.CounterUpdate.Builder.class); + akka.persistence.typed.serialization.ActiveActive.CounterUpdate.class, + akka.persistence.typed.serialization.ActiveActive.CounterUpdate.Builder.class); } private int bitField0_; @@ -829,11 +835,11 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.CounterUpdate)) { + if (!(obj instanceof akka.persistence.typed.serialization.ActiveActive.CounterUpdate)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.CounterUpdate other = - (akka.persistence.typed.serialization.Crdts.CounterUpdate) obj; + akka.persistence.typed.serialization.ActiveActive.CounterUpdate other = + (akka.persistence.typed.serialization.ActiveActive.CounterUpdate) obj; if (hasDelta() != other.hasDelta()) return false; if (hasDelta()) { @@ -859,72 +865,74 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom(byte[] data) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( + byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseDelimitedFrom( - java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -942,7 +950,7 @@ public final class Crdts { } public static Builder newBuilder( - akka.persistence.typed.serialization.Crdts.CounterUpdate prototype) { + akka.persistence.typed.serialization.ActiveActive.CounterUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -962,22 +970,24 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:CounterUpdate) - akka.persistence.typed.serialization.Crdts.CounterUpdateOrBuilder { + akka.persistence.typed.serialization.ActiveActive.CounterUpdateOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_CounterUpdate_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_CounterUpdate_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_CounterUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.CounterUpdate.class, - akka.persistence.typed.serialization.Crdts.CounterUpdate.Builder.class); + akka.persistence.typed.serialization.ActiveActive.CounterUpdate.class, + akka.persistence.typed.serialization.ActiveActive.CounterUpdate.Builder.class); } - // Construct using akka.persistence.typed.serialization.Crdts.CounterUpdate.newBuilder() + // Construct using + // akka.persistence.typed.serialization.ActiveActive.CounterUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1001,17 +1011,19 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts.internal_static_CounterUpdate_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_CounterUpdate_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.CounterUpdate getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.CounterUpdate.getDefaultInstance(); + public akka.persistence.typed.serialization.ActiveActive.CounterUpdate + getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.CounterUpdate.getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.CounterUpdate build() { - akka.persistence.typed.serialization.Crdts.CounterUpdate result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.CounterUpdate build() { + akka.persistence.typed.serialization.ActiveActive.CounterUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1019,9 +1031,9 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.CounterUpdate buildPartial() { - akka.persistence.typed.serialization.Crdts.CounterUpdate result = - new akka.persistence.typed.serialization.Crdts.CounterUpdate(this); + public akka.persistence.typed.serialization.ActiveActive.CounterUpdate buildPartial() { + akka.persistence.typed.serialization.ActiveActive.CounterUpdate result = + new akka.persistence.typed.serialization.ActiveActive.CounterUpdate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1070,16 +1082,18 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.CounterUpdate) { - return mergeFrom((akka.persistence.typed.serialization.Crdts.CounterUpdate) other); + if (other instanceof akka.persistence.typed.serialization.ActiveActive.CounterUpdate) { + return mergeFrom((akka.persistence.typed.serialization.ActiveActive.CounterUpdate) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(akka.persistence.typed.serialization.Crdts.CounterUpdate other) { - if (other == akka.persistence.typed.serialization.Crdts.CounterUpdate.getDefaultInstance()) + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.CounterUpdate other) { + if (other + == akka.persistence.typed.serialization.ActiveActive.CounterUpdate.getDefaultInstance()) return this; if (other.hasDelta()) { setDelta(other.getDelta()); @@ -1102,12 +1116,13 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.CounterUpdate parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.CounterUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.CounterUpdate) e.getUnfinishedMessage(); + (akka.persistence.typed.serialization.ActiveActive.CounterUpdate) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1180,13 +1195,15 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:CounterUpdate) - private static final akka.persistence.typed.serialization.Crdts.CounterUpdate DEFAULT_INSTANCE; + private static final akka.persistence.typed.serialization.ActiveActive.CounterUpdate + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.CounterUpdate(); + DEFAULT_INSTANCE = new akka.persistence.typed.serialization.ActiveActive.CounterUpdate(); } - public static akka.persistence.typed.serialization.Crdts.CounterUpdate getDefaultInstance() { + public static akka.persistence.typed.serialization.ActiveActive.CounterUpdate + getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1212,7 +1229,8 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.CounterUpdate getDefaultInstanceForType() { + public akka.persistence.typed.serialization.ActiveActive.CounterUpdate + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -1252,21 +1270,23 @@ public final class Crdts { * * @return The vvector. */ - akka.persistence.typed.serialization.Crdts.VersionVector getVvector(); + akka.persistence.typed.serialization.ActiveActive.VersionVector getVvector(); /** required .VersionVector vvector = 2; */ - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder getVvectorOrBuilder(); + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder getVvectorOrBuilder(); /** repeated .VersionVector dots = 3; */ - java.util.List getDotsList(); + java.util.List getDotsList(); /** repeated .VersionVector dots = 3; */ - akka.persistence.typed.serialization.Crdts.VersionVector getDots(int index); + akka.persistence.typed.serialization.ActiveActive.VersionVector getDots(int index); /** repeated .VersionVector dots = 3; */ int getDotsCount(); /** repeated .VersionVector dots = 3; */ - java.util.List + java.util.List< + ? extends akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> getDotsOrBuilderList(); /** repeated .VersionVector dots = 3; */ - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder getDotsOrBuilder(int index); + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder getDotsOrBuilder( + int index); /** * repeated string stringElements = 4; @@ -1407,13 +1427,14 @@ public final class Crdts { } case 18: { - akka.persistence.typed.serialization.Crdts.VersionVector.Builder subBuilder = null; + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder subBuilder = + null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = vvector_.toBuilder(); } vvector_ = input.readMessage( - akka.persistence.typed.serialization.Crdts.VersionVector.PARSER, + akka.persistence.typed.serialization.ActiveActive.VersionVector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vvector_); @@ -1427,12 +1448,12 @@ public final class Crdts { if (!((mutable_bitField0_ & 0x00000004) != 0)) { dots_ = new java.util.ArrayList< - akka.persistence.typed.serialization.Crdts.VersionVector>(); + akka.persistence.typed.serialization.ActiveActive.VersionVector>(); mutable_bitField0_ |= 0x00000004; } dots_.add( input.readMessage( - akka.persistence.typed.serialization.Crdts.VersionVector.PARSER, + akka.persistence.typed.serialization.ActiveActive.VersionVector.PARSER, extensionRegistry)); break; } @@ -1539,16 +1560,17 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSet_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_ORSet_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSet_fieldAccessorTable + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ORSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSet.class, - akka.persistence.typed.serialization.Crdts.ORSet.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSet.class, + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder.class); } private int bitField0_; @@ -1598,7 +1620,7 @@ public final class Crdts { } public static final int VVECTOR_FIELD_NUMBER = 2; - private akka.persistence.typed.serialization.Crdts.VersionVector vvector_; + private akka.persistence.typed.serialization.ActiveActive.VersionVector vvector_; /** * required .VersionVector vvector = 2; * @@ -1612,27 +1634,29 @@ public final class Crdts { * * @return The vvector. */ - public akka.persistence.typed.serialization.Crdts.VersionVector getVvector() { + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVvector() { return vvector_ == null - ? akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() : vvector_; } /** required .VersionVector vvector = 2; */ - public akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder getVvectorOrBuilder() { + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVvectorOrBuilder() { return vvector_ == null - ? akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() : vvector_; } public static final int DOTS_FIELD_NUMBER = 3; - private java.util.List dots_; + private java.util.List dots_; /** repeated .VersionVector dots = 3; */ - public java.util.List getDotsList() { + public java.util.List + getDotsList() { return dots_; } /** repeated .VersionVector dots = 3; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + ? extends akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> getDotsOrBuilderList() { return dots_; } @@ -1641,12 +1665,12 @@ public final class Crdts { return dots_.size(); } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVector getDots(int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVector getDots(int index) { return dots_.get(index); } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder getDotsOrBuilder( - int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getDotsOrBuilder(int index) { return dots_.get(index); } @@ -1909,11 +1933,11 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.ORSet)) { + if (!(obj instanceof akka.persistence.typed.serialization.ActiveActive.ORSet)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.ORSet other = - (akka.persistence.typed.serialization.Crdts.ORSet) obj; + akka.persistence.typed.serialization.ActiveActive.ORSet other = + (akka.persistence.typed.serialization.ActiveActive.ORSet) obj; if (hasOriginDc() != other.hasOriginDc()) return false; if (hasOriginDc()) { @@ -1972,72 +1996,72 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom(byte[] data) + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseDelimitedFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseDelimitedFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseDelimitedFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSet parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSet parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2054,7 +2078,8 @@ public final class Crdts { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(akka.persistence.typed.serialization.Crdts.ORSet prototype) { + public static Builder newBuilder( + akka.persistence.typed.serialization.ActiveActive.ORSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2074,21 +2099,22 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ORSet) - akka.persistence.typed.serialization.Crdts.ORSetOrBuilder { + akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSet_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_ORSet_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSet_fieldAccessorTable + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ORSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSet.class, - akka.persistence.typed.serialization.Crdts.ORSet.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSet.class, + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder.class); } - // Construct using akka.persistence.typed.serialization.Crdts.ORSet.newBuilder() + // Construct using akka.persistence.typed.serialization.ActiveActive.ORSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2140,17 +2166,17 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSet_descriptor; + return akka.persistence.typed.serialization.ActiveActive.internal_static_ORSet_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSet getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance(); + public akka.persistence.typed.serialization.ActiveActive.ORSet getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSet build() { - akka.persistence.typed.serialization.Crdts.ORSet result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.ORSet build() { + akka.persistence.typed.serialization.ActiveActive.ORSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2158,9 +2184,9 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSet buildPartial() { - akka.persistence.typed.serialization.Crdts.ORSet result = - new akka.persistence.typed.serialization.Crdts.ORSet(this); + public akka.persistence.typed.serialization.ActiveActive.ORSet buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ORSet result = + new akka.persistence.typed.serialization.ActiveActive.ORSet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -2250,16 +2276,16 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.ORSet) { - return mergeFrom((akka.persistence.typed.serialization.Crdts.ORSet) other); + if (other instanceof akka.persistence.typed.serialization.ActiveActive.ORSet) { + return mergeFrom((akka.persistence.typed.serialization.ActiveActive.ORSet) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(akka.persistence.typed.serialization.Crdts.ORSet other) { - if (other == akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance()) + public Builder mergeFrom(akka.persistence.typed.serialization.ActiveActive.ORSet other) { + if (other == akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance()) return this; if (other.hasOriginDc()) { bitField0_ |= 0x00000001; @@ -2387,12 +2413,12 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.ORSet parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.ORSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.ORSet) e.getUnfinishedMessage(); + (akka.persistence.typed.serialization.ActiveActive.ORSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2489,11 +2515,11 @@ public final class Crdts { return this; } - private akka.persistence.typed.serialization.Crdts.VersionVector vvector_; + private akka.persistence.typed.serialization.ActiveActive.VersionVector vvector_; private akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> vvectorBuilder_; /** * required .VersionVector vvector = 2; @@ -2508,17 +2534,18 @@ public final class Crdts { * * @return The vvector. */ - public akka.persistence.typed.serialization.Crdts.VersionVector getVvector() { + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVvector() { if (vvectorBuilder_ == null) { return vvector_ == null - ? akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() : vvector_; } else { return vvectorBuilder_.getMessage(); } } /** required .VersionVector vvector = 2; */ - public Builder setVvector(akka.persistence.typed.serialization.Crdts.VersionVector value) { + public Builder setVvector( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { if (vvectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2533,7 +2560,7 @@ public final class Crdts { } /** required .VersionVector vvector = 2; */ public Builder setVvector( - akka.persistence.typed.serialization.Crdts.VersionVector.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { if (vvectorBuilder_ == null) { vvector_ = builderForValue.build(); onChanged(); @@ -2544,15 +2571,16 @@ public final class Crdts { return this; } /** required .VersionVector vvector = 2; */ - public Builder mergeVvector(akka.persistence.typed.serialization.Crdts.VersionVector value) { + public Builder mergeVvector( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { if (vvectorBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && vvector_ != null && vvector_ - != akka.persistence.typed.serialization.Crdts.VersionVector + != akka.persistence.typed.serialization.ActiveActive.VersionVector .getDefaultInstance()) { vvector_ = - akka.persistence.typed.serialization.Crdts.VersionVector.newBuilder(vvector_) + akka.persistence.typed.serialization.ActiveActive.VersionVector.newBuilder(vvector_) .mergeFrom(value) .buildPartial(); } else { @@ -2577,60 +2605,61 @@ public final class Crdts { return this; } /** required .VersionVector vvector = 2; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Builder getVvectorBuilder() { + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder + getVvectorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getVvectorFieldBuilder().getBuilder(); } /** required .VersionVector vvector = 2; */ - public akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder getVvectorOrBuilder() { if (vvectorBuilder_ != null) { return vvectorBuilder_.getMessageOrBuilder(); } else { return vvector_ == null - ? akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() : vvector_; } } /** required .VersionVector vvector = 2; */ private akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> getVvectorFieldBuilder() { if (vvectorBuilder_ == null) { vvectorBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder>( + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder>( getVvector(), getParentForChildren(), isClean()); vvector_ = null; } return vvectorBuilder_; } - private java.util.List dots_ = - java.util.Collections.emptyList(); + private java.util.List + dots_ = java.util.Collections.emptyList(); private void ensureDotsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { dots_ = - new java.util.ArrayList( - dots_); + new java.util.ArrayList< + akka.persistence.typed.serialization.ActiveActive.VersionVector>(dots_); bitField0_ |= 0x00000004; } } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> dotsBuilder_; /** repeated .VersionVector dots = 3; */ - public java.util.List + public java.util.List getDotsList() { if (dotsBuilder_ == null) { return java.util.Collections.unmodifiableList(dots_); @@ -2647,7 +2676,7 @@ public final class Crdts { } } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVector getDots(int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVector getDots(int index) { if (dotsBuilder_ == null) { return dots_.get(index); } else { @@ -2656,7 +2685,7 @@ public final class Crdts { } /** repeated .VersionVector dots = 3; */ public Builder setDots( - int index, akka.persistence.typed.serialization.Crdts.VersionVector value) { + int index, akka.persistence.typed.serialization.ActiveActive.VersionVector value) { if (dotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2672,7 +2701,7 @@ public final class Crdts { /** repeated .VersionVector dots = 3; */ public Builder setDots( int index, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { if (dotsBuilder_ == null) { ensureDotsIsMutable(); dots_.set(index, builderForValue.build()); @@ -2683,7 +2712,8 @@ public final class Crdts { return this; } /** repeated .VersionVector dots = 3; */ - public Builder addDots(akka.persistence.typed.serialization.Crdts.VersionVector value) { + public Builder addDots( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { if (dotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2698,7 +2728,7 @@ public final class Crdts { } /** repeated .VersionVector dots = 3; */ public Builder addDots( - int index, akka.persistence.typed.serialization.Crdts.VersionVector value) { + int index, akka.persistence.typed.serialization.ActiveActive.VersionVector value) { if (dotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2713,7 +2743,7 @@ public final class Crdts { } /** repeated .VersionVector dots = 3; */ public Builder addDots( - akka.persistence.typed.serialization.Crdts.VersionVector.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { if (dotsBuilder_ == null) { ensureDotsIsMutable(); dots_.add(builderForValue.build()); @@ -2726,7 +2756,7 @@ public final class Crdts { /** repeated .VersionVector dots = 3; */ public Builder addDots( int index, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { if (dotsBuilder_ == null) { ensureDotsIsMutable(); dots_.add(index, builderForValue.build()); @@ -2738,7 +2768,8 @@ public final class Crdts { } /** repeated .VersionVector dots = 3; */ public Builder addAllDots( - java.lang.Iterable + java.lang.Iterable< + ? extends akka.persistence.typed.serialization.ActiveActive.VersionVector> values) { if (dotsBuilder_ == null) { ensureDotsIsMutable(); @@ -2772,13 +2803,13 @@ public final class Crdts { return this; } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Builder getDotsBuilder( + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder getDotsBuilder( int index) { return getDotsFieldBuilder().getBuilder(index); } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder getDotsOrBuilder( - int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getDotsOrBuilder(int index) { if (dotsBuilder_ == null) { return dots_.get(index); } else { @@ -2787,7 +2818,7 @@ public final class Crdts { } /** repeated .VersionVector dots = 3; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + ? extends akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> getDotsOrBuilderList() { if (dotsBuilder_ != null) { return dotsBuilder_.getMessageOrBuilderList(); @@ -2796,36 +2827,39 @@ public final class Crdts { } } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Builder addDotsBuilder() { + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder + addDotsBuilder() { return getDotsFieldBuilder() .addBuilder( - akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance()); + akka.persistence.typed.serialization.ActiveActive.VersionVector + .getDefaultInstance()); } /** repeated .VersionVector dots = 3; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Builder addDotsBuilder( + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder addDotsBuilder( int index) { return getDotsFieldBuilder() .addBuilder( index, - akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance()); + akka.persistence.typed.serialization.ActiveActive.VersionVector + .getDefaultInstance()); } /** repeated .VersionVector dots = 3; */ - public java.util.List + public java.util.List getDotsBuilderList() { return getDotsFieldBuilder().getBuilderList(); } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> getDotsFieldBuilder() { if (dotsBuilder_ == null) { dotsBuilder_ = new akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder, - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder>( + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder>( dots_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dots_ = null; } @@ -3339,13 +3373,13 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:ORSet) - private static final akka.persistence.typed.serialization.Crdts.ORSet DEFAULT_INSTANCE; + private static final akka.persistence.typed.serialization.ActiveActive.ORSet DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.ORSet(); + DEFAULT_INSTANCE = new akka.persistence.typed.serialization.ActiveActive.ORSet(); } - public static akka.persistence.typed.serialization.Crdts.ORSet getDefaultInstance() { + public static akka.persistence.typed.serialization.ActiveActive.ORSet getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3371,7 +3405,7 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSet getDefaultInstanceForType() { + public akka.persistence.typed.serialization.ActiveActive.ORSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -3382,19 +3416,20 @@ public final class Crdts { akka.protobufv3.internal.MessageOrBuilder { /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - java.util.List + java.util.List getEntriesList(); /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry getEntries(int index); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getEntries(int index); /** repeated .ORSetDeltaGroup.Entry entries = 1; */ int getEntriesCount(); /** repeated .ORSetDeltaGroup.Entry entries = 1; */ java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder> getEntriesOrBuilderList(); /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder getEntriesOrBuilder( - int index); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder + getEntriesOrBuilder(int index); } /** Protobuf type {@code ORSetDeltaGroup} */ public static final class ORSetDeltaGroup extends akka.protobufv3.internal.GeneratedMessageV3 @@ -3447,12 +3482,14 @@ public final class Crdts { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry>(); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + .Entry>(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.PARSER, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + .PARSER, extensionRegistry)); break; } @@ -3480,17 +3517,18 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_ORSetDeltaGroup_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ORSetDeltaGroup_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.class, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.class, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Builder.class); } public interface EntryOrBuilder @@ -3509,7 +3547,7 @@ public final class Crdts { * * @return The operation. */ - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp getOperation(); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp getOperation(); /** * required .ORSet underlying = 2; @@ -3522,9 +3560,9 @@ public final class Crdts { * * @return The underlying. */ - akka.persistence.typed.serialization.Crdts.ORSet getUnderlying(); + akka.persistence.typed.serialization.ActiveActive.ORSet getUnderlying(); /** required .ORSet underlying = 2; */ - akka.persistence.typed.serialization.Crdts.ORSetOrBuilder getUnderlyingOrBuilder(); + akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder getUnderlyingOrBuilder(); } /** Protobuf type {@code ORSetDeltaGroup.Entry} */ public static final class Entry extends akka.protobufv3.internal.GeneratedMessageV3 @@ -3576,8 +3614,9 @@ public final class Crdts { { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp value = - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp.valueOf(rawValue); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp value = + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp.valueOf( + rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { @@ -3588,13 +3627,13 @@ public final class Crdts { } case 18: { - akka.persistence.typed.serialization.Crdts.ORSet.Builder subBuilder = null; + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = underlying_.toBuilder(); } underlying_ = input.readMessage( - akka.persistence.typed.serialization.Crdts.ORSet.PARSER, + akka.persistence.typed.serialization.ActiveActive.ORSet.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(underlying_); @@ -3624,18 +3663,19 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_Entry_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.class, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.class, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder + .class); } private int bitField0_; @@ -3654,17 +3694,17 @@ public final class Crdts { * * @return The operation. */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaOp getOperation() { + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp getOperation() { @SuppressWarnings("deprecation") - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp result = - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp.valueOf(operation_); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp result = + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp.valueOf(operation_); return result == null - ? akka.persistence.typed.serialization.Crdts.ORSetDeltaOp.Add + ? akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp.Add : result; } public static final int UNDERLYING_FIELD_NUMBER = 2; - private akka.persistence.typed.serialization.Crdts.ORSet underlying_; + private akka.persistence.typed.serialization.ActiveActive.ORSet underlying_; /** * required .ORSet underlying = 2; * @@ -3678,15 +3718,16 @@ public final class Crdts { * * @return The underlying. */ - public akka.persistence.typed.serialization.Crdts.ORSet getUnderlying() { + public akka.persistence.typed.serialization.ActiveActive.ORSet getUnderlying() { return underlying_ == null - ? akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance() : underlying_; } /** required .ORSet underlying = 2; */ - public akka.persistence.typed.serialization.Crdts.ORSetOrBuilder getUnderlyingOrBuilder() { + public akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder + getUnderlyingOrBuilder() { return underlying_ == null - ? akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance() : underlying_; } @@ -3748,11 +3789,12 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry)) { + if (!(obj + instanceof akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry other = - (akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry) obj; + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry other = + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { @@ -3786,62 +3828,66 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(java.nio.ByteBuffer data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - java.nio.ByteBuffer data, - akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom( + java.nio.ByteBuffer data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - akka.protobufv3.internal.ByteString data) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(akka.protobufv3.internal.ByteString data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - akka.protobufv3.internal.ByteString data, - akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom( + akka.protobufv3.internal.ByteString data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - java.io.InputStream input, - akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry parseDelimitedFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) @@ -3850,15 +3896,16 @@ public final class Crdts { PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom(akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parseFrom( - akka.protobufv3.internal.CodedInputStream input, - akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + parseFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @@ -3873,7 +3920,7 @@ public final class Crdts { } public static Builder newBuilder( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry prototype) { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3893,24 +3940,25 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ORSetDeltaGroup.Entry) - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_Entry_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.class, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.class, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder + .class); } // Construct using - // akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.newBuilder() + // akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3942,20 +3990,21 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_Entry_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + return akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry .getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry build() { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry build() { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3963,9 +4012,10 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry buildPartial() { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry result = - new akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry(this); + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry + buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry result = + new akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -4022,9 +4072,10 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry) { + if (other + instanceof akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry) { return mergeFrom( - (akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry) other); + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry) other); } else { super.mergeFrom(other); return this; @@ -4032,9 +4083,9 @@ public final class Crdts { } public Builder mergeFrom( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry other) { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry other) { if (other - == akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + == akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry .getDefaultInstance()) return this; if (other.hasOperation()) { setOperation(other.getOperation()); @@ -4066,12 +4117,13 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry) + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -4098,12 +4150,12 @@ public final class Crdts { * * @return The operation. */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaOp getOperation() { + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp getOperation() { @SuppressWarnings("deprecation") - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp result = - akka.persistence.typed.serialization.Crdts.ORSetDeltaOp.valueOf(operation_); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp result = + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp.valueOf(operation_); return result == null - ? akka.persistence.typed.serialization.Crdts.ORSetDeltaOp.Add + ? akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp.Add : result; } /** @@ -4112,7 +4164,8 @@ public final class Crdts { * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(akka.persistence.typed.serialization.Crdts.ORSetDeltaOp value) { + public Builder setOperation( + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaOp value) { if (value == null) { throw new NullPointerException(); } @@ -4133,11 +4186,11 @@ public final class Crdts { return this; } - private akka.persistence.typed.serialization.Crdts.ORSet underlying_; + private akka.persistence.typed.serialization.ActiveActive.ORSet underlying_; private akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSet, - akka.persistence.typed.serialization.Crdts.ORSet.Builder, - akka.persistence.typed.serialization.Crdts.ORSetOrBuilder> + akka.persistence.typed.serialization.ActiveActive.ORSet, + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder> underlyingBuilder_; /** * required .ORSet underlying = 2; @@ -4152,17 +4205,18 @@ public final class Crdts { * * @return The underlying. */ - public akka.persistence.typed.serialization.Crdts.ORSet getUnderlying() { + public akka.persistence.typed.serialization.ActiveActive.ORSet getUnderlying() { if (underlyingBuilder_ == null) { return underlying_ == null - ? akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance() : underlying_; } else { return underlyingBuilder_.getMessage(); } } /** required .ORSet underlying = 2; */ - public Builder setUnderlying(akka.persistence.typed.serialization.Crdts.ORSet value) { + public Builder setUnderlying( + akka.persistence.typed.serialization.ActiveActive.ORSet value) { if (underlyingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4177,7 +4231,7 @@ public final class Crdts { } /** required .ORSet underlying = 2; */ public Builder setUnderlying( - akka.persistence.typed.serialization.Crdts.ORSet.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder builderForValue) { if (underlyingBuilder_ == null) { underlying_ = builderForValue.build(); onChanged(); @@ -4188,14 +4242,16 @@ public final class Crdts { return this; } /** required .ORSet underlying = 2; */ - public Builder mergeUnderlying(akka.persistence.typed.serialization.Crdts.ORSet value) { + public Builder mergeUnderlying( + akka.persistence.typed.serialization.ActiveActive.ORSet value) { if (underlyingBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && underlying_ != null && underlying_ - != akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance()) { + != akka.persistence.typed.serialization.ActiveActive.ORSet + .getDefaultInstance()) { underlying_ = - akka.persistence.typed.serialization.Crdts.ORSet.newBuilder(underlying_) + akka.persistence.typed.serialization.ActiveActive.ORSet.newBuilder(underlying_) .mergeFrom(value) .buildPartial(); } else { @@ -4220,33 +4276,35 @@ public final class Crdts { return this; } /** required .ORSet underlying = 2; */ - public akka.persistence.typed.serialization.Crdts.ORSet.Builder getUnderlyingBuilder() { + public akka.persistence.typed.serialization.ActiveActive.ORSet.Builder + getUnderlyingBuilder() { bitField0_ |= 0x00000002; onChanged(); return getUnderlyingFieldBuilder().getBuilder(); } /** required .ORSet underlying = 2; */ - public akka.persistence.typed.serialization.Crdts.ORSetOrBuilder getUnderlyingOrBuilder() { + public akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder + getUnderlyingOrBuilder() { if (underlyingBuilder_ != null) { return underlyingBuilder_.getMessageOrBuilder(); } else { return underlying_ == null - ? akka.persistence.typed.serialization.Crdts.ORSet.getDefaultInstance() + ? akka.persistence.typed.serialization.ActiveActive.ORSet.getDefaultInstance() : underlying_; } } /** required .ORSet underlying = 2; */ private akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSet, - akka.persistence.typed.serialization.Crdts.ORSet.Builder, - akka.persistence.typed.serialization.Crdts.ORSetOrBuilder> + akka.persistence.typed.serialization.ActiveActive.ORSet, + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder> getUnderlyingFieldBuilder() { if (underlyingBuilder_ == null) { underlyingBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSet, - akka.persistence.typed.serialization.Crdts.ORSet.Builder, - akka.persistence.typed.serialization.Crdts.ORSetOrBuilder>( + akka.persistence.typed.serialization.ActiveActive.ORSet, + akka.persistence.typed.serialization.ActiveActive.ORSet.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetOrBuilder>( getUnderlying(), getParentForChildren(), isClean()); underlying_ = null; } @@ -4269,14 +4327,15 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:ORSetDeltaGroup.Entry) - private static final akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + private static final akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry(); + DEFAULT_INSTANCE = + new akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry(); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4303,23 +4362,24 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; - private java.util.List + private java.util.List entries_; /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public java.util.List + public java.util.List getEntriesList() { return entries_; } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder> getEntriesOrBuilderList() { return entries_; } @@ -4328,11 +4388,12 @@ public final class Crdts { return entries_.size(); } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry getEntries(int index) { + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getEntries( + int index) { return entries_.get(index); } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder getEntriesOrBuilder(int index) { return entries_.get(index); } @@ -4383,11 +4444,11 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup)) { + if (!(obj instanceof akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup other = - (akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup) obj; + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup other = + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup) obj; if (!getEntriesList().equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -4410,72 +4471,74 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom(byte[] data) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( + byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseDelimitedFrom( - java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4493,7 +4556,7 @@ public final class Crdts { } public static Builder newBuilder( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup prototype) { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -4513,23 +4576,24 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ORSetDeltaGroup) - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroupOrBuilder { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroupOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.class, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Builder.class); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.class, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Builder.class); } - // Construct using akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.newBuilder() + // Construct using + // akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4559,19 +4623,20 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_ORSetDeltaGroup_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.getDefaultInstance(); + return akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + .getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup build() { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup build() { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4579,9 +4644,9 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup buildPartial() { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup result = - new akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup(this); + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup result = + new akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -4633,18 +4698,20 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup) { - return mergeFrom((akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup) other); + if (other instanceof akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup) { + return mergeFrom( + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup other) { + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup other) { if (other - == akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.getDefaultInstance()) - return this; + == akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + .getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { @@ -4692,12 +4759,13 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup) e.getUnfinishedMessage(); + (akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4709,26 +4777,28 @@ public final class Crdts { private int bitField0_; - private java.util.List + private java.util.List< + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry> entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry>(entries_); + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry>( + entries_); bitField0_ |= 0x00000001; } } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder> + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder> entriesBuilder_; /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public java.util.List + public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); @@ -4745,7 +4815,7 @@ public final class Crdts { } } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry getEntries( + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry getEntries( int index) { if (entriesBuilder_ == null) { return entries_.get(index); @@ -4755,7 +4825,8 @@ public final class Crdts { } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder setEntries( - int index, akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry value) { + int index, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4771,7 +4842,7 @@ public final class Crdts { /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder setEntries( int index, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); @@ -4784,7 +4855,7 @@ public final class Crdts { } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder addEntries( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry value) { + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4799,7 +4870,8 @@ public final class Crdts { } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder addEntries( - int index, akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry value) { + int index, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4814,7 +4886,7 @@ public final class Crdts { } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder addEntries( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); @@ -4828,7 +4900,7 @@ public final class Crdts { /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder addEntries( int index, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); @@ -4842,7 +4914,7 @@ public final class Crdts { /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public Builder addAllEntries( java.lang.Iterable< - ? extends akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry> + ? extends akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry> values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); @@ -4876,12 +4948,12 @@ public final class Crdts { return this; } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { return entries_.get(index); @@ -4891,7 +4963,8 @@ public final class Crdts { } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder> getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); @@ -4900,40 +4973,40 @@ public final class Crdts { } } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder() .addBuilder( - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry .getDefaultInstance()); } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder addEntriesBuilder(int index) { return getEntriesFieldBuilder() .addBuilder( index, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry .getDefaultInstance()); } /** repeated .ORSetDeltaGroup.Entry entries = 1; */ public java.util.List< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder> + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder> getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder> + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.Entry.Builder, - akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup.EntryOrBuilder>( + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } @@ -4956,14 +5029,15 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:ORSetDeltaGroup) - private static final akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup + private static final akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup(); + DEFAULT_INSTANCE = new akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup(); } - public static akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup getDefaultInstance() { + public static akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4989,7 +5063,8 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.ORSetDeltaGroup getDefaultInstanceForType() { + public akka.persistence.typed.serialization.ActiveActive.ORSetDeltaGroup + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -5000,18 +5075,20 @@ public final class Crdts { akka.protobufv3.internal.MessageOrBuilder { /** repeated .VersionVector.Entry entries = 1; */ - java.util.List getEntriesList(); + java.util.List + getEntriesList(); /** repeated .VersionVector.Entry entries = 1; */ - akka.persistence.typed.serialization.Crdts.VersionVector.Entry getEntries(int index); + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getEntries(int index); /** repeated .VersionVector.Entry entries = 1; */ int getEntriesCount(); /** repeated .VersionVector.Entry entries = 1; */ java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder> getEntriesOrBuilderList(); /** repeated .VersionVector.Entry entries = 1; */ - akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder getEntriesOrBuilder( - int index); + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder + getEntriesOrBuilder(int index); } /** Protobuf type {@code VersionVector} */ public static final class VersionVector extends akka.protobufv3.internal.GeneratedMessageV3 @@ -5064,12 +5141,13 @@ public final class Crdts { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList< - akka.persistence.typed.serialization.Crdts.VersionVector.Entry>(); + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry>(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.PARSER, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry + .PARSER, extensionRegistry)); break; } @@ -5097,17 +5175,18 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_VersionVector_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_VersionVector_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.VersionVector.class, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder.class); + akka.persistence.typed.serialization.ActiveActive.VersionVector.class, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder.class); } public interface EntryOrBuilder @@ -5227,18 +5306,19 @@ public final class Crdts { } public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_Entry_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.class, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder.class); + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.class, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder + .class); } private int bitField0_; @@ -5360,11 +5440,12 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.VersionVector.Entry)) { + if (!(obj + instanceof akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.VersionVector.Entry other = - (akka.persistence.typed.serialization.Crdts.VersionVector.Entry) obj; + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry other = + (akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { @@ -5398,48 +5479,48 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5447,13 +5528,13 @@ public final class Crdts { PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseDelimitedFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) @@ -5462,12 +5543,12 @@ public final class Crdts { PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5485,7 +5566,7 @@ public final class Crdts { } public static Builder newBuilder( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry prototype) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5505,24 +5586,25 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:VersionVector.Entry) - akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder { + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_Entry_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.class, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder.class); + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.class, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder + .class); } // Construct using - // akka.persistence.typed.serialization.Crdts.VersionVector.Entry.newBuilder() + // akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5548,20 +5630,21 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_Entry_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.VersionVector.Entry + return akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry .getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry build() { - akka.persistence.typed.serialization.Crdts.VersionVector.Entry result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry build() { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5569,9 +5652,10 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry buildPartial() { - akka.persistence.typed.serialization.Crdts.VersionVector.Entry result = - new akka.persistence.typed.serialization.Crdts.VersionVector.Entry(this); + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry + buildPartial() { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry result = + new akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -5624,9 +5708,10 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.VersionVector.Entry) { + if (other + instanceof akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry) { return mergeFrom( - (akka.persistence.typed.serialization.Crdts.VersionVector.Entry) other); + (akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry) other); } else { super.mergeFrom(other); return this; @@ -5634,9 +5719,9 @@ public final class Crdts { } public Builder mergeFrom( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry other) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry other) { if (other - == akka.persistence.typed.serialization.Crdts.VersionVector.Entry + == akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry .getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; @@ -5667,12 +5752,13 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.VersionVector.Entry parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.VersionVector.Entry) + (akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -5827,14 +5913,15 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:VersionVector.Entry) - private static final akka.persistence.typed.serialization.Crdts.VersionVector.Entry + private static final akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.VersionVector.Entry(); + DEFAULT_INSTANCE = + new akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry(); } - public static akka.persistence.typed.serialization.Crdts.VersionVector.Entry + public static akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5861,22 +5948,24 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; - private java.util.List entries_; + private java.util.List + entries_; /** repeated .VersionVector.Entry entries = 1; */ - public java.util.List + public java.util.List getEntriesList() { return entries_; } /** repeated .VersionVector.Entry entries = 1; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder> getEntriesOrBuilderList() { return entries_; } @@ -5885,11 +5974,12 @@ public final class Crdts { return entries_.size(); } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry getEntries(int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getEntries( + int index) { return entries_.get(index); } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder + public akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder getEntriesOrBuilder(int index) { return entries_.get(index); } @@ -5940,11 +6030,11 @@ public final class Crdts { if (obj == this) { return true; } - if (!(obj instanceof akka.persistence.typed.serialization.Crdts.VersionVector)) { + if (!(obj instanceof akka.persistence.typed.serialization.ActiveActive.VersionVector)) { return super.equals(obj); } - akka.persistence.typed.serialization.Crdts.VersionVector other = - (akka.persistence.typed.serialization.Crdts.VersionVector) obj; + akka.persistence.typed.serialization.ActiveActive.VersionVector other = + (akka.persistence.typed.serialization.ActiveActive.VersionVector) obj; if (!getEntriesList().equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -5967,72 +6057,74 @@ public final class Crdts { return hash; } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( java.nio.ByteBuffer data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( java.nio.ByteBuffer data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( akka.protobufv3.internal.ByteString data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( akka.protobufv3.internal.ByteString data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom(byte[] data) - throws akka.protobufv3.internal.InvalidProtocolBufferException { + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( + byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws akka.protobufv3.internal.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.VersionVector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseDelimitedFrom( - java.io.InputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static akka.persistence.typed.serialization.ActiveActive.VersionVector + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static akka.persistence.typed.serialization.Crdts.VersionVector parseFrom( + public static akka.persistence.typed.serialization.ActiveActive.VersionVector parseFrom( akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6050,7 +6142,7 @@ public final class Crdts { } public static Builder newBuilder( - akka.persistence.typed.serialization.Crdts.VersionVector prototype) { + akka.persistence.typed.serialization.ActiveActive.VersionVector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6070,22 +6162,24 @@ public final class Crdts { extends akka.protobufv3.internal.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:VersionVector) - akka.persistence.typed.serialization.Crdts.VersionVectorOrBuilder { + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder { public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { - return akka.persistence.typed.serialization.Crdts.internal_static_VersionVector_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_VersionVector_descriptor; } @java.lang.Override protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return akka.persistence.typed.serialization.Crdts + return akka.persistence.typed.serialization.ActiveActive .internal_static_VersionVector_fieldAccessorTable .ensureFieldAccessorsInitialized( - akka.persistence.typed.serialization.Crdts.VersionVector.class, - akka.persistence.typed.serialization.Crdts.VersionVector.Builder.class); + akka.persistence.typed.serialization.ActiveActive.VersionVector.class, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder.class); } - // Construct using akka.persistence.typed.serialization.Crdts.VersionVector.newBuilder() + // Construct using + // akka.persistence.typed.serialization.ActiveActive.VersionVector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6115,17 +6209,19 @@ public final class Crdts { @java.lang.Override public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { - return akka.persistence.typed.serialization.Crdts.internal_static_VersionVector_descriptor; + return akka.persistence.typed.serialization.ActiveActive + .internal_static_VersionVector_descriptor; } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector getDefaultInstanceForType() { - return akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance(); + public akka.persistence.typed.serialization.ActiveActive.VersionVector + getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance(); } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector build() { - akka.persistence.typed.serialization.Crdts.VersionVector result = buildPartial(); + public akka.persistence.typed.serialization.ActiveActive.VersionVector build() { + akka.persistence.typed.serialization.ActiveActive.VersionVector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6133,9 +6229,9 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector buildPartial() { - akka.persistence.typed.serialization.Crdts.VersionVector result = - new akka.persistence.typed.serialization.Crdts.VersionVector(this); + public akka.persistence.typed.serialization.ActiveActive.VersionVector buildPartial() { + akka.persistence.typed.serialization.ActiveActive.VersionVector result = + new akka.persistence.typed.serialization.ActiveActive.VersionVector(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6187,16 +6283,18 @@ public final class Crdts { @java.lang.Override public Builder mergeFrom(akka.protobufv3.internal.Message other) { - if (other instanceof akka.persistence.typed.serialization.Crdts.VersionVector) { - return mergeFrom((akka.persistence.typed.serialization.Crdts.VersionVector) other); + if (other instanceof akka.persistence.typed.serialization.ActiveActive.VersionVector) { + return mergeFrom((akka.persistence.typed.serialization.ActiveActive.VersionVector) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(akka.persistence.typed.serialization.Crdts.VersionVector other) { - if (other == akka.persistence.typed.serialization.Crdts.VersionVector.getDefaultInstance()) + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.VersionVector other) { + if (other + == akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { @@ -6245,12 +6343,13 @@ public final class Crdts { akka.protobufv3.internal.CodedInputStream input, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - akka.persistence.typed.serialization.Crdts.VersionVector parsedMessage = null; + akka.persistence.typed.serialization.ActiveActive.VersionVector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { parsedMessage = - (akka.persistence.typed.serialization.Crdts.VersionVector) e.getUnfinishedMessage(); + (akka.persistence.typed.serialization.ActiveActive.VersionVector) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6262,26 +6361,26 @@ public final class Crdts { private int bitField0_; - private java.util.List + private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList< - akka.persistence.typed.serialization.Crdts.VersionVector.Entry>(entries_); + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry>(entries_); bitField0_ |= 0x00000001; } } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector.Entry, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder, - akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder> entriesBuilder_; /** repeated .VersionVector.Entry entries = 1; */ - public java.util.List + public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); @@ -6298,7 +6397,8 @@ public final class Crdts { } } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry getEntries(int index) { + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry getEntries( + int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { @@ -6307,7 +6407,7 @@ public final class Crdts { } /** repeated .VersionVector.Entry entries = 1; */ public Builder setEntries( - int index, akka.persistence.typed.serialization.Crdts.VersionVector.Entry value) { + int index, akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6323,7 +6423,8 @@ public final class Crdts { /** repeated .VersionVector.Entry entries = 1; */ public Builder setEntries( int index, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -6335,7 +6436,7 @@ public final class Crdts { } /** repeated .VersionVector.Entry entries = 1; */ public Builder addEntries( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry value) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6350,7 +6451,7 @@ public final class Crdts { } /** repeated .VersionVector.Entry entries = 1; */ public Builder addEntries( - int index, akka.persistence.typed.serialization.Crdts.VersionVector.Entry value) { + int index, akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6365,7 +6466,8 @@ public final class Crdts { } /** repeated .VersionVector.Entry entries = 1; */ public Builder addEntries( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); @@ -6378,7 +6480,8 @@ public final class Crdts { /** repeated .VersionVector.Entry entries = 1; */ public Builder addEntries( int index, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder builderForValue) { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -6391,7 +6494,7 @@ public final class Crdts { /** repeated .VersionVector.Entry entries = 1; */ public Builder addAllEntries( java.lang.Iterable< - ? extends akka.persistence.typed.serialization.Crdts.VersionVector.Entry> + ? extends akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry> values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); @@ -6425,12 +6528,12 @@ public final class Crdts { return this; } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder + public akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { return entries_.get(index); @@ -6440,7 +6543,8 @@ public final class Crdts { } /** repeated .VersionVector.Entry entries = 1; */ public java.util.List< - ? extends akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder> + ? extends + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder> getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); @@ -6449,39 +6553,40 @@ public final class Crdts { } } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder() .addBuilder( - akka.persistence.typed.serialization.Crdts.VersionVector.Entry + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry .getDefaultInstance()); } /** repeated .VersionVector.Entry entries = 1; */ - public akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder addEntriesBuilder(int index) { return getEntriesFieldBuilder() .addBuilder( index, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry .getDefaultInstance()); } /** repeated .VersionVector.Entry entries = 1; */ - public java.util.List + public java.util.List< + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder> getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector.Entry, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder, - akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder> + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new akka.protobufv3.internal.RepeatedFieldBuilderV3< - akka.persistence.typed.serialization.Crdts.VersionVector.Entry, - akka.persistence.typed.serialization.Crdts.VersionVector.Entry.Builder, - akka.persistence.typed.serialization.Crdts.VersionVector.EntryOrBuilder>( + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Entry.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVector.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } @@ -6504,13 +6609,15 @@ public final class Crdts { } // @@protoc_insertion_point(class_scope:VersionVector) - private static final akka.persistence.typed.serialization.Crdts.VersionVector DEFAULT_INSTANCE; + private static final akka.persistence.typed.serialization.ActiveActive.VersionVector + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new akka.persistence.typed.serialization.Crdts.VersionVector(); + DEFAULT_INSTANCE = new akka.persistence.typed.serialization.ActiveActive.VersionVector(); } - public static akka.persistence.typed.serialization.Crdts.VersionVector getDefaultInstance() { + public static akka.persistence.typed.serialization.ActiveActive.VersionVector + getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -6536,7 +6643,3023 @@ public final class Crdts { } @java.lang.Override - public akka.persistence.typed.serialization.Crdts.VersionVector getDefaultInstanceForType() { + public akka.persistence.typed.serialization.ActiveActive.VersionVector + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ReplicatedEventMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ReplicatedEventMetadata) + akka.protobufv3.internal.MessageOrBuilder { + + /** + * required string originReplica = 1; + * + * @return Whether the originReplica field is set. + */ + boolean hasOriginReplica(); + /** + * required string originReplica = 1; + * + * @return The originReplica. + */ + java.lang.String getOriginReplica(); + /** + * required string originReplica = 1; + * + * @return The bytes for originReplica. + */ + akka.protobufv3.internal.ByteString getOriginReplicaBytes(); + + /** + * required int64 originSequenceNr = 2; + * + * @return Whether the originSequenceNr field is set. + */ + boolean hasOriginSequenceNr(); + /** + * required int64 originSequenceNr = 2; + * + * @return The originSequenceNr. + */ + long getOriginSequenceNr(); + + /** + * required .VersionVector versionVector = 3; + * + * @return Whether the versionVector field is set. + */ + boolean hasVersionVector(); + /** + * required .VersionVector versionVector = 3; + * + * @return The versionVector. + */ + akka.persistence.typed.serialization.ActiveActive.VersionVector getVersionVector(); + /** required .VersionVector versionVector = 3; */ + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVersionVectorOrBuilder(); + + /** + * required bool concurrent = 4; + * + * @return Whether the concurrent field is set. + */ + boolean hasConcurrent(); + /** + * required bool concurrent = 4; + * + * @return The concurrent. + */ + boolean getConcurrent(); + } + /** Protobuf type {@code ReplicatedEventMetadata} */ + public static final class ReplicatedEventMetadata + extends akka.protobufv3.internal.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ReplicatedEventMetadata) + ReplicatedEventMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReplicatedEventMetadata.newBuilder() to construct. + private ReplicatedEventMetadata( + akka.protobufv3.internal.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplicatedEventMetadata() { + originReplica_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) { + return new ReplicatedEventMetadata(); + } + + @java.lang.Override + public final akka.protobufv3.internal.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplicatedEventMetadata( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields = + akka.protobufv3.internal.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + akka.protobufv3.internal.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + originReplica_ = bs; + break; + } + case 16: + { + bitField0_ |= 0x00000002; + originSequenceNr_ = input.readInt64(); + break; + } + case 26: + { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder subBuilder = + null; + if (((bitField0_ & 0x00000004) != 0)) { + subBuilder = versionVector_.toBuilder(); + } + versionVector_ = + input.readMessage( + akka.persistence.typed.serialization.ActiveActive.VersionVector.PARSER, + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionVector_); + versionVector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 32: + { + bitField0_ |= 0x00000008; + concurrent_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new akka.protobufv3.internal.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedEventMetadata_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedEventMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata.class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata.Builder + .class); + } + + private int bitField0_; + public static final int ORIGINREPLICA_FIELD_NUMBER = 1; + private volatile java.lang.Object originReplica_; + /** + * required string originReplica = 1; + * + * @return Whether the originReplica field is set. + */ + public boolean hasOriginReplica() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string originReplica = 1; + * + * @return The originReplica. + */ + public java.lang.String getOriginReplica() { + java.lang.Object ref = originReplica_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + akka.protobufv3.internal.ByteString bs = (akka.protobufv3.internal.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + originReplica_ = s; + } + return s; + } + } + /** + * required string originReplica = 1; + * + * @return The bytes for originReplica. + */ + public akka.protobufv3.internal.ByteString getOriginReplicaBytes() { + java.lang.Object ref = originReplica_; + if (ref instanceof java.lang.String) { + akka.protobufv3.internal.ByteString b = + akka.protobufv3.internal.ByteString.copyFromUtf8((java.lang.String) ref); + originReplica_ = b; + return b; + } else { + return (akka.protobufv3.internal.ByteString) ref; + } + } + + public static final int ORIGINSEQUENCENR_FIELD_NUMBER = 2; + private long originSequenceNr_; + /** + * required int64 originSequenceNr = 2; + * + * @return Whether the originSequenceNr field is set. + */ + public boolean hasOriginSequenceNr() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 originSequenceNr = 2; + * + * @return The originSequenceNr. + */ + public long getOriginSequenceNr() { + return originSequenceNr_; + } + + public static final int VERSIONVECTOR_FIELD_NUMBER = 3; + private akka.persistence.typed.serialization.ActiveActive.VersionVector versionVector_; + /** + * required .VersionVector versionVector = 3; + * + * @return Whether the versionVector field is set. + */ + public boolean hasVersionVector() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .VersionVector versionVector = 3; + * + * @return The versionVector. + */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVersionVector() { + return versionVector_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : versionVector_; + } + /** required .VersionVector versionVector = 3; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVersionVectorOrBuilder() { + return versionVector_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : versionVector_; + } + + public static final int CONCURRENT_FIELD_NUMBER = 4; + private boolean concurrent_; + /** + * required bool concurrent = 4; + * + * @return Whether the concurrent field is set. + */ + public boolean hasConcurrent() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required bool concurrent = 4; + * + * @return The concurrent. + */ + public boolean getConcurrent() { + return concurrent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasOriginReplica()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOriginSequenceNr()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVersionVector()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasConcurrent()) { + memoizedIsInitialized = 0; + return false; + } + if (!getVersionVector().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(akka.protobufv3.internal.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, originReplica_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, originSequenceNr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getVersionVector()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, concurrent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, originReplica_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += akka.protobufv3.internal.CodedOutputStream.computeInt64Size(2, originSequenceNr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + akka.protobufv3.internal.CodedOutputStream.computeMessageSize(3, getVersionVector()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += akka.protobufv3.internal.CodedOutputStream.computeBoolSize(4, concurrent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata)) { + return super.equals(obj); + } + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata other = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata) obj; + + if (hasOriginReplica() != other.hasOriginReplica()) return false; + if (hasOriginReplica()) { + if (!getOriginReplica().equals(other.getOriginReplica())) return false; + } + if (hasOriginSequenceNr() != other.hasOriginSequenceNr()) return false; + if (hasOriginSequenceNr()) { + if (getOriginSequenceNr() != other.getOriginSequenceNr()) return false; + } + if (hasVersionVector() != other.hasVersionVector()) return false; + if (hasVersionVector()) { + if (!getVersionVector().equals(other.getVersionVector())) return false; + } + if (hasConcurrent() != other.hasConcurrent()) return false; + if (hasConcurrent()) { + if (getConcurrent() != other.getConcurrent()) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOriginReplica()) { + hash = (37 * hash) + ORIGINREPLICA_FIELD_NUMBER; + hash = (53 * hash) + getOriginReplica().hashCode(); + } + if (hasOriginSequenceNr()) { + hash = (37 * hash) + ORIGINSEQUENCENR_FIELD_NUMBER; + hash = (53 * hash) + akka.protobufv3.internal.Internal.hashLong(getOriginSequenceNr()); + } + if (hasVersionVector()) { + hash = (37 * hash) + VERSIONVECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVersionVector().hashCode(); + } + if (hasConcurrent()) { + hash = (37 * hash) + CONCURRENT_FIELD_NUMBER; + hash = (53 * hash) + akka.protobufv3.internal.Internal.hashBoolean(getConcurrent()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(java.nio.ByteBuffer data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom( + java.nio.ByteBuffer data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(akka.protobufv3.internal.ByteString data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom( + akka.protobufv3.internal.ByteString data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom(akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + parseFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code ReplicatedEventMetadata} */ + public static final class Builder + extends akka.protobufv3.internal.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ReplicatedEventMetadata) + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadataOrBuilder { + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedEventMetadata_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedEventMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata.class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata.Builder + .class); + } + + // Construct using + // akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (akka.protobufv3.internal.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionVectorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + originReplica_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + originSequenceNr_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + if (versionVectorBuilder_ == null) { + versionVector_ = null; + } else { + versionVectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + concurrent_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedEventMetadata_descriptor; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata build() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata result = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.originReplica_ = originReplica_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originSequenceNr_ = originSequenceNr_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + if (versionVectorBuilder_ == null) { + result.versionVector_ = versionVector_; + } else { + result.versionVector_ = versionVectorBuilder_.build(); + } + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.concurrent_ = concurrent_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(akka.protobufv3.internal.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(akka.protobufv3.internal.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(akka.protobufv3.internal.Message other) { + if (other + instanceof akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata) { + return mergeFrom( + (akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata other) { + if (other + == akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + .getDefaultInstance()) return this; + if (other.hasOriginReplica()) { + bitField0_ |= 0x00000001; + originReplica_ = other.originReplica_; + onChanged(); + } + if (other.hasOriginSequenceNr()) { + setOriginSequenceNr(other.getOriginSequenceNr()); + } + if (other.hasVersionVector()) { + mergeVersionVector(other.getVersionVector()); + } + if (other.hasConcurrent()) { + setConcurrent(other.getConcurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasOriginReplica()) { + return false; + } + if (!hasOriginSequenceNr()) { + return false; + } + if (!hasVersionVector()) { + return false; + } + if (!hasConcurrent()) { + return false; + } + if (!getVersionVector().isInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + parsedMessage = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object originReplica_ = ""; + /** + * required string originReplica = 1; + * + * @return Whether the originReplica field is set. + */ + public boolean hasOriginReplica() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string originReplica = 1; + * + * @return The originReplica. + */ + public java.lang.String getOriginReplica() { + java.lang.Object ref = originReplica_; + if (!(ref instanceof java.lang.String)) { + akka.protobufv3.internal.ByteString bs = (akka.protobufv3.internal.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + originReplica_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string originReplica = 1; + * + * @return The bytes for originReplica. + */ + public akka.protobufv3.internal.ByteString getOriginReplicaBytes() { + java.lang.Object ref = originReplica_; + if (ref instanceof String) { + akka.protobufv3.internal.ByteString b = + akka.protobufv3.internal.ByteString.copyFromUtf8((java.lang.String) ref); + originReplica_ = b; + return b; + } else { + return (akka.protobufv3.internal.ByteString) ref; + } + } + /** + * required string originReplica = 1; + * + * @param value The originReplica to set. + * @return This builder for chaining. + */ + public Builder setOriginReplica(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + originReplica_ = value; + onChanged(); + return this; + } + /** + * required string originReplica = 1; + * + * @return This builder for chaining. + */ + public Builder clearOriginReplica() { + bitField0_ = (bitField0_ & ~0x00000001); + originReplica_ = getDefaultInstance().getOriginReplica(); + onChanged(); + return this; + } + /** + * required string originReplica = 1; + * + * @param value The bytes for originReplica to set. + * @return This builder for chaining. + */ + public Builder setOriginReplicaBytes(akka.protobufv3.internal.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + originReplica_ = value; + onChanged(); + return this; + } + + private long originSequenceNr_; + /** + * required int64 originSequenceNr = 2; + * + * @return Whether the originSequenceNr field is set. + */ + public boolean hasOriginSequenceNr() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 originSequenceNr = 2; + * + * @return The originSequenceNr. + */ + public long getOriginSequenceNr() { + return originSequenceNr_; + } + /** + * required int64 originSequenceNr = 2; + * + * @param value The originSequenceNr to set. + * @return This builder for chaining. + */ + public Builder setOriginSequenceNr(long value) { + bitField0_ |= 0x00000002; + originSequenceNr_ = value; + onChanged(); + return this; + } + /** + * required int64 originSequenceNr = 2; + * + * @return This builder for chaining. + */ + public Builder clearOriginSequenceNr() { + bitField0_ = (bitField0_ & ~0x00000002); + originSequenceNr_ = 0L; + onChanged(); + return this; + } + + private akka.persistence.typed.serialization.ActiveActive.VersionVector versionVector_; + private akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> + versionVectorBuilder_; + /** + * required .VersionVector versionVector = 3; + * + * @return Whether the versionVector field is set. + */ + public boolean hasVersionVector() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .VersionVector versionVector = 3; + * + * @return The versionVector. + */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVersionVector() { + if (versionVectorBuilder_ == null) { + return versionVector_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : versionVector_; + } else { + return versionVectorBuilder_.getMessage(); + } + } + /** required .VersionVector versionVector = 3; */ + public Builder setVersionVector( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { + if (versionVectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionVector_ = value; + onChanged(); + } else { + versionVectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** required .VersionVector versionVector = 3; */ + public Builder setVersionVector( + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { + if (versionVectorBuilder_ == null) { + versionVector_ = builderForValue.build(); + onChanged(); + } else { + versionVectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** required .VersionVector versionVector = 3; */ + public Builder mergeVersionVector( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { + if (versionVectorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && versionVector_ != null + && versionVector_ + != akka.persistence.typed.serialization.ActiveActive.VersionVector + .getDefaultInstance()) { + versionVector_ = + akka.persistence.typed.serialization.ActiveActive.VersionVector.newBuilder( + versionVector_) + .mergeFrom(value) + .buildPartial(); + } else { + versionVector_ = value; + } + onChanged(); + } else { + versionVectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** required .VersionVector versionVector = 3; */ + public Builder clearVersionVector() { + if (versionVectorBuilder_ == null) { + versionVector_ = null; + onChanged(); + } else { + versionVectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** required .VersionVector versionVector = 3; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder + getVersionVectorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getVersionVectorFieldBuilder().getBuilder(); + } + /** required .VersionVector versionVector = 3; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVersionVectorOrBuilder() { + if (versionVectorBuilder_ != null) { + return versionVectorBuilder_.getMessageOrBuilder(); + } else { + return versionVector_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : versionVector_; + } + } + /** required .VersionVector versionVector = 3; */ + private akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> + getVersionVectorFieldBuilder() { + if (versionVectorBuilder_ == null) { + versionVectorBuilder_ = + new akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder>( + getVersionVector(), getParentForChildren(), isClean()); + versionVector_ = null; + } + return versionVectorBuilder_; + } + + private boolean concurrent_; + /** + * required bool concurrent = 4; + * + * @return Whether the concurrent field is set. + */ + public boolean hasConcurrent() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required bool concurrent = 4; + * + * @return The concurrent. + */ + public boolean getConcurrent() { + return concurrent_; + } + /** + * required bool concurrent = 4; + * + * @param value The concurrent to set. + * @return This builder for chaining. + */ + public Builder setConcurrent(boolean value) { + bitField0_ |= 0x00000008; + concurrent_ = value; + onChanged(); + return this; + } + /** + * required bool concurrent = 4; + * + * @return This builder for chaining. + */ + public Builder clearConcurrent() { + bitField0_ = (bitField0_ & ~0x00000008); + concurrent_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplicatedEventMetadata) + } + + // @@protoc_insertion_point(class_scope:ReplicatedEventMetadata) + private static final akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata(); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final akka.protobufv3.internal.Parser PARSER = + new akka.protobufv3.internal.AbstractParser() { + @java.lang.Override + public ReplicatedEventMetadata parsePartialFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return new ReplicatedEventMetadata(input, extensionRegistry); + } + }; + + public static akka.protobufv3.internal.Parser parser() { + return PARSER; + } + + @java.lang.Override + public akka.protobufv3.internal.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedEventMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ReplicatedSnapshotMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ReplicatedSnapshotMetadata) + akka.protobufv3.internal.MessageOrBuilder { + + /** + * required .VersionVector version = 1; + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * required .VersionVector version = 1; + * + * @return The version. + */ + akka.persistence.typed.serialization.ActiveActive.VersionVector getVersion(); + /** required .VersionVector version = 1; */ + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder getVersionOrBuilder(); + + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen> + getSeenPerReplicaList(); + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + getSeenPerReplica(int index); + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + int getSeenPerReplicaCount(); + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + java.util.List< + ? extends + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder> + getSeenPerReplicaOrBuilderList(); + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.SeenOrBuilder + getSeenPerReplicaOrBuilder(int index); + } + /** Protobuf type {@code ReplicatedSnapshotMetadata} */ + public static final class ReplicatedSnapshotMetadata + extends akka.protobufv3.internal.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ReplicatedSnapshotMetadata) + ReplicatedSnapshotMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReplicatedSnapshotMetadata.newBuilder() to construct. + private ReplicatedSnapshotMetadata( + akka.protobufv3.internal.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplicatedSnapshotMetadata() { + seenPerReplica_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) { + return new ReplicatedSnapshotMetadata(); + } + + @java.lang.Override + public final akka.protobufv3.internal.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplicatedSnapshotMetadata( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields = + akka.protobufv3.internal.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder subBuilder = + null; + if (((bitField0_ & 0x00000001) != 0)) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + akka.persistence.typed.serialization.ActiveActive.VersionVector.PARSER, + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + seenPerReplica_ = + new java.util.ArrayList< + akka.persistence.typed.serialization.ActiveActive + .ReplicatedSnapshotMetadata.Seen>(); + mutable_bitField0_ |= 0x00000002; + } + seenPerReplica_.add( + input.readMessage( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen.PARSER, + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new akka.protobufv3.internal.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + seenPerReplica_ = java.util.Collections.unmodifiableList(seenPerReplica_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Builder + .class); + } + + public interface SeenOrBuilder + extends + // @@protoc_insertion_point(interface_extends:ReplicatedSnapshotMetadata.Seen) + akka.protobufv3.internal.MessageOrBuilder { + + /** + * required string replicaId = 1; + * + * @return Whether the replicaId field is set. + */ + boolean hasReplicaId(); + /** + * required string replicaId = 1; + * + * @return The replicaId. + */ + java.lang.String getReplicaId(); + /** + * required string replicaId = 1; + * + * @return The bytes for replicaId. + */ + akka.protobufv3.internal.ByteString getReplicaIdBytes(); + + /** + * required int64 sequenceNr = 2; + * + * @return Whether the sequenceNr field is set. + */ + boolean hasSequenceNr(); + /** + * required int64 sequenceNr = 2; + * + * @return The sequenceNr. + */ + long getSequenceNr(); + } + /** Protobuf type {@code ReplicatedSnapshotMetadata.Seen} */ + public static final class Seen extends akka.protobufv3.internal.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:ReplicatedSnapshotMetadata.Seen) + SeenOrBuilder { + private static final long serialVersionUID = 0L; + // Use Seen.newBuilder() to construct. + private Seen(akka.protobufv3.internal.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Seen() { + replicaId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) { + return new Seen(); + } + + @java.lang.Override + public final akka.protobufv3.internal.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Seen( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields = + akka.protobufv3.internal.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + akka.protobufv3.internal.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + replicaId_ = bs; + break; + } + case 16: + { + bitField0_ |= 0x00000002; + sequenceNr_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new akka.protobufv3.internal.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_Seen_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_Seen_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder.class); + } + + private int bitField0_; + public static final int REPLICAID_FIELD_NUMBER = 1; + private volatile java.lang.Object replicaId_; + /** + * required string replicaId = 1; + * + * @return Whether the replicaId field is set. + */ + public boolean hasReplicaId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string replicaId = 1; + * + * @return The replicaId. + */ + public java.lang.String getReplicaId() { + java.lang.Object ref = replicaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + akka.protobufv3.internal.ByteString bs = (akka.protobufv3.internal.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + replicaId_ = s; + } + return s; + } + } + /** + * required string replicaId = 1; + * + * @return The bytes for replicaId. + */ + public akka.protobufv3.internal.ByteString getReplicaIdBytes() { + java.lang.Object ref = replicaId_; + if (ref instanceof java.lang.String) { + akka.protobufv3.internal.ByteString b = + akka.protobufv3.internal.ByteString.copyFromUtf8((java.lang.String) ref); + replicaId_ = b; + return b; + } else { + return (akka.protobufv3.internal.ByteString) ref; + } + } + + public static final int SEQUENCENR_FIELD_NUMBER = 2; + private long sequenceNr_; + /** + * required int64 sequenceNr = 2; + * + * @return Whether the sequenceNr field is set. + */ + public boolean hasSequenceNr() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 sequenceNr = 2; + * + * @return The sequenceNr. + */ + public long getSequenceNr() { + return sequenceNr_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasReplicaId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSequenceNr()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(akka.protobufv3.internal.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, replicaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, sequenceNr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, replicaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += akka.protobufv3.internal.CodedOutputStream.computeInt64Size(2, sequenceNr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen)) { + return super.equals(obj); + } + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen other = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen) obj; + + if (hasReplicaId() != other.hasReplicaId()) return false; + if (hasReplicaId()) { + if (!getReplicaId().equals(other.getReplicaId())) return false; + } + if (hasSequenceNr() != other.hasSequenceNr()) return false; + if (hasSequenceNr()) { + if (getSequenceNr() != other.getSequenceNr()) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReplicaId()) { + hash = (37 * hash) + REPLICAID_FIELD_NUMBER; + hash = (53 * hash) + getReplicaId().hashCode(); + } + if (hasSequenceNr()) { + hash = (37 * hash) + SEQUENCENR_FIELD_NUMBER; + hash = (53 * hash) + akka.protobufv3.internal.Internal.hashLong(getSequenceNr()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(java.nio.ByteBuffer data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom( + java.nio.ByteBuffer data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(akka.protobufv3.internal.ByteString data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom( + akka.protobufv3.internal.ByteString data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom(akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + parseFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code ReplicatedSnapshotMetadata.Seen} */ + public static final class Builder + extends akka.protobufv3.internal.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ReplicatedSnapshotMetadata.Seen) + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder { + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_Seen_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_Seen_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder.class); + } + + // Construct using + // akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (akka.protobufv3.internal.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + replicaId_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + sequenceNr_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_Seen_descriptor; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .getDefaultInstance(); + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + build() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen result = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen( + this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.replicaId_ = replicaId_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sequenceNr_ = sequenceNr_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(akka.protobufv3.internal.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(akka.protobufv3.internal.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(akka.protobufv3.internal.Message other) { + if (other + instanceof + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen) { + return mergeFrom( + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + other) { + if (other + == akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .getDefaultInstance()) return this; + if (other.hasReplicaId()) { + bitField0_ |= 0x00000001; + replicaId_ = other.replicaId_; + onChanged(); + } + if (other.hasSequenceNr()) { + setSequenceNr(other.getSequenceNr()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasReplicaId()) { + return false; + } + if (!hasSequenceNr()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + parsedMessage = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object replicaId_ = ""; + /** + * required string replicaId = 1; + * + * @return Whether the replicaId field is set. + */ + public boolean hasReplicaId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string replicaId = 1; + * + * @return The replicaId. + */ + public java.lang.String getReplicaId() { + java.lang.Object ref = replicaId_; + if (!(ref instanceof java.lang.String)) { + akka.protobufv3.internal.ByteString bs = (akka.protobufv3.internal.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + replicaId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string replicaId = 1; + * + * @return The bytes for replicaId. + */ + public akka.protobufv3.internal.ByteString getReplicaIdBytes() { + java.lang.Object ref = replicaId_; + if (ref instanceof String) { + akka.protobufv3.internal.ByteString b = + akka.protobufv3.internal.ByteString.copyFromUtf8((java.lang.String) ref); + replicaId_ = b; + return b; + } else { + return (akka.protobufv3.internal.ByteString) ref; + } + } + /** + * required string replicaId = 1; + * + * @param value The replicaId to set. + * @return This builder for chaining. + */ + public Builder setReplicaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + replicaId_ = value; + onChanged(); + return this; + } + /** + * required string replicaId = 1; + * + * @return This builder for chaining. + */ + public Builder clearReplicaId() { + bitField0_ = (bitField0_ & ~0x00000001); + replicaId_ = getDefaultInstance().getReplicaId(); + onChanged(); + return this; + } + /** + * required string replicaId = 1; + * + * @param value The bytes for replicaId to set. + * @return This builder for chaining. + */ + public Builder setReplicaIdBytes(akka.protobufv3.internal.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + replicaId_ = value; + onChanged(); + return this; + } + + private long sequenceNr_; + /** + * required int64 sequenceNr = 2; + * + * @return Whether the sequenceNr field is set. + */ + public boolean hasSequenceNr() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 sequenceNr = 2; + * + * @return The sequenceNr. + */ + public long getSequenceNr() { + return sequenceNr_; + } + /** + * required int64 sequenceNr = 2; + * + * @param value The sequenceNr to set. + * @return This builder for chaining. + */ + public Builder setSequenceNr(long value) { + bitField0_ |= 0x00000002; + sequenceNr_ = value; + onChanged(); + return this; + } + /** + * required int64 sequenceNr = 2; + * + * @return This builder for chaining. + */ + public Builder clearSequenceNr() { + bitField0_ = (bitField0_ & ~0x00000002); + sequenceNr_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplicatedSnapshotMetadata.Seen) + } + + // @@protoc_insertion_point(class_scope:ReplicatedSnapshotMetadata.Seen) + private static final akka.persistence.typed.serialization.ActiveActive + .ReplicatedSnapshotMetadata.Seen + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen(); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final akka.protobufv3.internal.Parser PARSER = + new akka.protobufv3.internal.AbstractParser() { + @java.lang.Override + public Seen parsePartialFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return new Seen(input, extensionRegistry); + } + }; + + public static akka.protobufv3.internal.Parser parser() { + return PARSER; + } + + @java.lang.Override + public akka.protobufv3.internal.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private akka.persistence.typed.serialization.ActiveActive.VersionVector version_; + /** + * required .VersionVector version = 1; + * + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required .VersionVector version = 1; + * + * @return The version. + */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVersion() { + return version_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : version_; + } + /** required .VersionVector version = 1; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVersionOrBuilder() { + return version_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : version_; + } + + public static final int SEENPERREPLICA_FIELD_NUMBER = 2; + private java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen> + seenPerReplica_; + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen> + getSeenPerReplicaList() { + return seenPerReplica_; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public java.util.List< + ? extends + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder> + getSeenPerReplicaOrBuilderList() { + return seenPerReplica_; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public int getSeenPerReplicaCount() { + return seenPerReplica_.size(); + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + getSeenPerReplica(int index) { + return seenPerReplica_.get(index); + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder + getSeenPerReplicaOrBuilder(int index) { + return seenPerReplica_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!getVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getSeenPerReplicaCount(); i++) { + if (!getSeenPerReplica(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(akka.protobufv3.internal.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVersion()); + } + for (int i = 0; i < seenPerReplica_.size(); i++) { + output.writeMessage(2, seenPerReplica_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += akka.protobufv3.internal.CodedOutputStream.computeMessageSize(1, getVersion()); + } + for (int i = 0; i < seenPerReplica_.size(); i++) { + size += + akka.protobufv3.internal.CodedOutputStream.computeMessageSize( + 2, seenPerReplica_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata)) { + return super.equals(obj); + } + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata other = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion().equals(other.getVersion())) return false; + } + if (!getSeenPerReplicaList().equals(other.getSeenPerReplicaList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (getSeenPerReplicaCount() > 0) { + hash = (37 * hash) + SEENPERREPLICA_FIELD_NUMBER; + hash = (53 * hash) + getSeenPerReplicaList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(java.nio.ByteBuffer data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom( + java.nio.ByteBuffer data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(akka.protobufv3.internal.ByteString data) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom( + akka.protobufv3.internal.ByteString data, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(byte[] data) throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(byte[] data, akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseDelimitedFrom( + java.io.InputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom(akka.protobufv3.internal.CodedInputStream input) throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + parseFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return akka.protobufv3.internal.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code ReplicatedSnapshotMetadata} */ + public static final class Builder + extends akka.protobufv3.internal.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:ReplicatedSnapshotMetadata) + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadataOrBuilder { + public static final akka.protobufv3.internal.Descriptors.Descriptor getDescriptor() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_descriptor; + } + + @java.lang.Override + protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.class, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Builder + .class); + } + + // Construct using + // akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (akka.protobufv3.internal.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionFieldBuilder(); + getSeenPerReplicaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (versionBuilder_ == null) { + version_ = null; + } else { + versionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (seenPerReplicaBuilder_ == null) { + seenPerReplica_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + seenPerReplicaBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public akka.protobufv3.internal.Descriptors.Descriptor getDescriptorForType() { + return akka.persistence.typed.serialization.ActiveActive + .internal_static_ReplicatedSnapshotMetadata_descriptor; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + getDefaultInstanceForType() { + return akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata build() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + buildPartial() { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata result = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + if (versionBuilder_ == null) { + result.version_ = version_; + } else { + result.version_ = versionBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (seenPerReplicaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + seenPerReplica_ = java.util.Collections.unmodifiableList(seenPerReplica_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.seenPerReplica_ = seenPerReplica_; + } else { + result.seenPerReplica_ = seenPerReplicaBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(akka.protobufv3.internal.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(akka.protobufv3.internal.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + akka.protobufv3.internal.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(akka.protobufv3.internal.Message other) { + if (other + instanceof + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata) { + return mergeFrom( + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata other) { + if (other + == akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .getDefaultInstance()) return this; + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } + if (seenPerReplicaBuilder_ == null) { + if (!other.seenPerReplica_.isEmpty()) { + if (seenPerReplica_.isEmpty()) { + seenPerReplica_ = other.seenPerReplica_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.addAll(other.seenPerReplica_); + } + onChanged(); + } + } else { + if (!other.seenPerReplica_.isEmpty()) { + if (seenPerReplicaBuilder_.isEmpty()) { + seenPerReplicaBuilder_.dispose(); + seenPerReplicaBuilder_ = null; + seenPerReplica_ = other.seenPerReplica_; + bitField0_ = (bitField0_ & ~0x00000002); + seenPerReplicaBuilder_ = + akka.protobufv3.internal.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSeenPerReplicaFieldBuilder() + : null; + } else { + seenPerReplicaBuilder_.addAllMessages(other.seenPerReplica_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasVersion()) { + return false; + } + if (!getVersion().isInitialized()) { + return false; + } + for (int i = 0; i < getSeenPerReplicaCount(); i++) { + if (!getSeenPerReplica(i).isInitialized()) { + return false; + } + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) { + parsedMessage = + (akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private akka.persistence.typed.serialization.ActiveActive.VersionVector version_; + private akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> + versionBuilder_; + /** + * required .VersionVector version = 1; + * + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required .VersionVector version = 1; + * + * @return The version. + */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector getVersion() { + if (versionBuilder_ == null) { + return version_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** required .VersionVector version = 1; */ + public Builder setVersion( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + onChanged(); + } else { + versionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** required .VersionVector version = 1; */ + public Builder setVersion( + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + onChanged(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** required .VersionVector version = 1; */ + public Builder mergeVersion( + akka.persistence.typed.serialization.ActiveActive.VersionVector value) { + if (versionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && version_ != null + && version_ + != akka.persistence.typed.serialization.ActiveActive.VersionVector + .getDefaultInstance()) { + version_ = + akka.persistence.typed.serialization.ActiveActive.VersionVector.newBuilder(version_) + .mergeFrom(value) + .buildPartial(); + } else { + version_ = value; + } + onChanged(); + } else { + versionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** required .VersionVector version = 1; */ + public Builder clearVersion() { + if (versionBuilder_ == null) { + version_ = null; + onChanged(); + } else { + versionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** required .VersionVector version = 1; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder + getVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** required .VersionVector version = 1; */ + public akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder + getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null + ? akka.persistence.typed.serialization.ActiveActive.VersionVector.getDefaultInstance() + : version_; + } + } + /** required .VersionVector version = 1; */ + private akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = + new akka.protobufv3.internal.SingleFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.VersionVector, + akka.persistence.typed.serialization.ActiveActive.VersionVector.Builder, + akka.persistence.typed.serialization.ActiveActive.VersionVectorOrBuilder>( + getVersion(), getParentForChildren(), isClean()); + version_ = null; + } + return versionBuilder_; + } + + private java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen> + seenPerReplica_ = java.util.Collections.emptyList(); + + private void ensureSeenPerReplicaIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + seenPerReplica_ = + new java.util.ArrayList< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen>(seenPerReplica_); + bitField0_ |= 0x00000002; + } + } + + private akka.protobufv3.internal.RepeatedFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder> + seenPerReplicaBuilder_; + + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen> + getSeenPerReplicaList() { + if (seenPerReplicaBuilder_ == null) { + return java.util.Collections.unmodifiableList(seenPerReplica_); + } else { + return seenPerReplicaBuilder_.getMessageList(); + } + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public int getSeenPerReplicaCount() { + if (seenPerReplicaBuilder_ == null) { + return seenPerReplica_.size(); + } else { + return seenPerReplicaBuilder_.getCount(); + } + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + getSeenPerReplica(int index) { + if (seenPerReplicaBuilder_ == null) { + return seenPerReplica_.get(index); + } else { + return seenPerReplicaBuilder_.getMessage(index); + } + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder setSeenPerReplica( + int index, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen value) { + if (seenPerReplicaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.set(index, value); + onChanged(); + } else { + seenPerReplicaBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder setSeenPerReplica( + int index, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen.Builder + builderForValue) { + if (seenPerReplicaBuilder_ == null) { + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.set(index, builderForValue.build()); + onChanged(); + } else { + seenPerReplicaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder addSeenPerReplica( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen value) { + if (seenPerReplicaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.add(value); + onChanged(); + } else { + seenPerReplicaBuilder_.addMessage(value); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder addSeenPerReplica( + int index, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen value) { + if (seenPerReplicaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.add(index, value); + onChanged(); + } else { + seenPerReplicaBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder addSeenPerReplica( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen.Builder + builderForValue) { + if (seenPerReplicaBuilder_ == null) { + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.add(builderForValue.build()); + onChanged(); + } else { + seenPerReplicaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder addSeenPerReplica( + int index, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen.Builder + builderForValue) { + if (seenPerReplicaBuilder_ == null) { + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.add(index, builderForValue.build()); + onChanged(); + } else { + seenPerReplicaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder addAllSeenPerReplica( + java.lang.Iterable< + ? extends + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .Seen> + values) { + if (seenPerReplicaBuilder_ == null) { + ensureSeenPerReplicaIsMutable(); + akka.protobufv3.internal.AbstractMessageLite.Builder.addAll(values, seenPerReplica_); + onChanged(); + } else { + seenPerReplicaBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder clearSeenPerReplica() { + if (seenPerReplicaBuilder_ == null) { + seenPerReplica_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + seenPerReplicaBuilder_.clear(); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public Builder removeSeenPerReplica(int index) { + if (seenPerReplicaBuilder_ == null) { + ensureSeenPerReplicaIsMutable(); + seenPerReplica_.remove(index); + onChanged(); + } else { + seenPerReplicaBuilder_.remove(index); + } + return this; + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder + getSeenPerReplicaBuilder(int index) { + return getSeenPerReplicaFieldBuilder().getBuilder(index); + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder + getSeenPerReplicaOrBuilder(int index) { + if (seenPerReplicaBuilder_ == null) { + return seenPerReplica_.get(index); + } else { + return seenPerReplicaBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public java.util.List< + ? extends + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder> + getSeenPerReplicaOrBuilderList() { + if (seenPerReplicaBuilder_ != null) { + return seenPerReplicaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(seenPerReplica_); + } + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder + addSeenPerReplicaBuilder() { + return getSeenPerReplicaFieldBuilder() + .addBuilder( + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .getDefaultInstance()); + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder + addSeenPerReplicaBuilder(int index) { + return getSeenPerReplicaFieldBuilder() + .addBuilder( + index, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .getDefaultInstance()); + } + /** repeated .ReplicatedSnapshotMetadata.Seen seenPerReplica = 2; */ + public java.util.List< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder> + getSeenPerReplicaBuilderList() { + return getSeenPerReplicaFieldBuilder().getBuilderList(); + } + + private akka.protobufv3.internal.RepeatedFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder> + getSeenPerReplicaFieldBuilder() { + if (seenPerReplicaBuilder_ == null) { + seenPerReplicaBuilder_ = + new akka.protobufv3.internal.RepeatedFieldBuilderV3< + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata.Seen + .Builder, + akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + .SeenOrBuilder>( + seenPerReplica_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + seenPerReplica_ = null; + } + return seenPerReplicaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final akka.protobufv3.internal.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplicatedSnapshotMetadata) + } + + // @@protoc_insertion_point(class_scope:ReplicatedSnapshotMetadata) + private static final akka.persistence.typed.serialization.ActiveActive + .ReplicatedSnapshotMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata(); + } + + public static akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final akka.protobufv3.internal.Parser PARSER = + new akka.protobufv3.internal.AbstractParser() { + @java.lang.Override + public ReplicatedSnapshotMetadata parsePartialFrom( + akka.protobufv3.internal.CodedInputStream input, + akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry) + throws akka.protobufv3.internal.InvalidProtocolBufferException { + return new ReplicatedSnapshotMetadata(input, extensionRegistry); + } + }; + + public static akka.protobufv3.internal.Parser parser() { + return PARSER; + } + + @java.lang.Override + public akka.protobufv3.internal.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public akka.persistence.typed.serialization.ActiveActive.ReplicatedSnapshotMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -6569,6 +9692,18 @@ public final class Crdts { internal_static_VersionVector_Entry_descriptor; private static final akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable internal_static_VersionVector_Entry_fieldAccessorTable; + private static final akka.protobufv3.internal.Descriptors.Descriptor + internal_static_ReplicatedEventMetadata_descriptor; + private static final akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internal_static_ReplicatedEventMetadata_fieldAccessorTable; + private static final akka.protobufv3.internal.Descriptors.Descriptor + internal_static_ReplicatedSnapshotMetadata_descriptor; + private static final akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internal_static_ReplicatedSnapshotMetadata_fieldAccessorTable; + private static final akka.protobufv3.internal.Descriptors.Descriptor + internal_static_ReplicatedSnapshotMetadata_Seen_descriptor; + private static final akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable + internal_static_ReplicatedSnapshotMetadata_Seen_fieldAccessorTable; public static akka.protobufv3.internal.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -6578,22 +9713,30 @@ public final class Crdts { static { java.lang.String[] descriptorData = { - "\n\013Crdts.proto\032\026ContainerFormats.proto\"\030\n" - + "\007Counter\022\r\n\005value\030\001 \002(\014\"\036\n\rCounterUpdate" - + "\022\r\n\005delta\030\001 \002(\014\"\304\001\n\005ORSet\022\020\n\010originDc\030\001 " - + "\002(\t\022\037\n\007vvector\030\002 \002(\0132\016.VersionVector\022\034\n\004" - + "dots\030\003 \003(\0132\016.VersionVector\022\026\n\016stringElem" - + "ents\030\004 \003(\t\022\027\n\013intElements\030\005 \003(\021B\002\020\001\022\030\n\014l" - + "ongElements\030\006 \003(\022B\002\020\001\022\037\n\rotherElements\030\007" - + " \003(\0132\010.Payload\"\201\001\n\017ORSetDeltaGroup\022\'\n\007en" - + "tries\030\001 \003(\0132\026.ORSetDeltaGroup.Entry\032E\n\005E" - + "ntry\022 \n\toperation\030\001 \002(\0162\r.ORSetDeltaOp\022\032" - + "\n\nunderlying\030\002 \002(\0132\006.ORSet\"]\n\rVersionVec" - + "tor\022%\n\007entries\030\001 \003(\0132\024.VersionVector.Ent" - + "ry\032%\n\005Entry\022\013\n\003key\030\001 \002(\t\022\017\n\007version\030\002 \002(" - + "\003*-\n\014ORSetDeltaOp\022\007\n\003Add\020\000\022\n\n\006Remove\020\001\022\010" - + "\n\004Full\020\002B(\n$akka.persistence.typed.seria" - + "lizationH\001" + "\n\022ActiveActive.proto\032\026ContainerFormats.p" + + "roto\"\030\n\007Counter\022\r\n\005value\030\001 \002(\014\"\036\n\rCounte" + + "rUpdate\022\r\n\005delta\030\001 \002(\014\"\304\001\n\005ORSet\022\020\n\010orig" + + "inDc\030\001 \002(\t\022\037\n\007vvector\030\002 \002(\0132\016.VersionVec" + + "tor\022\034\n\004dots\030\003 \003(\0132\016.VersionVector\022\026\n\016str" + + "ingElements\030\004 \003(\t\022\027\n\013intElements\030\005 \003(\021B\002" + + "\020\001\022\030\n\014longElements\030\006 \003(\022B\002\020\001\022\037\n\rotherEle" + + "ments\030\007 \003(\0132\010.Payload\"\201\001\n\017ORSetDeltaGrou" + + "p\022\'\n\007entries\030\001 \003(\0132\026.ORSetDeltaGroup.Ent" + + "ry\032E\n\005Entry\022 \n\toperation\030\001 \002(\0162\r.ORSetDe" + + "ltaOp\022\032\n\nunderlying\030\002 \002(\0132\006.ORSet\"]\n\rVer" + + "sionVector\022%\n\007entries\030\001 \003(\0132\024.VersionVec" + + "tor.Entry\032%\n\005Entry\022\013\n\003key\030\001 \002(\t\022\017\n\007versi" + + "on\030\002 \002(\003\"\205\001\n\027ReplicatedEventMetadata\022\025\n\r" + + "originReplica\030\001 \002(\t\022\030\n\020originSequenceNr\030" + + "\002 \002(\003\022%\n\rversionVector\030\003 \002(\0132\016.VersionVe" + + "ctor\022\022\n\nconcurrent\030\004 \002(\010\"\246\001\n\032ReplicatedS" + + "napshotMetadata\022\037\n\007version\030\001 \002(\0132\016.Versi" + + "onVector\0228\n\016seenPerReplica\030\002 \003(\0132 .Repli" + + "catedSnapshotMetadata.Seen\032-\n\004Seen\022\021\n\tre" + + "plicaId\030\001 \002(\t\022\022\n\nsequenceNr\030\002 \002(\003*-\n\014ORS" + + "etDeltaOp\022\007\n\003Add\020\000\022\n\n\006Remove\020\001\022\010\n\004Full\020\002" + + "B(\n$akka.persistence.typed.serialization" + + "H\001" }; descriptor = akka.protobufv3.internal.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -6658,6 +9801,29 @@ public final class Crdts { new java.lang.String[] { "Key", "Version", }); + internal_static_ReplicatedEventMetadata_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_ReplicatedEventMetadata_fieldAccessorTable = + new akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplicatedEventMetadata_descriptor, + new java.lang.String[] { + "OriginReplica", "OriginSequenceNr", "VersionVector", "Concurrent", + }); + internal_static_ReplicatedSnapshotMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_ReplicatedSnapshotMetadata_fieldAccessorTable = + new akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplicatedSnapshotMetadata_descriptor, + new java.lang.String[] { + "Version", "SeenPerReplica", + }); + internal_static_ReplicatedSnapshotMetadata_Seen_descriptor = + internal_static_ReplicatedSnapshotMetadata_descriptor.getNestedTypes().get(0); + internal_static_ReplicatedSnapshotMetadata_Seen_fieldAccessorTable = + new akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplicatedSnapshotMetadata_Seen_descriptor, + new java.lang.String[] { + "ReplicaId", "SequenceNr", + }); akka.remote.ContainerFormats.getDescriptor(); } diff --git a/akka-persistence-typed/src/main/protobuf/Crdts.proto b/akka-persistence-typed/src/main/protobuf/ActiveActive.proto similarity index 71% rename from akka-persistence-typed/src/main/protobuf/Crdts.proto rename to akka-persistence-typed/src/main/protobuf/ActiveActive.proto index cb95464f1c..ab6f433448 100644 --- a/akka-persistence-typed/src/main/protobuf/Crdts.proto +++ b/akka-persistence-typed/src/main/protobuf/ActiveActive.proto @@ -48,3 +48,19 @@ message VersionVector { } repeated Entry entries = 1; } + +message ReplicatedEventMetadata { + required string originReplica = 1; + required int64 originSequenceNr = 2; + required VersionVector versionVector = 3; + required bool concurrent = 4; +} + +message ReplicatedSnapshotMetadata { + message Seen { + required string replicaId = 1; + required int64 sequenceNr = 2; + } + required VersionVector version = 1; + repeated Seen seenPerReplica = 2; +} \ No newline at end of file diff --git a/akka-persistence-typed/src/main/resources/reference.conf b/akka-persistence-typed/src/main/resources/reference.conf index 1d3b90a8ec..3e1c20d1b3 100644 --- a/akka-persistence-typed/src/main/resources/reference.conf +++ b/akka-persistence-typed/src/main/resources/reference.conf @@ -1,15 +1,17 @@ akka.actor { - serialization-identifiers."akka.persistence.typed.serialization.CrdtSerializer" = 40 + serialization-identifiers."akka.persistence.typed.serialization.ActiveActiveSerializer" = 40 - serializers.replicated-crdts = "akka.persistence.typed.serialization.CrdtSerializer" + serializers.active-active = "akka.persistence.typed.serialization.ActiveActiveSerializer" serialization-bindings { - "akka.persistence.typed.crdt.Counter" = replicated-crdts - "akka.persistence.typed.crdt.Counter$Updated" = replicated-crdts - "akka.persistence.typed.internal.VersionVector" = replicated-crdts - "akka.persistence.typed.crdt.ORSet" = replicated-crdts - "akka.persistence.typed.crdt.ORSet$DeltaOp" = replicated-crdts + "akka.persistence.typed.internal.VersionVector" = active-active + "akka.persistence.typed.crdt.Counter" = active-active + "akka.persistence.typed.crdt.Counter$Updated" = active-active + "akka.persistence.typed.crdt.ORSet" = active-active + "akka.persistence.typed.crdt.ORSet$DeltaOp" = active-active + "akka.persistence.typed.internal.ReplicatedEventMetadata" = active-active + "akka.persistence.typed.internal.ReplicatedSnapshotMetadata" = active-active } } diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/EventSourcedBehaviorImpl.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/EventSourcedBehaviorImpl.scala index 27e47222e4..521ba48cfb 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/EventSourcedBehaviorImpl.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/EventSourcedBehaviorImpl.scala @@ -271,7 +271,16 @@ private[akka] final case class EventSourcedBehaviorImpl[Command, Event, State]( } -// FIXME serializer +object ReplicatedEventMetadata { + + /** + * For a journal supporting active active needing to add test coverage, use this instance as metadata and defer + * to the built in serializer for serialization format + */ + @ApiMayChange + def instanceForJournalTest: Any = ReplicatedEventMetadata(ReplicaId("DC-A"), 1L, VersionVector.empty + "DC-A", true) +} + /** * @param originReplica Where the event originally was created * @param originSequenceNr The original sequenceNr in the origin DC @@ -279,15 +288,28 @@ private[akka] final case class EventSourcedBehaviorImpl[Command, Event, State]( * at each location as they are received at different times */ @InternalApi -private[akka] final case class ReplicatedEventMetaData( +private[akka] final case class ReplicatedEventMetadata( originReplica: ReplicaId, originSequenceNr: Long, version: VersionVector, concurrent: Boolean) // whether when the event handler was executed the event was concurrent -// FIXME serializer +object ReplicatedSnapshotMetadata { + + /** + * For a snapshot store supporting active active needing to add test coverage, use this instance as metadata and defer + * to the built in serializer for serialization format + */ + @ApiMayChange + def instanceForSnapshotStoreTest: Any = + ReplicatedSnapshotMetadata( + VersionVector.empty + "DC-B" + "DC-A", + Map(ReplicaId("DC-A") -> 1L, ReplicaId("DC-B") -> 1L)) + +} + @InternalApi -private[akka] final case class ReplicatedSnapshotMetaData(version: VersionVector, seenPerReplica: Map[ReplicaId, Long]) +private[akka] final case class ReplicatedSnapshotMetadata(version: VersionVector, seenPerReplica: Map[ReplicaId, Long]) /** * An event replicated from a different replica. diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ExternalInteractions.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ExternalInteractions.scala index 510099c1ed..04ae7984b2 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ExternalInteractions.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ExternalInteractions.scala @@ -29,7 +29,7 @@ private[akka] object JournalInteractions { final case class EventToPersist( adaptedEvent: EventOrTaggedOrReplicated, manifest: String, - metadata: Option[ReplicatedEventMetaData]) + metadata: Option[ReplicatedEventMetadata]) } @@ -193,7 +193,7 @@ private[akka] trait SnapshotInteractions[C, E, S] { else { val meta = setup.activeActive match { case Some(_) => - val m = ReplicatedSnapshotMetaData(state.version, state.seenPerReplica) + val m = ReplicatedSnapshotMetadata(state.version, state.seenPerReplica) Some(m) case None => None } diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingEvents.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingEvents.scala index aa7dd1c1d1..e33300a277 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingEvents.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingEvents.scala @@ -123,11 +123,11 @@ private[akka] final class ReplayingEvents[C, E, S]( eventForErrorReporting = OptionVal.Some(event) state = state.copy(seqNr = repr.sequenceNr) - val aaMetaAndSelfReplica: Option[(ReplicatedEventMetaData, ReplicaId, ActiveActive)] = + val aaMetaAndSelfReplica: Option[(ReplicatedEventMetadata, ReplicaId, ActiveActive)] = setup.activeActive match { case Some(aa) => val meta = repr.metadata match { - case Some(m) => m.asInstanceOf[ReplicatedEventMetaData] + case Some(m) => m.asInstanceOf[ReplicatedEventMetadata] case None => throw new IllegalStateException( s"Active active enabled but existing event has no metadata. Migration isn't supported yet.") diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingSnapshot.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingSnapshot.scala index d4c6481dda..1ead8a0af6 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingSnapshot.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/ReplayingSnapshot.scala @@ -152,7 +152,7 @@ private[akka] class ReplayingSnapshot[C, E, S](override val setup: BehaviorSetup state = setup.snapshotAdapter.fromJournal(snapshot) setup.context.log.debug("Loaded snapshot with metadata {}", metadata) metadata.metadata match { - case Some(rm: ReplicatedSnapshotMetaData) => (metadata.sequenceNr, rm.seenPerReplica, rm.version) + case Some(rm: ReplicatedSnapshotMetadata) => (metadata.sequenceNr, rm.seenPerReplica, rm.version) case _ => (metadata.sequenceNr, Map.empty.withDefaultValue(0L), VersionVector.empty) } case None => (0L, Map.empty.withDefaultValue(0L), VersionVector.empty) diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/Running.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/Running.scala index 7ec2bf42d0..4eeec5bdc1 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/Running.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/internal/Running.scala @@ -144,7 +144,16 @@ private[akka] object Running { .eventsByPersistenceId(pid.id, seqNr + 1, Long.MaxValue) // from each replica, only get the events that originated there, this prevents most of the event filtering // the downside is that events can't be received via other replicas in the event of an uneven network partition - .filter(_.eventMetadata.get.asInstanceOf[ReplicatedEventMetaData].originReplica == replicaId) + .filter(event => + event.eventMetadata match { + case Some(replicatedMeta: ReplicatedEventMetadata) => replicatedMeta.originReplica == replicaId + case _ => + throw new IllegalArgumentException( + s"Replication stream from replica ${replicaId} for ${setup.persistenceId} contains event " + + s"(sequence nr ${event.sequenceNr}) without replication metadata. " + + s"Is the persistence id used by a regular event sourced actor there or the journal for that replica (${queryPluginId}) " + + "used that does not support active active?") + }) .viaMat(new FastForwardingFilter)(Keep.right) .mapMaterializedValue(streamControl => controlRef.set(streamControl)) } @@ -152,7 +161,7 @@ private[akka] object Running { .via(ActorFlow .ask[EventEnvelope, ReplicatedEventEnvelope[E], ReplicatedEventAck.type](ref) { (eventEnvelope, replyTo) => // Need to handle this not being available migration from non-active-active is supported - val meta = eventEnvelope.eventMetadata.get.asInstanceOf[ReplicatedEventMetaData] + val meta = eventEnvelope.eventMetadata.get.asInstanceOf[ReplicatedEventMetadata] val re = ReplicatedEvent[E]( eventEnvelope.event.asInstanceOf[E], @@ -412,7 +421,7 @@ private[akka] object Running { event.event, "", OptionVal.Some( - ReplicatedEventMetaData(event.originReplica, event.originSequenceNr, updatedVersion, isConcurrent))) + ReplicatedEventMetadata(event.originReplica, event.originSequenceNr, updatedVersion, isConcurrent))) val shouldSnapshotAfterPersist = setup.shouldSnapshot(newState2.state, event.event, newState2.seqNr) // FIXME validate this is the correct sequence nr from that replica https://github.com/akka/akka/issues/29259 val updatedSeen = newState2.seenPerReplica.updated(event.originReplica, event.originSequenceNr) @@ -457,7 +466,7 @@ private[akka] object Running { eventToPersist, eventAdapterManifest, OptionVal.Some( - ReplicatedEventMetaData(aa.replicaId, _currentSequenceNumber, updatedVersion, concurrent = false))) + ReplicatedEventMetadata(aa.replicaId, _currentSequenceNumber, updatedVersion, concurrent = false))) .copy(version = updatedVersion) if (setup.log.isTraceEnabled()) @@ -485,10 +494,10 @@ private[akka] object Running { // also, ensure that there is an event handler for each single event _currentSequenceNumber = state.seqNr - val metadataTemplate: Option[ReplicatedEventMetaData] = setup.activeActive match { + val metadataTemplate: Option[ReplicatedEventMetadata] = setup.activeActive match { case Some(aa) => aa.setContext(recoveryRunning = false, aa.replicaId, concurrent = false) // local events are never concurrent - Some(ReplicatedEventMetaData(aa.replicaId, 0L, state.version, concurrent = false)) // we replace it with actual seqnr later + Some(ReplicatedEventMetadata(aa.replicaId, 0L, state.version, concurrent = false)) // we replace it with actual seqnr later case None => None } diff --git a/akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/CrdtSerializer.scala b/akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/ActiveActiveSerializer.scala similarity index 63% rename from akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/CrdtSerializer.scala rename to akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/ActiveActiveSerializer.scala index ab193b6f85..28aa020c4e 100644 --- a/akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/CrdtSerializer.scala +++ b/akka-persistence-typed/src/main/scala/akka/persistence/typed/serialization/ActiveActiveSerializer.scala @@ -10,7 +10,10 @@ import java.{ lang => jl } import akka.actor.ExtendedActorSystem import akka.annotation.InternalApi +import akka.persistence.typed.ReplicaId import akka.persistence.typed.crdt.{ Counter, ORSet } +import akka.persistence.typed.internal.ReplicatedEventMetadata +import akka.persistence.typed.internal.ReplicatedSnapshotMetadata import akka.persistence.typed.internal.VersionVector import akka.protobufv3.internal.ByteString import akka.remote.ContainerFormats.Payload @@ -21,7 +24,7 @@ import scala.annotation.tailrec import scala.collection.JavaConverters._ import scala.collection.immutable.TreeMap -object CrdtSerializer { +object ActiveActiveSerializer { object Comparator extends Comparator[Payload] { override def compare(a: Payload, b: Payload): Int = { val aByteString = a.getEnclosedMessage @@ -50,7 +53,7 @@ object CrdtSerializer { /** * INTERNAL API */ -@InternalApi private[akka] final class CrdtSerializer(val system: ExtendedActorSystem) +@InternalApi private[akka] final class ActiveActiveSerializer(val system: ExtendedActorSystem) extends SerializerWithStringManifest with BaseSerializer { @@ -67,6 +70,9 @@ object CrdtSerializer { private val VersionVectorManifest = "DA" + private val ReplicatedEventMetadataManifest = "RE" + private val ReplicatedSnapshotMetadataManifest = "RS" + def manifest(o: AnyRef) = o match { case _: ORSet[_] => ORSetManifest case _: ORSet.AddDeltaOp[_] => ORSetAddManifest @@ -78,11 +84,19 @@ object CrdtSerializer { case _: Counter.Updated => CrdtCounterUpdatedManifest case _: VersionVector => VersionVectorManifest + + case _: ReplicatedEventMetadata => ReplicatedEventMetadataManifest + case _: ReplicatedSnapshotMetadata => ReplicatedSnapshotMetadataManifest case _ => throw new IllegalArgumentException(s"Can't serialize object of type ${o.getClass} in [${getClass.getName}]") } def toBinary(o: AnyRef) = o match { + case m: ReplicatedEventMetadata => replicatedEventMetadataToProtoByteArray(m) + case m: ReplicatedSnapshotMetadata => replicatedSnapshotMetadataToByteArray(m) + + case m: VersionVector => versionVectorToProto(m).toByteArray + case m: ORSet[_] => orsetToProto(m).toByteArray case m: ORSet.AddDeltaOp[_] => orsetToProto(m.underlying).toByteArray case m: ORSet.RemoveDeltaOp[_] => orsetToProto(m.underlying).toByteArray @@ -91,12 +105,18 @@ object CrdtSerializer { case m: Counter => counterToProtoByteArray(m) case m: Counter.Updated => counterUpdatedToProtoBufByteArray(m) - case m: VersionVector => versionVectorToProto(m).toByteArray + case _ => throw new IllegalArgumentException(s"Can't serialize object of type ${o.getClass}") } def fromBinary(bytes: Array[Byte], manifest: String) = manifest match { + + case ReplicatedEventMetadataManifest => replicatedEventMetadataFromBinary(bytes) + case ReplicatedSnapshotMetadataManifest => replicatedSnapshotMetadataFromBinary(bytes) + + case VersionVectorManifest => versionVectorFromBinary(bytes) + case ORSetManifest => orsetFromBinary(bytes) case ORSetAddManifest => orsetAddFromBinary(bytes) case ORSetRemoveManifest => orsetRemoveFromBinary(bytes) @@ -106,29 +126,29 @@ object CrdtSerializer { case CrdtCounterManifest => counterFromBinary(bytes) case CrdtCounterUpdatedManifest => counterUpdatedFromBinary(bytes) - case VersionVectorManifest => versionVectorFromBinary(bytes) case _ => throw new NotSerializableException( s"Unimplemented deserialization of message with manifest [$manifest] in [${getClass.getName}]") } def counterFromBinary(bytes: Array[Byte]): Counter = - Counter(BigInt(Crdts.Counter.parseFrom(bytes).getValue.toByteArray)) + Counter(BigInt(ActiveActive.Counter.parseFrom(bytes).getValue.toByteArray)) def counterUpdatedFromBinary(bytes: Array[Byte]): Counter.Updated = - Counter.Updated(BigInt(Crdts.CounterUpdate.parseFrom(bytes).getDelta.toByteArray)) + Counter.Updated(BigInt(ActiveActive.CounterUpdate.parseFrom(bytes).getDelta.toByteArray)) def counterToProtoByteArray(counter: Counter): Array[Byte] = - Crdts.Counter.newBuilder().setValue(ByteString.copyFrom(counter.value.toByteArray)).build().toByteArray + ActiveActive.Counter.newBuilder().setValue(ByteString.copyFrom(counter.value.toByteArray)).build().toByteArray def counterUpdatedToProtoBufByteArray(updated: Counter.Updated): Array[Byte] = - Crdts.CounterUpdate.newBuilder().setDelta(ByteString.copyFrom(updated.delta.toByteArray)).build().toByteArray + ActiveActive.CounterUpdate.newBuilder().setDelta(ByteString.copyFrom(updated.delta.toByteArray)).build().toByteArray - def orsetToProto(orset: ORSet[_]): Crdts.ORSet = + def orsetToProto(orset: ORSet[_]): ActiveActive.ORSet = orsetToProtoImpl(orset.asInstanceOf[ORSet[Any]]) - private def orsetToProtoImpl(orset: ORSet[Any]): Crdts.ORSet = { - val b = Crdts.ORSet.newBuilder().setOriginDc(orset.originReplica).setVvector(versionVectorToProto(orset.vvector)) + private def orsetToProtoImpl(orset: ORSet[Any]): ActiveActive.ORSet = { + val b = + ActiveActive.ORSet.newBuilder().setOriginDc(orset.originReplica).setVvector(versionVectorToProto(orset.vvector)) // using java collections and sorting for performance (avoid conversions) val stringElements = new ArrayList[String] val intElements = new ArrayList[Integer] @@ -174,7 +194,7 @@ object CrdtSerializer { addDots(longElements) } if (!otherElements.isEmpty) { - Collections.sort(otherElements, CrdtSerializer.Comparator) + Collections.sort(otherElements, ActiveActiveSerializer.Comparator) b.addAllOtherElements(otherElements) addDots(otherElements) } @@ -182,31 +202,55 @@ object CrdtSerializer { b.build() } + def replicatedEventMetadataToProtoByteArray(rem: ReplicatedEventMetadata): Array[Byte] = { + ActiveActive.ReplicatedEventMetadata + .newBuilder() + .setOriginSequenceNr(rem.originSequenceNr) + .setConcurrent(rem.concurrent) + .setOriginReplica(rem.originReplica.id) + .setVersionVector(versionVectorToProto(rem.version)) + .build() + .toByteArray + } + + def replicatedSnapshotMetadataToByteArray(rsm: ReplicatedSnapshotMetadata): Array[Byte] = { + ActiveActive.ReplicatedSnapshotMetadata + .newBuilder() + .setVersion(versionVectorToProto(rsm.version)) + .addAllSeenPerReplica(rsm.seenPerReplica.map(seenToProto).asJava) + .build() + .toByteArray + } + + def seenToProto(t: (ReplicaId, Long)): ActiveActive.ReplicatedSnapshotMetadata.Seen = { + ActiveActive.ReplicatedSnapshotMetadata.Seen.newBuilder().setReplicaId(t._1.id).setSequenceNr(t._2).build() + } + def orsetFromBinary(bytes: Array[Byte]): ORSet[Any] = - orsetFromProto(Crdts.ORSet.parseFrom(bytes)) + orsetFromProto(ActiveActive.ORSet.parseFrom(bytes)) private def orsetAddFromBinary(bytes: Array[Byte]): ORSet.AddDeltaOp[Any] = - new ORSet.AddDeltaOp(orsetFromProto(Crdts.ORSet.parseFrom(bytes))) + new ORSet.AddDeltaOp(orsetFromProto(ActiveActive.ORSet.parseFrom(bytes))) private def orsetRemoveFromBinary(bytes: Array[Byte]): ORSet.RemoveDeltaOp[Any] = - new ORSet.RemoveDeltaOp(orsetFromProto(Crdts.ORSet.parseFrom(bytes))) + new ORSet.RemoveDeltaOp(orsetFromProto(ActiveActive.ORSet.parseFrom(bytes))) private def orsetFullFromBinary(bytes: Array[Byte]): ORSet.FullStateDeltaOp[Any] = - new ORSet.FullStateDeltaOp(orsetFromProto(Crdts.ORSet.parseFrom(bytes))) + new ORSet.FullStateDeltaOp(orsetFromProto(ActiveActive.ORSet.parseFrom(bytes))) - private def orsetDeltaGroupToProto(deltaGroup: ORSet.DeltaGroup[_]): Crdts.ORSetDeltaGroup = { - def createEntry(opType: Crdts.ORSetDeltaOp, u: ORSet[_]) = { - Crdts.ORSetDeltaGroup.Entry.newBuilder().setOperation(opType).setUnderlying(orsetToProto(u)) + private def orsetDeltaGroupToProto(deltaGroup: ORSet.DeltaGroup[_]): ActiveActive.ORSetDeltaGroup = { + def createEntry(opType: ActiveActive.ORSetDeltaOp, u: ORSet[_]) = { + ActiveActive.ORSetDeltaGroup.Entry.newBuilder().setOperation(opType).setUnderlying(orsetToProto(u)) } - val b = Crdts.ORSetDeltaGroup.newBuilder() + val b = ActiveActive.ORSetDeltaGroup.newBuilder() deltaGroup.ops.foreach { case ORSet.AddDeltaOp(u) => - b.addEntries(createEntry(Crdts.ORSetDeltaOp.Add, u)) + b.addEntries(createEntry(ActiveActive.ORSetDeltaOp.Add, u)) case ORSet.RemoveDeltaOp(u) => - b.addEntries(createEntry(Crdts.ORSetDeltaOp.Remove, u)) + b.addEntries(createEntry(ActiveActive.ORSetDeltaOp.Remove, u)) case ORSet.FullStateDeltaOp(u) => - b.addEntries(createEntry(Crdts.ORSetDeltaOp.Full, u)) + b.addEntries(createEntry(ActiveActive.ORSetDeltaOp.Full, u)) case ORSet.DeltaGroup(_) => throw new IllegalArgumentException("ORSet.DeltaGroup should not be nested") } @@ -214,14 +258,14 @@ object CrdtSerializer { } private def orsetDeltaGroupFromBinary(bytes: Array[Byte]): ORSet.DeltaGroup[Any] = { - val deltaGroup = Crdts.ORSetDeltaGroup.parseFrom(bytes) + val deltaGroup = ActiveActive.ORSetDeltaGroup.parseFrom(bytes) val ops: Vector[ORSet.DeltaOp] = deltaGroup.getEntriesList.asScala.map { entry => - if (entry.getOperation == Crdts.ORSetDeltaOp.Add) + if (entry.getOperation == ActiveActive.ORSetDeltaOp.Add) ORSet.AddDeltaOp(orsetFromProto(entry.getUnderlying)) - else if (entry.getOperation == Crdts.ORSetDeltaOp.Remove) + else if (entry.getOperation == ActiveActive.ORSetDeltaOp.Remove) ORSet.RemoveDeltaOp(orsetFromProto(entry.getUnderlying)) - else if (entry.getOperation == Crdts.ORSetDeltaOp.Full) + else if (entry.getOperation == ActiveActive.ORSetDeltaOp.Full) ORSet.FullStateDeltaOp(orsetFromProto(entry.getUnderlying)) else throw new NotSerializableException(s"Unknow ORSet delta operation ${entry.getOperation}") @@ -229,7 +273,7 @@ object CrdtSerializer { ORSet.DeltaGroup(ops) } - def orsetFromProto(orset: Crdts.ORSet): ORSet[Any] = { + def orsetFromProto(orset: ActiveActive.ORSet): ORSet[Any] = { val elements: Iterator[Any] = (orset.getStringElementsList.iterator.asScala ++ orset.getIntElementsList.iterator.asScala ++ @@ -242,18 +286,18 @@ object CrdtSerializer { new ORSet(orset.getOriginDc, elementsMap, vvector = versionVectorFromProto(orset.getVvector)) } - def versionVectorToProto(versionVector: VersionVector): Crdts.VersionVector = { - val b = Crdts.VersionVector.newBuilder() + def versionVectorToProto(versionVector: VersionVector): ActiveActive.VersionVector = { + val b = ActiveActive.VersionVector.newBuilder() versionVector.versionsIterator.foreach { - case (key, value) => b.addEntries(Crdts.VersionVector.Entry.newBuilder().setKey(key).setVersion(value)) + case (key, value) => b.addEntries(ActiveActive.VersionVector.Entry.newBuilder().setKey(key).setVersion(value)) } b.build() } def versionVectorFromBinary(bytes: Array[Byte]): VersionVector = - versionVectorFromProto(Crdts.VersionVector.parseFrom(bytes)) + versionVectorFromProto(ActiveActive.VersionVector.parseFrom(bytes)) - def versionVectorFromProto(versionVector: Crdts.VersionVector): VersionVector = { + def versionVectorFromProto(versionVector: ActiveActive.VersionVector): VersionVector = { val entries = versionVector.getEntriesList if (entries.isEmpty) VersionVector.empty @@ -266,4 +310,20 @@ object CrdtSerializer { } } + def replicatedEventMetadataFromBinary(bytes: Array[Byte]): ReplicatedEventMetadata = { + val parsed = ActiveActive.ReplicatedEventMetadata.parseFrom(bytes) + ReplicatedEventMetadata( + ReplicaId(parsed.getOriginReplica), + parsed.getOriginSequenceNr, + versionVectorFromProto(parsed.getVersionVector), + parsed.getConcurrent) + } + + def replicatedSnapshotMetadataFromBinary(bytes: Array[Byte]): ReplicatedSnapshotMetadata = { + val parsed = ActiveActive.ReplicatedSnapshotMetadata.parseFrom(bytes) + ReplicatedSnapshotMetadata( + versionVectorFromProto(parsed.getVersion), + parsed.getSeenPerReplicaList.asScala.map(seen => ReplicaId(seen.getReplicaId) -> seen.getSequenceNr).toMap) + } + } diff --git a/akka-persistence-typed/src/test/scala/akka/persistence/typed/ActiveActiveSerializationSpec.scala b/akka-persistence-typed/src/test/scala/akka/persistence/typed/ActiveActiveSerializationSpec.scala new file mode 100644 index 0000000000..84b4fb2991 --- /dev/null +++ b/akka-persistence-typed/src/test/scala/akka/persistence/typed/ActiveActiveSerializationSpec.scala @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2020 Lightbend Inc. + */ + +package akka.persistence.typed + +import akka.actor.testkit.typed.scaladsl.LogCapturing +import akka.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit +import akka.persistence.typed.crdt.Counter +import akka.persistence.typed.crdt.ORSet +import akka.persistence.typed.internal.ReplicatedEventMetadata +import akka.persistence.typed.internal.ReplicatedSnapshotMetadata +import akka.persistence.typed.internal.VersionVector +import org.scalatest.wordspec.AnyWordSpecLike + +class ActiveActiveSerializationSpec + extends ScalaTestWithActorTestKit(ClusterSingletonPersistenceSpec.config) + with AnyWordSpecLike + with LogCapturing { + + "The ActiveActive components that needs to be serializable" must { + + "be serializable" in { + serializationTestKit.verifySerialization( + ReplicatedEventMetadata(ReplicaId("DC-A"), 2L, VersionVector.empty.increment("DC-B"), true)) + + serializationTestKit.verifySerialization( + ReplicatedSnapshotMetadata( + VersionVector.empty.increment("DC-B"), + Map(ReplicaId("DC-A") -> 1L, ReplicaId("DC-B") -> 2L))) + + serializationTestKit.verifySerialization(Counter(BigInt(24))) + serializationTestKit.verifySerialization(Counter.Updated(BigInt(1))) + serializationTestKit.verifySerialization(ORSet(ReplicaId("DC-A"))) + serializationTestKit.verifySerialization(ORSet.AddDeltaOp(ORSet(ReplicaId("DC-A")))) + // FIXME DeltaGroup? + } + } + +} diff --git a/akka-persistence/src/main/scala/akka/persistence/SnapshotProtocol.scala b/akka-persistence/src/main/scala/akka/persistence/SnapshotProtocol.scala index c737aa21f8..75b9c38480 100644 --- a/akka-persistence/src/main/scala/akka/persistence/SnapshotProtocol.scala +++ b/akka-persistence/src/main/scala/akka/persistence/SnapshotProtocol.scala @@ -30,6 +30,9 @@ final class SnapshotMetadata( this(persistenceId, sequenceNr, 0L, meta) } + def withMetadata(metadata: Any): SnapshotMetadata = + new SnapshotMetadata(persistenceId, sequenceNr, timestamp, Some(metadata)) + // for bincompat, used to be a case class def copy( persistenceId: String = this.persistenceId, diff --git a/project/OSGi.scala b/project/OSGi.scala index 37c44093f9..ca3c9c9966 100644 --- a/project/OSGi.scala +++ b/project/OSGi.scala @@ -65,15 +65,14 @@ object OSGi { val protobuf = exports(Seq("akka.protobuf.*")) val protobufV3 = osgiSettings ++ Seq( - OsgiKeys.importPackage := Seq( - "!sun.misc", - scalaJava8CompatImport(), - scalaVersion(scalaImport).value, - configImport(), - "*"), - OsgiKeys.exportPackage := Seq("akka.protobufv3.internal.*"), - OsgiKeys.privatePackage := Seq("google.protobuf.*") - ) + OsgiKeys.importPackage := Seq( + "!sun.misc", + scalaJava8CompatImport(), + scalaVersion(scalaImport).value, + configImport(), + "*"), + OsgiKeys.exportPackage := Seq("akka.protobufv3.internal.*"), + OsgiKeys.privatePackage := Seq("google.protobuf.*")) val jackson = exports(Seq("akka.serialization.jackson.*"))