diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 42d56172e35..1cbe87146a8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,89 @@ +#### 1.4.41 August 31 2022 #### +Akka.NET v1.4.41 is a minor release that contains some minor bug fix and throughput performance improvement for Akka.Remote + +* [Akka: Fix AddLogger in LoggingBus](https://github.com/akkadotnet/akka.net/issues/6028) + + Akka loggers are now loaded asynchronously by default. The `ActorSystem` will wait at most `akka.logger-startup-timeout` period long (5 seconds by default) for all loggers to report that they are ready before continuing the start-up process. + + A warning will be logged on each loggers that did not report within this grace period. These loggers will still be awaited upon inside a detached Task until either it is ready or the `ActorSystem` is shut down. + + These late loggers will not capture all log events until they are ready. If your logs are missing portion of the start-up events, check that the logger were loaded within this grace period. + +* [Akka: Log Exception cause inside Directive.Resume SupervisorStrategy warning log](https://github.com/akkadotnet/akka.net/issues/6070) +* [DData: Add "verbose-debug-logging" setting to suppress debug message spam](https://github.com/akkadotnet/akka.net/issues/6080) +* [Akka: Regenerate protobuf codes](https://github.com/akkadotnet/akka.net/issues/6087) + + All protobuf codes were re-generated, causing a significant improvement in message deserialization, increasing `Akka.Remote` throughput. + +__Before__ +``` ini +BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19041.1415 (2004/May2020Update/20H1) +AMD Ryzen 9 3900X, 1 CPU, 24 logical and 12 physical cores +.NET SDK=6.0.200 + [Host] : .NET 6.0.2 (6.0.222.6406), X64 RyuJIT + DefaultJob : .NET 6.0.2 (6.0.222.6406), X64 RyuJIT +``` +| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Allocated | +|----------------------- |-----------:|---------:|---------:|-------:|-------:|----------:| +| WritePayloadPdu | 1,669.6 ns | 21.10 ns | 19.74 ns | 0.2156 | - | 1,808 B | +| DecodePayloadPdu | 2,039.7 ns | 12.52 ns | 11.71 ns | 0.2156 | 0.0031 | 1,816 B | +| DecodePduOnly | 131.3 ns | 1.32 ns | 1.11 ns | 0.0563 | 0.0002 | 472 B | +| DecodeMessageOnly | 1,665.0 ns | 15.03 ns | 14.05 ns | 0.1406 | - | 1,184 B | +| DeserializePayloadOnly | 151.2 ns | 1.88 ns | 1.76 ns | 0.0199 | - | 168 B | + +__After__ +``` ini +BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19041.1415 (2004/May2020Update/20H1) +AMD Ryzen 9 3900X, 1 CPU, 24 logical and 12 physical cores +.NET SDK=6.0.200 + [Host] : .NET 6.0.2 (6.0.222.6406), X64 RyuJIT + DefaultJob : .NET 6.0.2 (6.0.222.6406), X64 RyuJIT +``` +| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Allocated | +|----------------------- |-----------:|---------:|---------:|-------:|-------:|----------:| +| WritePayloadPdu | 1,623.4 ns | 19.95 ns | 18.66 ns | 0.2219 | 0.0031 | 1,880 B | +| DecodePayloadPdu | 1,738.6 ns | 22.79 ns | 21.31 ns | 0.2250 | - | 1,888 B | +| DecodePduOnly | 175.1 ns | 2.31 ns | 1.93 ns | 0.0572 | - | 480 B | +| DecodeMessageOnly | 1,296.8 ns | 11.89 ns | 10.54 ns | 0.1469 | 0.0016 | 1,232 B | +| DeserializePayloadOnly | 143.6 ns | 1.59 ns | 1.33 ns | 0.0199 | 0.0002 | 168 B | + + +If you want to see the [full set of changes made in Akka.NET v1.4.41, click here](https://github.com/akkadotnet/akka.net/milestone/72). + +| COMMITS | LOC+ | LOC- | AUTHOR | +|---------|-------|------|---------------------| +| 4 | 13003 | 1150 | Gregorius Soedharmo | +| 1 | 3 | 4 | Aaron Stannard | + +#### 1.4.40 July 19 2022 #### +Akka.NET v1.4.40 is a minor release that contains a bug fix for DotNetty SSL support. + +* [Akka.Remote: SSL Configuration Fails even EnbleSsl property is set to false](https://github.com/akkadotnet/akka.net/issues/6043) +* [Akka.Streams: Add IAsyncEnumerable Source](https://github.com/akkadotnet/akka.net/issues/6047) + +If you want to see the [full set of changes made in Akka.NET v1.4.40, click here](https://github.com/akkadotnet/akka.net/milestone/71). + +| COMMITS | LOC+ | LOC- | AUTHOR | +|---------|-------|------|---------------------| +| 8 | 544 | 64 | Gregorius Soedharmo | +| 1 | 669 | 3 | Aaron Stannard | +| 1 | 123 | 26 | Ebere Abanonu | +| 1 | 101 | 3 | aminchenkov | + +#### 1.4.39 June 1 2022 #### +Akka.NET v1.4.39 is a minor release that contains some very important bug fixes for Akka.Remote and Akka.Cluster users. + +* [Akka.Cluster: Error in `SplitBrainResolver.PreStart` when using `ChannelTaskScheduler` for internal-dispatcher](https://github.com/akkadotnet/akka.net/issues/5962) +* [Akka.Cluster.Sharding: make PersistentShardCoordinator a tolerant reader](https://github.com/akkadotnet/akka.net/issues/5604) - Akka.Persistence-backed sharding is more lenient when recovering state. +* [Akka.Remote: Trap all `Exception`s thrown while trying to dispatch messages in `Akka.Remote.EndpointReader`](https://github.com/akkadotnet/akka.net/pull/5971) - any kind of exception thrown during deserialization can no longer force a disassociation to occur in Akka.Remote. + +If you want to see the [full set of changes made in Akka.NET v1.4.39, click here](https://github.com/akkadotnet/akka.net/milestone/70). + +| COMMITS | LOC+ | LOC- | AUTHOR | +| --- | --- | --- | --- | +| 3 | 204 | 99 | Aaron Stannard | +| 1 | 1 | 13 | Gregorius Soedharmo | + #### 1.4.38 May 6 2022 #### Akka.NET v1.4.38 is a minor release that contains some minor bug fixes. diff --git a/build.ps1 b/build.ps1 index d5a61e2dcec..a0c44742283 100644 --- a/build.ps1 +++ b/build.ps1 @@ -32,7 +32,7 @@ Param( $FakeVersion = "4.63.0" $NugetVersion = "5.8.0"; $NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe" -$ProtobufVersion = "3.13.0" +$ProtobufVersion = "3.21.5" $DocfxVersion = "2.58.9" $IncrementalistVersion = "0.6.0"; diff --git a/src/Akka.sln b/src/Akka.sln index a06864509d8..92c600e4c62 100644 --- a/src/Akka.sln +++ b/src/Akka.sln @@ -86,6 +86,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ..\.gitignore = ..\.gitignore Akka.sln.DotSettings = Akka.sln.DotSettings NuGet.Config = NuGet.Config + ..\RELEASE_NOTES.md = ..\RELEASE_NOTES.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Akka.Remote.Tests.MultiNode", "core\Akka.Remote.Tests.MultiNode\Akka.Remote.Tests.MultiNode.csproj", "{C9105C76-B084-4DA1-9348-1C74A8F22F6B}" diff --git a/src/benchmark/Akka.Benchmarks/Configurations/Configs.cs b/src/benchmark/Akka.Benchmarks/Configurations/Configs.cs index 646a42cfc1f..31ee17a20d0 100644 --- a/src/benchmark/Akka.Benchmarks/Configurations/Configs.cs +++ b/src/benchmark/Akka.Benchmarks/Configurations/Configs.cs @@ -8,6 +8,7 @@ using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Exporters; +using BenchmarkDotNet.Loggers; namespace Akka.Benchmarks.Configurations { @@ -20,6 +21,7 @@ public MicroBenchmarkConfig() { this.Add(MemoryDiagnoser.Default); this.Add(MarkdownExporter.GitHub); + AddLogger(ConsoleLogger.Default); } } diff --git a/src/benchmark/Akka.Benchmarks/Remoting/AkkaPduCodecBenchmark.cs b/src/benchmark/Akka.Benchmarks/Remoting/AkkaPduCodecBenchmark.cs new file mode 100644 index 00000000000..058fe1d1551 --- /dev/null +++ b/src/benchmark/Akka.Benchmarks/Remoting/AkkaPduCodecBenchmark.cs @@ -0,0 +1,194 @@ +// //----------------------------------------------------------------------- +// // +// // Copyright (C) 2009-2022 Lightbend Inc. +// // Copyright (C) 2013-2022 .NET Foundation +// // +// //----------------------------------------------------------------------- + +using System; +using System.Threading; +using System.Threading.Tasks; +using Akka.Actor; +using Akka.Actor.Dsl; +using Akka.Benchmarks.Configurations; +using Akka.Configuration; +using Akka.Remote; +using Akka.Remote.Serialization; +using Akka.Remote.Transport; +using BenchmarkDotNet.Attributes; +using BenchmarkDotNet.Loggers; +using Google.Protobuf; + +namespace Akka.Benchmarks.Remoting +{ + [Config(typeof(MicroBenchmarkConfig))] + public class AkkaPduCodecBenchmark + { + public const int Operations = 10_000; + + private ExtendedActorSystem _sys1; + private ExtendedActorSystem _sys2; + private IRemoteActorRefProvider _rarp; + + private Config _config = @"akka.actor.provider = remote + akka.remote.dot-netty.tcp.port = 0"; + + private IActorRef _senderActorRef; + private IActorRef _localReceiveRef; + private RemoteActorRef _remoteReceiveRef; + private RemoteActorRef _remoteSenderRef; + + private Address _addr1; + private Address _addr2; + private AkkaPduProtobuffCodec _recvCodec; + private AkkaPduProtobuffCodec _sendCodec; + + /// + /// The message we're going to serialize + /// + private readonly object _message = "foobar"; + + private readonly Ack _lastAck = new Ack(-1); + + private ByteString _fullDecode; + private ByteString _pduDecoded; + private Akka.Remote.Serialization.Proto.Msg.Payload _payloadDecoded; + + [GlobalSetup] + public async Task Setup() + { + _sys1 = (ExtendedActorSystem)ActorSystem.Create("BenchSys", _config); + _sys2 = (ExtendedActorSystem)ActorSystem.Create("BenchSys", _config); + _rarp = RARP.For(_sys1).Provider; + _addr1 = _rarp.DefaultAddress; + _addr2 = RARP.For(_sys2).Provider.DefaultAddress; + + _senderActorRef = + _sys2.ActorOf(act => { act.ReceiveAny((o, context) => context.Sender.Tell(context.Sender)); }, + "sender1"); + + _localReceiveRef = _sys1.ActorOf(act => { act.ReceiveAny((o, context) => context.Sender.Tell(context.Sender)); }, + "recv1"); + + // create an association + _remoteReceiveRef = (RemoteActorRef)(await _sys2.ActorSelection(new RootActorPath(RARP.For(_sys1).Provider.DefaultAddress) / "user" / + _localReceiveRef.Path.Name).ResolveOne(TimeSpan.FromSeconds(3))); + + _remoteSenderRef = (RemoteActorRef)(await _sys1.ActorSelection(new RootActorPath(RARP.For(_sys2).Provider.DefaultAddress) / "user" / + _senderActorRef.Path.Name).ResolveOne(TimeSpan.FromSeconds(3))); + + _recvCodec = new AkkaPduProtobuffCodec(_sys1); + _sendCodec = new AkkaPduProtobuffCodec(_sys2); + _fullDecode = CreatePayloadPdu(); + _pduDecoded = ((Payload)_recvCodec.DecodePdu(_fullDecode)).Bytes; + _payloadDecoded = _recvCodec.DecodeMessage(_pduDecoded, _rarp, _addr1).MessageOption.SerializedMessage; + } + + [GlobalCleanup] + public async Task Cleanup() + { + + void PrintCacheStats(string prefix, ActorSystem sys) + { + var resolveCache = ActorRefResolveThreadLocalCache.For(sys); + var pathCache = ActorPathThreadLocalCache.For(sys); + var addressCache = AddressThreadLocalCache.For(sys); + + ConsoleLogger.Default.WriteLine(LogKind.Result, + $"[{prefix}] ResolveCache entries: [{resolveCache.Cache.Stats.Entries}]"); + ConsoleLogger.Default.WriteLine(LogKind.Result, + $"[{prefix}] PathCache entries: [{pathCache.Cache.Stats.Entries}]"); + ConsoleLogger.Default.WriteLine(LogKind.Result, + $"[{prefix}] AddressCache entries: [{addressCache.Cache.Stats.Entries}]"); + } + + PrintCacheStats("Addr1", _sys1); + PrintCacheStats("Addr2", _sys2); + + var resolveCache = ActorRefResolveThreadLocalCache.For(_sys1); + var pathCache = ActorPathThreadLocalCache.For(_sys1); + var addressCache = AddressThreadLocalCache.For(_sys1); + + var senderResolveCache = ActorRefResolveThreadLocalCache.For(_sys2); + var senderPathCache = ActorPathThreadLocalCache.For(_sys2); + var senderAddressCache = AddressThreadLocalCache.For(_sys2); + + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr1] Used ResolveCache for recipient? {resolveCache.Cache.TryGet(_remoteReceiveRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr1] Used PathCache for recipient? {pathCache.Cache.TryGet(_remoteReceiveRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr1] Used ResolveCache for sender? {resolveCache.Cache.TryGet(_remoteSenderRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr1] Used PathCache for sender? {pathCache.Cache.TryGet(_remoteSenderRef.Path.ToSerializationFormat(), out _)}"); + + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr2] Used ResolveCache for recipient? {senderResolveCache.Cache.TryGet(_remoteReceiveRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr2] Used PathCache for recipient? {senderPathCache.Cache.TryGet(_remoteReceiveRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr2] Used ResolveCache for sender? {senderResolveCache.Cache.TryGet(_senderActorRef.Path.ToSerializationFormat(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr2] Used PathCache for sender? {senderPathCache.Cache.TryGet(_senderActorRef.Path.ToSerializationFormat(), out _)}"); + + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr1] Used AddressCache for sys1? {addressCache.Cache.TryGet(_addr2.ToString(), out _)}"); + ConsoleLogger.Default.WriteLine(LogKind.Result, $"[Addr2] Used AddressCache for sys2? {senderAddressCache.Cache.TryGet(_addr1.ToString(), out _)}"); + + await Task.WhenAll(_sys1.Terminate(), _sys2.Terminate()); + } + + /// + /// Simulates the write-side of the wire + /// + [Benchmark(OperationsPerInvoke = Operations)] + public void WritePayloadPdu() + { + for (var i = 0; i < Operations; i++) + { + CreatePayloadPdu(); + } + } + + /// + /// Simulates the read-side of the wire + /// + [Benchmark(OperationsPerInvoke = Operations)] + public void DecodePayloadPdu() + { + for (var i = 0; i < Operations; i++) + { + var pdu = _recvCodec.DecodePdu(_fullDecode); + if (pdu is Payload p) + { + var msg = _recvCodec.DecodeMessage(p.Bytes, _rarp, _addr1); + var deserialize = MessageSerializer.Deserialize(_sys1, msg.MessageOption.SerializedMessage); + } + } + } + + [Benchmark(OperationsPerInvoke = Operations)] + public void DecodePduOnly() + { + for (var i = 0; i < Operations; i++) + { + var pdu = _recvCodec.DecodePdu(_fullDecode); + } + } + + [Benchmark(OperationsPerInvoke = Operations)] + public void DecodeMessageOnly() + { + for (var i = 0; i < Operations; i++) + { + var msg = _recvCodec.DecodeMessage(_pduDecoded, _rarp, _addr1); + } + } + + [Benchmark(OperationsPerInvoke = Operations)] + public void DeserializePayloadOnly() + { + for (var i = 0; i < Operations; i++) + { + var deserialize = MessageSerializer.Deserialize(_sys1, _payloadDecoded); + } + } + + private ByteString CreatePayloadPdu() + { + return _sendCodec.ConstructPayload(_sendCodec.ConstructMessage(_remoteReceiveRef.LocalAddressToUse, _remoteReceiveRef, + MessageSerializer.Serialize(_sys2, _addr2, _message), _senderActorRef, null, _lastAck)); + } + } +} \ No newline at end of file diff --git a/src/common.props b/src/common.props index 9a757dcb3cc..c3f21b38243 100644 --- a/src/common.props +++ b/src/common.props @@ -1,8 +1,8 @@ - Copyright © 2013-2021 Akka.NET Team + Copyright © 2013-2022 Akka.NET Team Akka.NET Team - 1.4.38 + 1.4.39 akkalogo.png https://github.com/akkadotnet/akka.net https://github.com/akkadotnet/akka.net/blob/master/LICENSE @@ -34,7 +34,15 @@ true - Placeholder for nightlies** + Akka.NET v1.4.39 is a minor release that contains some very important bug fixes for Akka.Remote and Akka.Cluster users. +[Akka.Cluster: Error in `SplitBrainResolver.PreStart` when using `ChannelTaskScheduler` for internal-dispatcher](https://github.com/akkadotnet/akka.net/issues/5962) +[Akka.Cluster.Sharding: make PersistentShardCoordinator a tolerant reader](https://github.com/akkadotnet/akka.net/issues/5604) - Akka.Persistence-backed sharding is more lenient when recovering state. +[Akka.Remote: Trap all `Exception`s thrown while trying to dispatch messages in `Akka.Remote.EndpointReader`](https://github.com/akkadotnet/akka.net/pull/5971) - any kind of exception thrown during deserialization can no longer force a disassociation to occur in Akka.Remote. +If you want to see the [full set of changes made in Akka.NET v1.4.39, click here](https://github.com/akkadotnet/akka.net/milestone/70). +| COMMITS | LOC+ | LOC- | AUTHOR | +| --- | --- | --- | --- | +| 3 | 204 | 99 | Aaron Stannard | +| 1 | 1 | 13 | Gregorius Soedharmo | diff --git a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/Akka.Cluster.Sharding.Tests.csproj b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/Akka.Cluster.Sharding.Tests.csproj index 09af113497e..fd43d3604de 100644 --- a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/Akka.Cluster.Sharding.Tests.csproj +++ b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/Akka.Cluster.Sharding.Tests.csproj @@ -37,4 +37,9 @@ Always + + + ClusterGenerators.cs + + \ No newline at end of file diff --git a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/PersistentShardSpec.cs b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/PersistentShardSpec.cs index 55406a48924..8dfc5bc2195 100644 --- a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/PersistentShardSpec.cs +++ b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/PersistentShardSpec.cs @@ -6,14 +6,17 @@ //----------------------------------------------------------------------- using System; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Akka.Actor; using Akka.Cluster.Tools.Singleton; using Akka.Configuration; +using Akka.Event; using Akka.TestKit; -using Akka.Util.Extensions; +using Akka.Util; using FluentAssertions; +using FluentAssertions.Extensions; using Xunit; using Xunit.Abstractions; @@ -36,6 +39,52 @@ protected override void OnReceive(object message) { } } + + + internal class ConstructorFailActor : ActorBase + { + private static bool _thrown; + private readonly ILoggingAdapter _log = Context.GetLogger(); + + public ConstructorFailActor() + { + if (!_thrown) + { + _thrown = true; + throw new Exception("EXPLODING CONSTRUCTOR!"); + } + } + + protected override bool Receive(object message) + { + _log.Info("Msg {0}", message); + Sender.Tell($"ack {message}"); + return true; + } + } + + internal class PreStartFailActor : ActorBase + { + private static bool _thrown; + private readonly ILoggingAdapter _log = Context.GetLogger(); + + protected override void PreStart() + { + base.PreStart(); + if (!_thrown) + { + _thrown = true; + throw new Exception("EXPLODING PRE-START!"); + } + } + + protected override bool Receive(object message) + { + _log.Info("Msg {0}", message); + Sender.Tell($"ack {message}"); + return true; + } + } static PersistentShardSpec() { @@ -87,5 +136,98 @@ public void Persistent_Shard_must_remember_entities_started_with_StartEntity() ExpectMsgAllOf(new Shard.ShardStats("shard-1", 1)); }); } + + [Theory(DisplayName = "Persistent shard must recover from transient failures inside sharding entity constructor and PreStart method")] + [MemberData(nameof(PropsFactory))] + public async Task Persistent_Shard_must_recover_from_failing_entity(Props entityProp) + { + ExtractEntityId extractEntityId = message => + { + switch (message) + { + case ShardSpec.EntityEnvelope env: + return (env.Id.ToString(), env.Payload); + } + return Option<(string, object)>.None; + }; + + ExtractShardId extractShardId = message => + { + switch (message) + { + case ShardSpec.EntityEnvelope msg: + return msg.Id.ToString(); + } + return null; + }; + + var settings = ClusterShardingSettings.Create(Sys); + var tuning = settings.TuningParameters; + settings = settings.WithTuningParameters(new TuningParameters + ( + coordinatorFailureBackoff: tuning.CoordinatorFailureBackoff, + retryInterval: tuning.RetryInterval, + bufferSize: tuning.BufferSize, + handOffTimeout: tuning.HandOffTimeout, + shardStartTimeout: tuning.ShardStartTimeout, + shardFailureBackoff: tuning.ShardFailureBackoff, + entityRestartBackoff: 1.Seconds(), + rebalanceInterval: tuning.RebalanceInterval, + snapshotAfter: tuning.SnapshotAfter, + keepNrOfBatches: tuning.KeepNrOfBatches, + leastShardAllocationRebalanceThreshold: tuning.LeastShardAllocationRebalanceThreshold, + leastShardAllocationMaxSimultaneousRebalance: tuning.LeastShardAllocationMaxSimultaneousRebalance, + waitingForStateTimeout: tuning.WaitingForStateTimeout, + updatingStateTimeout: tuning.UpdatingStateTimeout, + entityRecoveryStrategy: tuning.EntityRecoveryStrategy, + entityRecoveryConstantRateStrategyFrequency: tuning.EntityRecoveryConstantRateStrategyFrequency, + entityRecoveryConstantRateStrategyNumberOfEntities: tuning.EntityRecoveryConstantRateStrategyNumberOfEntities, + leastShardAllocationAbsoluteLimit: tuning.LeastShardAllocationAbsoluteLimit, + leastShardAllocationRelativeLimit: tuning.LeastShardAllocationRelativeLimit + )); + + var props = Props.Create(() => new PersistentShard( + "cats", + "shard-1", + _ => entityProp, + settings, + extractEntityId, + extractShardId, + PoisonPill.Instance + )); + + Sys.EventStream.Subscribe(TestActor); + + var persistentShard = Sys.ActorOf(props); + + persistentShard.Tell(new ShardRegion.StartEntity("1")); + ExpectMsg(new ShardRegion.StartEntityAck("1", "shard-1")); + + // entity died here + var err = ExpectMsg(); + err.Cause.Should().BeOfType(); + + await AwaitConditionAsync(() => + { + persistentShard.Tell(Shard.GetCurrentShardState.Instance); + var failedState = ExpectMsg(); + return failedState.EntityIds.Count == 0; + }); + + // entity should be restarted when it received this message + persistentShard.Tell(new ShardSpec.EntityEnvelope(1, "Restarted")); + ExpectMsg("ack Restarted"); + + persistentShard.Tell(Shard.GetCurrentShardState.Instance); + var state = ExpectMsg(); + state.EntityIds.Count.Should().Be(1); + state.EntityIds.First().Should().Be("1"); + } + + public static IEnumerable PropsFactory() + { + yield return new object[] { Props.Create(() => new PreStartFailActor()) }; + yield return new object[] { Props.Create(() => new ConstructorFailActor()) }; + } } } diff --git a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardCoordinatorStateModelTests.cs b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardCoordinatorStateModelTests.cs new file mode 100644 index 00000000000..7f319b51c56 --- /dev/null +++ b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardCoordinatorStateModelTests.cs @@ -0,0 +1,652 @@ +// //----------------------------------------------------------------------- +// // +// // Copyright (C) 2009-2022 Lightbend Inc. +// // Copyright (C) 2013-2022 .NET Foundation +// // +// //----------------------------------------------------------------------- + +#if NET5_0_OR_GREATER + +using System; +using System.Collections.Immutable; +using System.Linq; +using System.Text; +using Akka.Actor; +using Akka.Cluster.Tests; +using Akka.Tests.Shared.Internals.Helpers; +using FsCheck; +using FsCheck.Experimental; +using FsCheck.Xunit; + + +namespace Akka.Cluster.Sharding.Tests +{ + using ShardId = System.String; + + public class ClusterShardingGenerator + { + public const string ShardRegionName = "myRegion"; + + public static Arbitrary ShardRegionRefGenerator(bool proxy = false) + { + var gen1 = ClusterGenerators.AddressGenerator().Generator; // node addresses + var gen3 = Arb.Default.Int64().Generator; // IActorRef UIDs + + + Func combiner = (node, actorUid) => + { + var path = (new RootActorPath(node) / "system" / "sharding" / + (proxy ? ShardRegionName + "-proxy" : ShardRegionName)) + .WithUid(actorUid); + return new EmptyLocalActorRef(null, path, null); + }; + var producer = FsharpDelegateHelper.Create(combiner); + + return Arb.From(Gen.Map2(producer, gen1, gen3)); + } + } + + internal sealed class StateHolder + { + /// + /// Has to be part of a mutable class in order for mutations + /// to be remembered in-between FsCheck operations. + /// + public PersistentShardCoordinator.State State { get; set; } + } + + /// + /// INTERNAL API + /// + /// Current command being processed. + /// True if processed successfully, false if throwing. + internal record CommandHistoryItem(PersistentShardCoordinator.IDomainEvent Command, bool Success); + + /// + /// Immutable model mirroring the object. + /// + internal sealed record TestState + { + public TestState(ImmutableArray allPossibleShards, bool rememberEntities) + { + AllPossibleShards = allPossibleShards; + RememberEntities = rememberEntities; + } + + /// + /// Stack of recently executed commands + /// + public ImmutableStack Commands { get; init; } = ImmutableStack.Empty; + + /// + /// All shard regions participating in the test. + /// + public ImmutableHashSet AvailableShardRegions { get; init; } + + /// + /// The set of all possible shards + /// + public ImmutableArray AllPossibleShards { get; } + + /// + /// All shard region proxies participating in the test. + /// + public ImmutableHashSet AvailableShardRegionProxies { get; init; } = ImmutableHashSet.Empty; + + /// + /// Region for each shard. + /// + public IImmutableDictionary Shards { get; init; } = ImmutableDictionary.Empty; + + /// + /// Shards for each region. + /// + public IImmutableDictionary> Regions { get; init; } = ImmutableDictionary>.Empty; + + /// + /// TBD + /// + public IImmutableSet RegionProxies { get; init; } = ImmutableHashSet.Empty; + + /// + /// TBD + /// + public IImmutableSet UnallocatedShards { get; init; } = ImmutableHashSet.Empty; + + public bool RememberEntities { get; } + + private bool PrintMembers(StringBuilder builder) + { + builder.AppendLine($"TestState: RememberEntities {RememberEntities}"); + builder.AppendLine("Operations:"); + foreach (var c in Commands.Reverse()) + { + builder.AppendFormat($"\tE: {c.Command}").AppendLine() + .AppendFormat($"\t\tSuccess: {c.Success}") + .AppendLine(); + } + + return true; + } + } + + internal class StateModel : Machine + { + public StateModel() + { + var gen0 = Gen.Choose(10, 100); // shardCount + var gen1 = ClusterShardingGenerator.ShardRegionRefGenerator().Generator.ArrayOf(100); //shardRegions + var gen2 = ClusterShardingGenerator.ShardRegionRefGenerator(true).Generator + .ArrayOf(100); // shardRegionProxies + var gen3 = Gen.Choose(0, 10).Select(c => c % 2 == 0); + + Func> combinedFunc = + (i, refs, arg3, re) => + new ClusterStateSetup(i, refs, arg3, re); + + var fsharpFunc = FsharpDelegateHelper.Create(combinedFunc); + + var composedGenerator = Gen.Map4(fsharpFunc, gen0, gen1, gen2, gen3); + + Setup = Arb.From(composedGenerator); + } + + public override Gen> Next(TestState obj0) + { + return Gen.OneOf(RegisterShardRegion.CreateGen(obj0), ShardRegionProxyRegistered.CreateGen(obj0), ShardHomeAllocated.CreateGen(obj0), + ShardRegionTerminated.CreateGen(obj0), ShardRegionProxyTerminated.CreateGen(obj0), ShardHomeDeallocated.CreateGen(obj0)); + } + + public override Arbitrary> Setup { get; } + + #region Setup Classes + + /// + /// Used to populate the test + /// + // ReSharper disable once ClassNeverInstantiated.Local + private class ClusterStateSetup : Setup + { + public ClusterStateSetup(int shardCount, IActorRef[] regions, IActorRef[] proxies, bool rememberEntities) + { + ShardCount = shardCount; + Regions = regions; + Proxies = proxies; + RememberEntities = rememberEntities; + } + + public int ShardCount { get; } + + public IActorRef[] Regions { get; } + + public IActorRef[] Proxies { get; } + + public bool RememberEntities { get; } + + public override StateHolder Actual() + { + return new StateHolder() { State = PersistentShardCoordinator.State.Empty.WithRememberEntities(RememberEntities) }; + } + + public override TestState Model() + { + return new TestState(Enumerable.Range(0, ShardCount).Select(i => i.ToString()).ToImmutableArray(), + RememberEntities) + { + AvailableShardRegions = Regions.ToImmutableHashSet(), + AvailableShardRegionProxies = Proxies.ToImmutableHashSet() + }; + } + } + + #endregion + + #region Operation Classes + + public abstract class ShardOperationBase : Operation + { + public abstract PersistentShardCoordinator.IDomainEvent Event { get; } + + /// + /// Checks keys only - does not check shard-specific values. + /// + /// The actual data from the sharding implementation. + /// Data from our FsCheck model. + /// A set of falsifiable FsCheck properties. + public Property CheckCommonShardStates(StateHolder actual, TestState model) + { + var exceptRegions = actual.State.Regions.Keys.ToImmutableHashSet() + .SymmetricExcept(model.Regions.Keys); + var exceptProxies = actual.State.RegionProxies.SymmetricExcept(model.RegionProxies); + var exceptShards = actual.State.Shards.Keys.ToImmutableHashSet().SymmetricExcept(model.Shards.Keys); + var exceptUnallocatedShards = actual.State.UnallocatedShards.SymmetricExcept(model.UnallocatedShards); + + return actual.State.Regions.Keys.ToImmutableHashSet().SetEquals(model.Regions.Keys) + .Label( + $"Both ShardRegions should contain same set of members. Instead found members not included in both sequences: [{string.Join(",", exceptRegions)}]. Model: [{string.Join(",", model.Regions.Select(c => (c.Key, string.Join(",", c.Value))))}], Actual: [{string.Join(",", actual.State.Regions.Select(c => (c.Key, string.Join(",", c.Value))))}]") + .And(actual.State.Shards.Keys.ToImmutableHashSet().SetEquals(model.Shards.Keys) + .Label( + $"Both Shards should contain same set of members. Instead found members not included in both sequences: [{string.Join(",", exceptShards)}]. Model: [{string.Join(",", model.Shards)}], Actual: [{string.Join(",", actual.State.Shards)}]")) + .And(actual.State.RegionProxies.SetEquals(model.RegionProxies).Label( + $"Both ShardProxies should contain same set of members. Instead found members not included in both sequences: [{string.Join(",", exceptProxies)}]. Model: [{string.Join(",", model.RegionProxies)}], Actual: [{string.Join(",", actual.State.RegionProxies)}]")) + .And(actual.State.UnallocatedShards.SetEquals(model.UnallocatedShards) + .Label( + $"Both UnallocatedShards should contain same set of members. Instead found members not included in both sequences: [{string.Join(",", exceptUnallocatedShards)}]. Model: [{string.Join(",", model.UnallocatedShards)}], Actual: [{string.Join(",", actual.State.UnallocatedShards)}]")); + } + + public Property CheckShardRegionSpecificStates(StateHolder actual, TestState model, IActorRef shardRegion) + { + var actualContains = actual.State.Regions.ContainsKey(shardRegion); + var modelContains = model.Regions.ContainsKey(shardRegion); + if (!actualContains || !modelContains) + { + var containLanguage = modelContains ? "contain" : "not contain"; + // one of the two collections doesn't contain the ShardRegion, so we can't continue comparison + return (actualContains == modelContains).Label( + $"Expected state to {containLanguage} ShardRegion [{shardRegion}], but found that state contains [{shardRegion}] is [{actualContains}]"); + } + + var regionDiff = actual.State.Regions[shardRegion].ToImmutableHashSet() + .SymmetricExcept(model.Regions[shardRegion]); + + return actual.State.Regions[shardRegion].ToImmutableHashSet().SetEquals(model.Regions[shardRegion]) + .Label( + $"Both ShardRegions should contain shards, but found members not included in both sequences: [{string.Join(",", regionDiff)}]"); + } + + public Property CheckShardSpecificStates(StateHolder actual, TestState model, ShardId shard, + bool shouldContainShard) + { + var actualContains = actual.State.Shards.ContainsKey(shard); + var modelContains = model.Shards.ContainsKey(shard); + if (!actualContains || !modelContains) + { + var containLanguage = modelContains ? "contain" : "not contain"; + // one of the two collections doesn't contain the ShardRegion, so we can't continue comparison + return (actualContains == modelContains).Label( + $"Expected state to {containLanguage} ShardId [{shard}], but found that state contains [{shard}] is [{actualContains}]"); + } + + Property CheckContains() + { + var prop1 = ((actual.State.Shards.ContainsKey(shard) || model.Shards.ContainsKey(shard)) == + shouldContainShard) + .Label( + $"Shard [{shard}] should present ([{shouldContainShard}]) in Shards collection, but found in state: {actual.State.Shards.ContainsKey(shard)} && model {model.Shards.ContainsKey(shard)}"); + + if (model.RememberEntities && !shouldContainShard) + { + return prop1.And(actual.State.UnallocatedShards.Contains(shard) && model.UnallocatedShards.Contains(shard)) + .Label( + $"Shard [{shard}] should be unallocated, but found in state: {model.UnallocatedShards.Contains(shard)} && model {model.UnallocatedShards.Contains(shard)}"); + } + + return prop1; + } + + if (!shouldContainShard) + return CheckContains(); + + return CheckContains().And(actual.State.Shards[shard].Equals(model.Shards[shard]) + .Label( + $"Expected Shard [{shard}] to have registered ShardRegion [{model.Shards[shard]}], but found [{actual.State.Shards[shard]}]")); + } + + public Property ShouldThrowException(StateHolder actual, string errMsgContains) + { + Action throwable = () => { actual.State = actual.State.Updated(Event); }; + + Exception trapped = null; + + try + { + throwable(); + } + catch (Exception ex) + { + trapped = ex; + } + + return (trapped != null && trapped.Message.Contains(errMsgContains)).Label( + $"Expected state to throw error containing message [{errMsgContains}] when processing {Event}. Instead found [{trapped}]"); + } + } + + public class RegisterShardRegion : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + return Gen.Elements(model.AvailableShardRegions.ToArray()) + .Select(a => (Operation)new RegisterShardRegion(a)); + } + + public RegisterShardRegion(IActorRef shardRegion) + { + ShardRegion = shardRegion; + } + + public IActorRef ShardRegion { get; } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardRegionRegistered(ShardRegion); + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "already registered").And(CheckCommonShardStates(actual, model)) + .And(CheckShardRegionSpecificStates(actual, model, ShardRegion)); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model) + .And(CheckShardRegionSpecificStates(actual, model, ShardRegion)); + } + + public override TestState Run(TestState obj0) + { + // don't want to wipe out our ShardRegion here if this event was unexpected + if (obj0.Regions.ContainsKey(ShardRegion)) + return obj0 with { Commands = obj0.Commands.Push(new CommandHistoryItem(Event, false)) }; + return obj0 with + { + Regions = obj0.Regions.Add(ShardRegion, ImmutableList.Empty), + Commands = obj0.Commands.Push(new CommandHistoryItem(Event, true)) + }; + } + } + + public class ShardRegionProxyRegistered : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + return Gen.Elements(model.AvailableShardRegionProxies.ToArray()).Select(a => + (Operation)new ShardRegionProxyRegistered(a)); + } + + public ShardRegionProxyRegistered(IActorRef shardRegionProxy) + { + ShardRegionProxy = shardRegionProxy; + } + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "already registered") + .And(CheckCommonShardStates(actual, model)); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model); + } + + public override TestState Run(TestState obj0) + { + // don't want to wipe out our ShardRegion here if this event was unexpected + if (obj0.RegionProxies.Contains(ShardRegionProxy)) + return obj0 with { Commands = obj0.Commands.Push(new CommandHistoryItem(Event, false)) }; + return obj0 with + { + RegionProxies = obj0.RegionProxies.Add(ShardRegionProxy), + Commands = obj0.Commands.Push(new CommandHistoryItem(Event, true)) + }; + } + + public IActorRef ShardRegionProxy { get; } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardRegionProxyRegistered(ShardRegionProxy); + } + + public sealed class ShardRegionTerminated : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + // could be a valid shardRegion, could be one that isn't + return Gen.Elements(model.AvailableShardRegions.ToArray()).Select(a => + (Operation)new ShardRegionTerminated(a)); + } + + public ShardRegionTerminated(IActorRef shardRegion) + { + ShardRegion = shardRegion; + } + + public IActorRef ShardRegion { get; } + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "Terminated region").And(CheckCommonShardStates(actual, model)) + .And(CheckShardRegionSpecificStates(actual, model, ShardRegion)); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model) + .And(CheckShardRegionSpecificStates(actual, model, ShardRegion)); + } + + public override TestState Run(TestState obj0) + { + var ob1 = obj0 with + { + // can't re-use terminated actors + // AvailableShardRegions = obj0.AvailableShardRegions.Remove(ShardRegion) + }; + + if (ob1.Regions.TryGetValue(ShardRegion, out var shards)) + { + var unallocatedShards = + ob1.RememberEntities ? ob1.UnallocatedShards.Union(shards) : ob1.UnallocatedShards; + + return ob1 with + { + UnallocatedShards = unallocatedShards, + Regions = ob1.Regions.Remove(ShardRegion), + Shards = ob1.Shards.RemoveRange(shards), + Commands = ob1.Commands.Push(new CommandHistoryItem(Event, true)) + }; + } + + // ShardRegion not found - actual should throw an exception + return ob1 with { Commands = ob1.Commands.Push(new CommandHistoryItem(Event, false)) }; + } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardRegionTerminated(ShardRegion); + } + + public sealed class ShardRegionProxyTerminated : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + // could be a valid shardRegionProxy, could be one that isn't + return Gen.Elements(model.AvailableShardRegionProxies.ToArray()).Select(a => + (Operation)new ShardRegionProxyTerminated(a)); + } + + public ShardRegionProxyTerminated(IActorRef shardRegionProxy) + { + ShardRegionProxy = shardRegionProxy; + } + + public IActorRef ShardRegionProxy { get; } + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "Terminated region proxy") + .And(CheckCommonShardStates(actual, model)); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model); + } + + public override TestState Run(TestState obj0) + { + var success = obj0.RegionProxies.Contains(ShardRegionProxy); + + var ob1 = obj0 with + { + Commands = obj0.Commands.Push(new CommandHistoryItem(Event, success)), + // can't re-use terminated actors + //AvailableShardRegionProxies = obj0.AvailableShardRegionProxies.Remove(ShardRegionProxy), + RegionProxies = obj0.RegionProxies.Remove(ShardRegionProxy) + }; + + return ob1; + } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardRegionProxyTerminated(ShardRegionProxy); + } + + public sealed class ShardHomeAllocated : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + var gen0 = Gen.Elements(model.AllPossibleShards.ToArray()); + var gen1 = Gen.Elements(model.AvailableShardRegions.ToArray()); + + Func combiner = (s, @ref) => new ShardHomeAllocated(s, @ref); + + var fsharpFunc = FsharpDelegateHelper.Create(combiner); + + // could be a valid shardRegionProxy, could be one that isn't + return Gen.Map2(fsharpFunc, gen0, gen1) + .Select(a => (Operation)a); + } + + public ShardHomeAllocated(string shardId, IActorRef shardRegion) + { + ShardId = shardId; + ShardRegion = shardRegion; + } + + public ShardId ShardId { get; } + + public IActorRef ShardRegion { get; } + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "").And(CheckCommonShardStates(actual, model)) + .And(CheckShardSpecificStates(actual, model, ShardId, model.Shards.ContainsKey(ShardId))); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model) + .And(CheckShardSpecificStates(actual, model, ShardId, model.Shards.ContainsKey(ShardId))); + } + + public override TestState Run(TestState obj0) + { + if (obj0.Regions.TryGetValue(ShardRegion, out var currentShards) && !obj0.Shards.ContainsKey(ShardId)) + { + var unallocatedShards = obj0.RememberEntities + ? obj0.UnallocatedShards.Remove(ShardId) + : obj0.UnallocatedShards; + return obj0 with + { + Shards = obj0.Shards.SetItem(ShardId, ShardRegion), + Regions = obj0.Regions.SetItem(ShardRegion, currentShards.Add(ShardId)), + UnallocatedShards = unallocatedShards, + Commands = obj0.Commands.Push(new CommandHistoryItem(Event, true)), + }; + } + + // we have an illegal state that is going to throw + return obj0 with { Commands = obj0.Commands.Push(new CommandHistoryItem(Event, false)) }; + } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardHomeAllocated(ShardId, ShardRegion); + } + + public sealed class ShardHomeDeallocated : ShardOperationBase + { + public static Gen> CreateGen(TestState model) + { + var gen0 = Gen.Elements(model.AllPossibleShards.ToArray()); + + // could be a valid shardRegionProxy, could be one that isn't + return gen0 + .Select(a => (Operation)new ShardHomeDeallocated(a)); + } + + public ShardHomeDeallocated(string shardId) + { + ShardId = shardId; + } + + public ShardId ShardId { get; } + + public override Property Check(StateHolder actual, TestState model) + { + // check for whether we should expect an exception + if (!model.Commands.Peek().Success) + { + return ShouldThrowException(actual, "").And(CheckCommonShardStates(actual, model)) + .And(CheckShardSpecificStates(actual, model, ShardId, model.Shards.ContainsKey(ShardId))); + } + + actual.State = actual.State.Updated(Event); + return CheckCommonShardStates(actual, model) + .And(CheckShardSpecificStates(actual, model, ShardId, model.Shards.ContainsKey(ShardId))); + } + + public override TestState Run(TestState obj0) + { + if (obj0.Shards.TryGetValue(ShardId, out var region) && + obj0.Regions.TryGetValue(region, out var regionShards)) + { + var newUnallocatedShards = obj0.RememberEntities + ? obj0.UnallocatedShards.Add(ShardId) + : obj0.UnallocatedShards; + + return obj0 with + { + Commands = obj0.Commands.Push(new CommandHistoryItem(Event, true)), + Shards = obj0.Shards.Remove(ShardId), + Regions = obj0.Regions.SetItem(region, regionShards.Remove(ShardId)), + UnallocatedShards = newUnallocatedShards + }; + } + + return obj0 with { Commands = obj0.Commands.Push(new CommandHistoryItem(Event, false)) }; + } + + public override PersistentShardCoordinator.IDomainEvent Event => + new PersistentShardCoordinator.ShardHomeDeallocated(ShardId); + } + + #endregion + } + + public class ShardCoordinatorStateModelTests + { + static ShardCoordinatorStateModelTests() + { + // register the custom generators to make testing easier + Arb.Register(); + } + + [Property] + public Property ShardCoordinatorStateMustObeyModel() + { + return new StateModel().ToProperty(); + } + } +} + +#endif \ No newline at end of file diff --git a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardedDaemonProcessSpec.cs b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardedDaemonProcessSpec.cs index ebdfdadb512..b138a64cd64 100644 --- a/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardedDaemonProcessSpec.cs +++ b/src/contrib/cluster/Akka.Cluster.Sharding.Tests/ShardedDaemonProcessSpec.cs @@ -125,7 +125,7 @@ public void ShardedDaemonProcess_must_not_run_if_the_role_does_not_match_node_ro var probe = CreateTestProbe(); var settings = ShardedDaemonProcessSettings.Create(Sys).WithRole("workers"); - ShardedDaemonProcess.Get(Sys).Init("roles", 3, id => MyActor.Props(id, probe.Ref), settings); + ShardedDaemonProcess.Get(Sys).Init("roles", 3, id => MyActor.Props(id, probe.Ref), settings, PoisonPill.Instance); probe.ExpectNoMsg(); } diff --git a/src/contrib/cluster/Akka.Cluster.Sharding/PersistentShardCoordinator.cs b/src/contrib/cluster/Akka.Cluster.Sharding/PersistentShardCoordinator.cs index 645e0a6c360..e250176db5f 100644 --- a/src/contrib/cluster/Akka.Cluster.Sharding/PersistentShardCoordinator.cs +++ b/src/contrib/cluster/Akka.Cluster.Sharding/PersistentShardCoordinator.cs @@ -47,8 +47,9 @@ public sealed class State : IClusterShardingSerializable /// TBD /// public readonly IImmutableSet RegionProxies; + /// - /// TBD + /// Only used when is enabled. /// public readonly IImmutableSet UnallocatedShards; @@ -111,9 +112,9 @@ public IImmutableSet AllShards /// /// TBD /// - /// TBD - /// TBD - /// TBD + /// The event to process. + /// Thrown if an event is illegal in the current state. + /// An update copy of this state. public State Updated(IDomainEvent e) { switch (e) @@ -1361,7 +1362,12 @@ protected override bool ReceiveRecover(object message) if (CurrentState.RegionProxies.Contains(proxyTerminated.RegionProxy)) CurrentState = CurrentState.Updated(evt); return true; - case ShardHomeAllocated _: + case ShardHomeAllocated homeAllocated: + // if we already have identical ShardHomeAllocated data, skip processing it + // addresses https://github.com/akkadotnet/akka.net/issues/5604 + if (CurrentState.Shards.TryGetValue(homeAllocated.Shard, out var currentShardRegion) + && Equals(homeAllocated.Region, currentShardRegion)) + return true; CurrentState = CurrentState.Updated(evt); return true; case ShardHomeDeallocated _: diff --git a/src/contrib/cluster/Akka.Cluster.Sharding/Serialization/Proto/ClusterShardingMessages.g.cs b/src/contrib/cluster/Akka.Cluster.Sharding/Serialization/Proto/ClusterShardingMessages.g.cs index 5a1f2f49273..217696f6388 100644 --- a/src/contrib/cluster/Akka.Cluster.Sharding/Serialization/Proto/ClusterShardingMessages.g.cs +++ b/src/contrib/cluster/Akka.Cluster.Sharding/Serialization/Proto/ClusterShardingMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClusterShardingMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterShardingMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -58,47 +60,56 @@ static ClusterShardingMessagesReflection() { "UHJvdG8uTXNnLlNoYXJkU3RhdGViBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Parser, new[]{ "Shards", "Regions", "RegionProxies", "UnallocatedShards" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Types.ShardEntry), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Types.ShardEntry.Parser, new[]{ "ShardId", "RegionRef" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ActorRefMessage), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ActorRefMessage.Parser, new[]{ "Ref" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardIdMessage), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardIdMessage.Parser, new[]{ "Shard" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHomeAllocated), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHomeAllocated.Parser, new[]{ "Shard", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHome), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHome.Parser, new[]{ "Shard", "Region" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityState.Parser, new[]{ "Entities" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStarted), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStarted.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStopped), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStopped.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardStats.Parser, new[]{ "Shard", "EntityCount" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats.Parser, new[]{ "Stats" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntity), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntity.Parser, new[]{ "EntityId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntityAck), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntityAck.Parser, new[]{ "EntityId", "ShardId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.GetClusterShardingStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.GetClusterShardingStats.Parser, new[]{ "Timeout" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingStats.Parser, new[]{ "Regions" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionWithAddress), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionWithAddress.Parser, new[]{ "NodeAddress", "Stats" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentRegions), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentRegions.Parser, new[]{ "Regions" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardState.Parser, new[]{ "ShardId", "EntityIds" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentShardRegionState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentShardRegionState.Parser, new[]{ "Shards" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Parser, new[]{ "Shards", "Regions", "RegionProxies", "UnallocatedShards" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Types.ShardEntry), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Types.ShardEntry.Parser, new[]{ "ShardId", "RegionRef" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ActorRefMessage), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ActorRefMessage.Parser, new[]{ "Ref" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardIdMessage), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardIdMessage.Parser, new[]{ "Shard" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHomeAllocated), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHomeAllocated.Parser, new[]{ "Shard", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHome), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardHome.Parser, new[]{ "Shard", "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityState.Parser, new[]{ "Entities" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStarted), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStarted.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStopped), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.EntityStopped.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardStats.Parser, new[]{ "Shard", "EntityCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats.Parser, new[]{ "Stats" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntity), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntity.Parser, new[]{ "EntityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntityAck), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.StartEntityAck.Parser, new[]{ "EntityId", "ShardId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.GetClusterShardingStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.GetClusterShardingStats.Parser, new[]{ "Timeout" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingStats), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingStats.Parser, new[]{ "Regions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionWithAddress), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionWithAddress.Parser, new[]{ "NodeAddress", "Stats" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentRegions), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentRegions.Parser, new[]{ "Regions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardState.Parser, new[]{ "ShardId", "EntityIds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentShardRegionState), global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CurrentShardRegionState.Parser, new[]{ "Shards" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class CoordinatorState : pb::IMessage { + internal sealed partial class CoordinatorState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CoordinatorState()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CoordinatorState() { OnConstruction(); } @@ -106,14 +117,17 @@ public CoordinatorState() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CoordinatorState(CoordinatorState other) : this() { shards_ = other.shards_.Clone(); regions_ = other.regions_.Clone(); regionProxies_ = other.regionProxies_.Clone(); unallocatedShards_ = other.unallocatedShards_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CoordinatorState Clone() { return new CoordinatorState(this); } @@ -124,6 +138,7 @@ public CoordinatorState Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Types.ShardEntry.Parser); private readonly pbc::RepeatedField shards_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Shards { get { return shards_; } } @@ -134,6 +149,7 @@ public CoordinatorState Clone() { = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Regions { get { return regions_; } } @@ -144,6 +160,7 @@ public CoordinatorState Clone() { = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField regionProxies_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RegionProxies { get { return regionProxies_; } } @@ -154,16 +171,19 @@ public CoordinatorState Clone() { = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField unallocatedShards_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UnallocatedShards { get { return unallocatedShards_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CoordinatorState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CoordinatorState other) { if (ReferenceEquals(other, null)) { return false; @@ -175,43 +195,75 @@ public bool Equals(CoordinatorState other) { if(!regions_.Equals(other.regions_)) return false; if(!regionProxies_.Equals(other.regionProxies_)) return false; if(!unallocatedShards_.Equals(other.unallocatedShards_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= shards_.GetHashCode(); hash ^= regions_.GetHashCode(); hash ^= regionProxies_.GetHashCode(); hash ^= unallocatedShards_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else shards_.WriteTo(output, _repeated_shards_codec); regions_.WriteTo(output, _repeated_regions_codec); regionProxies_.WriteTo(output, _repeated_regionProxies_codec); unallocatedShards_.WriteTo(output, _repeated_unallocatedShards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + shards_.WriteTo(ref output, _repeated_shards_codec); + regions_.WriteTo(ref output, _repeated_regions_codec); + regionProxies_.WriteTo(ref output, _repeated_regionProxies_codec); + unallocatedShards_.WriteTo(ref output, _repeated_unallocatedShards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += shards_.CalculateSize(_repeated_shards_codec); size += regions_.CalculateSize(_repeated_regions_codec); size += regionProxies_.CalculateSize(_repeated_regionProxies_codec); size += unallocatedShards_.CalculateSize(_repeated_unallocatedShards_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CoordinatorState other) { if (other == null) { return; @@ -220,15 +272,20 @@ public void MergeFrom(CoordinatorState other) { regions_.Add(other.regions_); regionProxies_.Add(other.regionProxies_); unallocatedShards_.Add(other.unallocatedShards_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { shards_.AddEntriesFrom(input, _repeated_shards_codec); @@ -248,28 +305,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + shards_.AddEntriesFrom(ref input, _repeated_shards_codec); + break; + } + case 18: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + case 26: { + regionProxies_.AddEntriesFrom(ref input, _repeated_regionProxies_codec); + break; + } + case 34: { + unallocatedShards_.AddEntriesFrom(ref input, _repeated_unallocatedShards_codec); + break; + } + } + } } + #endif #region Nested types /// Container for nested types declared in the CoordinatorState message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class ShardEntry : pb::IMessage { + internal sealed partial class ShardEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardEntry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.CoordinatorState.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardEntry() { OnConstruction(); } @@ -277,12 +376,15 @@ public ShardEntry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardEntry(ShardEntry other) : this() { shardId_ = other.shardId_; regionRef_ = other.regionRef_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardEntry Clone() { return new ShardEntry(this); } @@ -291,6 +393,7 @@ public ShardEntry Clone() { public const int ShardIdFieldNumber = 1; private string shardId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ShardId { get { return shardId_; } set { @@ -302,6 +405,7 @@ public string ShardId { public const int RegionRefFieldNumber = 2; private string regionRef_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RegionRef { get { return regionRef_; } set { @@ -310,11 +414,13 @@ public string RegionRef { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardEntry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardEntry other) { if (ReferenceEquals(other, null)) { return false; @@ -324,24 +430,51 @@ public bool Equals(ShardEntry other) { } if (ShardId != other.ShardId) return false; if (RegionRef != other.RegionRef) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (ShardId.Length != 0) hash ^= ShardId.GetHashCode(); if (RegionRef.Length != 0) hash ^= RegionRef.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ShardId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ShardId); + } + if (RegionRef.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RegionRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (ShardId.Length != 0) { output.WriteRawTag(10); output.WriteString(ShardId); @@ -350,9 +483,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(RegionRef); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (ShardId.Length != 0) { @@ -361,10 +499,14 @@ public int CalculateSize() { if (RegionRef.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RegionRef); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardEntry other) { if (other == null) { return; @@ -375,15 +517,43 @@ public void MergeFrom(ShardEntry other) { if (other.RegionRef.Length != 0) { RegionRef = other.RegionRef; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ShardId = input.ReadString(); + break; + } + case 18: { + RegionRef = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { ShardId = input.ReadString(); @@ -396,6 +566,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } @@ -404,22 +575,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ActorRefMessage : pb::IMessage { + internal sealed partial class ActorRefMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActorRefMessage()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefMessage() { OnConstruction(); } @@ -427,11 +607,14 @@ public ActorRefMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefMessage(ActorRefMessage other) : this() { ref_ = other.ref_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefMessage Clone() { return new ActorRefMessage(this); } @@ -440,6 +623,7 @@ public ActorRefMessage Clone() { public const int RefFieldNumber = 1; private string ref_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Ref { get { return ref_; } set { @@ -448,11 +632,13 @@ public string Ref { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActorRefMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActorRefMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -461,39 +647,71 @@ public bool Equals(ActorRefMessage other) { return true; } if (Ref != other.Ref) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Ref.Length != 0) hash ^= Ref.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Ref.Length != 0) { output.WriteRawTag(10); output.WriteString(Ref); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Ref.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Ref); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Ref.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Ref); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActorRefMessage other) { if (other == null) { return; @@ -501,15 +719,39 @@ public void MergeFrom(ActorRefMessage other) { if (other.Ref.Length != 0) { Ref = other.Ref; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Ref = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Ref = input.ReadString(); @@ -518,25 +760,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class ShardIdMessage : pb::IMessage { + internal sealed partial class ShardIdMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardIdMessage()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardIdMessage() { OnConstruction(); } @@ -544,11 +796,14 @@ public ShardIdMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardIdMessage(ShardIdMessage other) : this() { shard_ = other.shard_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardIdMessage Clone() { return new ShardIdMessage(this); } @@ -557,6 +812,7 @@ public ShardIdMessage Clone() { public const int ShardFieldNumber = 1; private string shard_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Shard { get { return shard_; } set { @@ -565,11 +821,13 @@ public string Shard { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardIdMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardIdMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -578,39 +836,71 @@ public bool Equals(ShardIdMessage other) { return true; } if (Shard != other.Shard) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Shard.Length != 0) hash ^= Shard.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Shard.Length != 0) { output.WriteRawTag(10); output.WriteString(Shard); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Shard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Shard); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Shard.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Shard); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardIdMessage other) { if (other == null) { return; @@ -618,15 +908,39 @@ public void MergeFrom(ShardIdMessage other) { if (other.Shard.Length != 0) { Shard = other.Shard; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Shard = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Shard = input.ReadString(); @@ -635,25 +949,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class ShardHomeAllocated : pb::IMessage { + internal sealed partial class ShardHomeAllocated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardHomeAllocated()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHomeAllocated() { OnConstruction(); } @@ -661,12 +985,15 @@ public ShardHomeAllocated() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHomeAllocated(ShardHomeAllocated other) : this() { shard_ = other.shard_; region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHomeAllocated Clone() { return new ShardHomeAllocated(this); } @@ -675,6 +1002,7 @@ public ShardHomeAllocated Clone() { public const int ShardFieldNumber = 1; private string shard_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Shard { get { return shard_; } set { @@ -686,6 +1014,7 @@ public string Shard { public const int RegionFieldNumber = 2; private string region_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Region { get { return region_; } set { @@ -694,11 +1023,13 @@ public string Region { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardHomeAllocated); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardHomeAllocated other) { if (ReferenceEquals(other, null)) { return false; @@ -708,24 +1039,33 @@ public bool Equals(ShardHomeAllocated other) { } if (Shard != other.Shard) return false; if (Region != other.Region) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Shard.Length != 0) hash ^= Shard.GetHashCode(); if (Region.Length != 0) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Shard.Length != 0) { output.WriteRawTag(10); output.WriteString(Shard); @@ -734,9 +1074,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Region); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Shard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Shard); + } + if (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Shard.Length != 0) { @@ -745,10 +1108,14 @@ public int CalculateSize() { if (Region.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardHomeAllocated other) { if (other == null) { return; @@ -759,15 +1126,20 @@ public void MergeFrom(ShardHomeAllocated other) { if (other.Region.Length != 0) { Region = other.Region; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Shard = input.ReadString(); @@ -779,26 +1151,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Shard = input.ReadString(); + break; + } + case 18: { + Region = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class ShardHome : pb::IMessage { + internal sealed partial class ShardHome : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardHome()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHome() { OnConstruction(); } @@ -806,12 +1211,15 @@ public ShardHome() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHome(ShardHome other) : this() { shard_ = other.shard_; region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardHome Clone() { return new ShardHome(this); } @@ -820,6 +1228,7 @@ public ShardHome Clone() { public const int ShardFieldNumber = 1; private string shard_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Shard { get { return shard_; } set { @@ -831,6 +1240,7 @@ public string Shard { public const int RegionFieldNumber = 2; private string region_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Region { get { return region_; } set { @@ -839,11 +1249,13 @@ public string Region { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardHome); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardHome other) { if (ReferenceEquals(other, null)) { return false; @@ -853,24 +1265,51 @@ public bool Equals(ShardHome other) { } if (Shard != other.Shard) return false; if (Region != other.Region) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Shard.Length != 0) hash ^= Shard.GetHashCode(); if (Region.Length != 0) hash ^= Region.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Shard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Shard); + } + if (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Shard.Length != 0) { output.WriteRawTag(10); output.WriteString(Shard); @@ -879,9 +1318,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Region); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Shard.Length != 0) { @@ -890,10 +1334,14 @@ public int CalculateSize() { if (Region.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardHome other) { if (other == null) { return; @@ -904,15 +1352,43 @@ public void MergeFrom(ShardHome other) { if (other.Region.Length != 0) { Region = other.Region; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Shard = input.ReadString(); + break; + } + case 18: { + Region = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Shard = input.ReadString(); @@ -925,25 +1401,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class EntityState : pb::IMessage { + internal sealed partial class EntityState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityState()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityState() { OnConstruction(); } @@ -951,11 +1437,14 @@ public EntityState() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityState(EntityState other) : this() { entities_ = other.entities_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityState Clone() { return new EntityState(this); } @@ -966,16 +1455,19 @@ public EntityState Clone() { = pb::FieldCodec.ForString(10); private readonly pbc::RepeatedField entities_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entities { get { return entities_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EntityState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EntityState other) { if (ReferenceEquals(other, null)) { return false; @@ -984,48 +1476,82 @@ public bool Equals(EntityState other) { return true; } if(!entities_.Equals(other.entities_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= entities_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else entities_.WriteTo(output, _repeated_entities_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entities_.WriteTo(ref output, _repeated_entities_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += entities_.CalculateSize(_repeated_entities_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EntityState other) { if (other == null) { return; } entities_.Add(other.entities_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { entities_.AddEntriesFrom(input, _repeated_entities_codec); @@ -1033,26 +1559,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + entities_.AddEntriesFrom(ref input, _repeated_entities_codec); + break; + } + } + } + } + #endif + } - internal sealed partial class EntityStarted : pb::IMessage { + internal sealed partial class EntityStarted : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityStarted()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStarted() { OnConstruction(); } @@ -1060,11 +1615,14 @@ public EntityStarted() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStarted(EntityStarted other) : this() { entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStarted Clone() { return new EntityStarted(this); } @@ -1073,6 +1631,7 @@ public EntityStarted Clone() { public const int EntityIdFieldNumber = 1; private string entityId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EntityId { get { return entityId_; } set { @@ -1081,11 +1640,13 @@ public string EntityId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EntityStarted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EntityStarted other) { if (ReferenceEquals(other, null)) { return false; @@ -1094,39 +1655,71 @@ public bool Equals(EntityStarted other) { return true; } if (EntityId != other.EntityId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EntityId.Length != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (EntityId.Length != 0) { output.WriteRawTag(10); output.WriteString(EntityId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EntityId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EntityId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EntityStarted other) { if (other == null) { return; @@ -1134,15 +1727,39 @@ public void MergeFrom(EntityStarted other) { if (other.EntityId.Length != 0) { EntityId = other.EntityId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + EntityId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { EntityId = input.ReadString(); @@ -1151,25 +1768,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class EntityStopped : pb::IMessage { + internal sealed partial class EntityStopped : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityStopped()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStopped() { OnConstruction(); } @@ -1177,11 +1804,14 @@ public EntityStopped() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStopped(EntityStopped other) : this() { entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EntityStopped Clone() { return new EntityStopped(this); } @@ -1190,6 +1820,7 @@ public EntityStopped Clone() { public const int EntityIdFieldNumber = 1; private string entityId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EntityId { get { return entityId_; } set { @@ -1198,11 +1829,13 @@ public string EntityId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EntityStopped); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EntityStopped other) { if (ReferenceEquals(other, null)) { return false; @@ -1211,39 +1844,71 @@ public bool Equals(EntityStopped other) { return true; } if (EntityId != other.EntityId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EntityId.Length != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (EntityId.Length != 0) { output.WriteRawTag(10); output.WriteString(EntityId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EntityId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EntityId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EntityStopped other) { if (other == null) { return; @@ -1251,15 +1916,20 @@ public void MergeFrom(EntityStopped other) { if (other.EntityId.Length != 0) { EntityId = other.EntityId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { EntityId = input.ReadString(); @@ -1267,26 +1937,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + EntityId = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class ShardStats : pb::IMessage { + internal sealed partial class ShardStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardStats()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardStats() { OnConstruction(); } @@ -1294,12 +1993,15 @@ public ShardStats() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardStats(ShardStats other) : this() { shard_ = other.shard_; entityCount_ = other.entityCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardStats Clone() { return new ShardStats(this); } @@ -1308,6 +2010,7 @@ public ShardStats Clone() { public const int ShardFieldNumber = 1; private string shard_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Shard { get { return shard_; } set { @@ -1319,6 +2022,7 @@ public string Shard { public const int EntityCountFieldNumber = 2; private int entityCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int EntityCount { get { return entityCount_; } set { @@ -1327,11 +2031,13 @@ public int EntityCount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardStats); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardStats other) { if (ReferenceEquals(other, null)) { return false; @@ -1341,24 +2047,51 @@ public bool Equals(ShardStats other) { } if (Shard != other.Shard) return false; if (EntityCount != other.EntityCount) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Shard.Length != 0) hash ^= Shard.GetHashCode(); if (EntityCount != 0) hash ^= EntityCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Shard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Shard); + } + if (EntityCount != 0) { + output.WriteRawTag(16); + output.WriteInt32(EntityCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Shard.Length != 0) { output.WriteRawTag(10); output.WriteString(Shard); @@ -1367,9 +2100,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteInt32(EntityCount); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Shard.Length != 0) { @@ -1378,10 +2116,14 @@ public int CalculateSize() { if (EntityCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(EntityCount); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardStats other) { if (other == null) { return; @@ -1392,15 +2134,43 @@ public void MergeFrom(ShardStats other) { if (other.EntityCount != 0) { EntityCount = other.EntityCount; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Shard = input.ReadString(); + break; + } + case 16: { + EntityCount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Shard = input.ReadString(); @@ -1413,25 +2183,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class ShardRegionStats : pb::IMessage { + internal sealed partial class ShardRegionStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardRegionStats()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionStats() { OnConstruction(); } @@ -1439,11 +2219,14 @@ public ShardRegionStats() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionStats(ShardRegionStats other) : this() { stats_ = other.stats_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionStats Clone() { return new ShardRegionStats(this); } @@ -1451,19 +2234,22 @@ public ShardRegionStats Clone() { /// Field number for the "stats" field. public const int StatsFieldNumber = 1; private static readonly pbc::MapField.Codec _map_stats_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForInt32(16), 10); + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10); private readonly pbc::MapField stats_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Stats { get { return stats_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardRegionStats); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardRegionStats other) { if (ReferenceEquals(other, null)) { return false; @@ -1472,48 +2258,82 @@ public bool Equals(ShardRegionStats other) { return true; } if (!Stats.Equals(other.Stats)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Stats.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else stats_.WriteTo(output, _map_stats_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + stats_.WriteTo(ref output, _map_stats_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += stats_.CalculateSize(_map_stats_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardRegionStats other) { if (other == null) { return; } stats_.Add(other.stats_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { stats_.AddEntriesFrom(input, _map_stats_codec); @@ -1521,26 +2341,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + stats_.AddEntriesFrom(ref input, _map_stats_codec); + break; + } + } + } } + #endif } - internal sealed partial class StartEntity : pb::IMessage { + internal sealed partial class StartEntity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartEntity()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntity() { OnConstruction(); } @@ -1548,11 +2397,14 @@ public StartEntity() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntity(StartEntity other) : this() { entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntity Clone() { return new StartEntity(this); } @@ -1561,6 +2413,7 @@ public StartEntity Clone() { public const int EntityIdFieldNumber = 1; private string entityId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EntityId { get { return entityId_; } set { @@ -1569,11 +2422,13 @@ public string EntityId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as StartEntity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(StartEntity other) { if (ReferenceEquals(other, null)) { return false; @@ -1582,39 +2437,71 @@ public bool Equals(StartEntity other) { return true; } if (EntityId != other.EntityId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EntityId.Length != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (EntityId.Length != 0) { output.WriteRawTag(10); output.WriteString(EntityId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EntityId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EntityId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(StartEntity other) { if (other == null) { return; @@ -1622,15 +2509,20 @@ public void MergeFrom(StartEntity other) { if (other.EntityId.Length != 0) { EntityId = other.EntityId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { EntityId = input.ReadString(); @@ -1638,26 +2530,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + EntityId = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class StartEntityAck : pb::IMessage { + internal sealed partial class StartEntityAck : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartEntityAck()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntityAck() { OnConstruction(); } @@ -1665,12 +2586,15 @@ public StartEntityAck() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntityAck(StartEntityAck other) : this() { entityId_ = other.entityId_; shardId_ = other.shardId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StartEntityAck Clone() { return new StartEntityAck(this); } @@ -1679,6 +2603,7 @@ public StartEntityAck Clone() { public const int EntityIdFieldNumber = 1; private string entityId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EntityId { get { return entityId_; } set { @@ -1690,6 +2615,7 @@ public string EntityId { public const int ShardIdFieldNumber = 2; private string shardId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ShardId { get { return shardId_; } set { @@ -1698,11 +2624,13 @@ public string ShardId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as StartEntityAck); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(StartEntityAck other) { if (ReferenceEquals(other, null)) { return false; @@ -1712,24 +2640,51 @@ public bool Equals(StartEntityAck other) { } if (EntityId != other.EntityId) return false; if (ShardId != other.ShardId) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EntityId.Length != 0) hash ^= EntityId.GetHashCode(); if (ShardId.Length != 0) hash ^= ShardId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EntityId); + } + if (ShardId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ShardId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (EntityId.Length != 0) { output.WriteRawTag(10); output.WriteString(EntityId); @@ -1738,9 +2693,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(ShardId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EntityId.Length != 0) { @@ -1749,10 +2709,14 @@ public int CalculateSize() { if (ShardId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ShardId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(StartEntityAck other) { if (other == null) { return; @@ -1763,15 +2727,20 @@ public void MergeFrom(StartEntityAck other) { if (other.ShardId.Length != 0) { ShardId = other.ShardId; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { EntityId = input.ReadString(); @@ -1783,26 +2752,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + EntityId = input.ReadString(); + break; + } + case 18: { + ShardId = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class GetClusterShardingStats : pb::IMessage { + internal sealed partial class GetClusterShardingStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClusterShardingStats()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetClusterShardingStats() { OnConstruction(); } @@ -1810,11 +2812,14 @@ public GetClusterShardingStats() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetClusterShardingStats(GetClusterShardingStats other) : this() { - Timeout = other.timeout_ != null ? other.Timeout.Clone() : null; + timeout_ = other.timeout_ != null ? other.timeout_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetClusterShardingStats Clone() { return new GetClusterShardingStats(this); } @@ -1823,6 +2828,7 @@ public GetClusterShardingStats Clone() { public const int TimeoutFieldNumber = 1; private global::Google.Protobuf.WellKnownTypes.Duration timeout_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Duration Timeout { get { return timeout_; } set { @@ -1831,11 +2837,13 @@ public GetClusterShardingStats Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetClusterShardingStats); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetClusterShardingStats other) { if (ReferenceEquals(other, null)) { return false; @@ -1844,88 +2852,157 @@ public bool Equals(GetClusterShardingStats other) { return true; } if (!object.Equals(Timeout, other.Timeout)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (timeout_ != null) hash ^= Timeout.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (timeout_ != null) { output.WriteRawTag(10); output.WriteMessage(Timeout); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (timeout_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Timeout); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (timeout_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timeout); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetClusterShardingStats other) { if (other == null) { return; } if (other.timeout_ != null) { if (timeout_ == null) { - timeout_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } Timeout.MergeFrom(other.Timeout); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (timeout_ == null) { + Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Timeout); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (timeout_ == null) { - timeout_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } - input.ReadMessage(timeout_); + input.ReadMessage(Timeout); break; } } } } + #endif } - internal sealed partial class ClusterShardingStats : pb::IMessage { + internal sealed partial class ClusterShardingStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterShardingStats()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterShardingStats() { OnConstruction(); } @@ -1933,11 +3010,14 @@ public ClusterShardingStats() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterShardingStats(ClusterShardingStats other) : this() { regions_ = other.regions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterShardingStats Clone() { return new ClusterShardingStats(this); } @@ -1948,16 +3028,19 @@ public ClusterShardingStats Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionWithAddress.Parser); private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Regions { get { return regions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ClusterShardingStats); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ClusterShardingStats other) { if (ReferenceEquals(other, null)) { return false; @@ -1966,48 +3049,82 @@ public bool Equals(ClusterShardingStats other) { return true; } if(!regions_.Equals(other.regions_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= regions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else regions_.WriteTo(output, _repeated_regions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + regions_.WriteTo(ref output, _repeated_regions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += regions_.CalculateSize(_repeated_regions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ClusterShardingStats other) { if (other == null) { return; } regions_.Add(other.regions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { regions_.AddEntriesFrom(input, _repeated_regions_codec); @@ -2015,26 +3132,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + } + } } + #endif } - internal sealed partial class ShardRegionWithAddress : pb::IMessage { + internal sealed partial class ShardRegionWithAddress : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardRegionWithAddress()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionWithAddress() { OnConstruction(); } @@ -2042,12 +3188,15 @@ public ShardRegionWithAddress() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionWithAddress(ShardRegionWithAddress other) : this() { - NodeAddress = other.nodeAddress_ != null ? other.NodeAddress.Clone() : null; - Stats = other.stats_ != null ? other.Stats.Clone() : null; + nodeAddress_ = other.nodeAddress_ != null ? other.nodeAddress_.Clone() : null; + stats_ = other.stats_ != null ? other.stats_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardRegionWithAddress Clone() { return new ShardRegionWithAddress(this); } @@ -2056,6 +3205,7 @@ public ShardRegionWithAddress Clone() { public const int NodeAddressFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData nodeAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData NodeAddress { get { return nodeAddress_; } set { @@ -2067,6 +3217,7 @@ public ShardRegionWithAddress Clone() { public const int StatsFieldNumber = 2; private global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats stats_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats Stats { get { return stats_; } set { @@ -2075,11 +3226,13 @@ public ShardRegionWithAddress Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardRegionWithAddress); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardRegionWithAddress other) { if (ReferenceEquals(other, null)) { return false; @@ -2089,24 +3242,51 @@ public bool Equals(ShardRegionWithAddress other) { } if (!object.Equals(NodeAddress, other.NodeAddress)) return false; if (!object.Equals(Stats, other.Stats)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (nodeAddress_ != null) hash ^= NodeAddress.GetHashCode(); if (stats_ != null) hash ^= Stats.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (nodeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NodeAddress); + } + if (stats_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stats); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (nodeAddress_ != null) { output.WriteRawTag(10); output.WriteMessage(NodeAddress); @@ -2115,9 +3295,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Stats); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (nodeAddress_ != null) { @@ -2126,72 +3311,120 @@ public int CalculateSize() { if (stats_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardRegionWithAddress other) { if (other == null) { return; } if (other.nodeAddress_ != null) { if (nodeAddress_ == null) { - nodeAddress_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + NodeAddress = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } NodeAddress.MergeFrom(other.NodeAddress); } if (other.stats_ != null) { if (stats_ == null) { - stats_ = new global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats(); + Stats = new global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats(); } Stats.MergeFrom(other.Stats); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (nodeAddress_ == null) { + NodeAddress = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(NodeAddress); + break; + } + case 18: { + if (stats_ == null) { + Stats = new global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats(); + } + input.ReadMessage(Stats); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (nodeAddress_ == null) { - nodeAddress_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + NodeAddress = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(nodeAddress_); + input.ReadMessage(NodeAddress); break; } case 18: { if (stats_ == null) { - stats_ = new global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats(); + Stats = new global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardRegionStats(); } - input.ReadMessage(stats_); + input.ReadMessage(Stats); break; } } } } + #endif } - internal sealed partial class CurrentRegions : pb::IMessage { + internal sealed partial class CurrentRegions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrentRegions()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentRegions() { OnConstruction(); } @@ -2199,11 +3432,14 @@ public CurrentRegions() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentRegions(CurrentRegions other) : this() { regions_ = other.regions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentRegions Clone() { return new CurrentRegions(this); } @@ -2214,16 +3450,19 @@ public CurrentRegions Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Remote.Serialization.Proto.Msg.AddressData.Parser); private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Regions { get { return regions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CurrentRegions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CurrentRegions other) { if (ReferenceEquals(other, null)) { return false; @@ -2232,48 +3471,82 @@ public bool Equals(CurrentRegions other) { return true; } if(!regions_.Equals(other.regions_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= regions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else regions_.WriteTo(output, _repeated_regions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + regions_.WriteTo(ref output, _repeated_regions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += regions_.CalculateSize(_repeated_regions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CurrentRegions other) { if (other == null) { return; } regions_.Add(other.regions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { regions_.AddEntriesFrom(input, _repeated_regions_codec); @@ -2281,26 +3554,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + } + } } + #endif } - internal sealed partial class ShardState : pb::IMessage { + internal sealed partial class ShardState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShardState()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardState() { OnConstruction(); } @@ -2308,12 +3610,15 @@ public ShardState() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardState(ShardState other) : this() { shardId_ = other.shardId_; entityIds_ = other.entityIds_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ShardState Clone() { return new ShardState(this); } @@ -2322,6 +3627,7 @@ public ShardState Clone() { public const int ShardIdFieldNumber = 1; private string shardId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ShardId { get { return shardId_; } set { @@ -2335,16 +3641,19 @@ public string ShardId { = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField entityIds_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField EntityIds { get { return entityIds_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ShardState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ShardState other) { if (ReferenceEquals(other, null)) { return false; @@ -2354,42 +3663,75 @@ public bool Equals(ShardState other) { } if (ShardId != other.ShardId) return false; if(!entityIds_.Equals(other.entityIds_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (ShardId.Length != 0) hash ^= ShardId.GetHashCode(); hash ^= entityIds_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (ShardId.Length != 0) { output.WriteRawTag(10); output.WriteString(ShardId); } entityIds_.WriteTo(output, _repeated_entityIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ShardId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ShardId); + } + entityIds_.WriteTo(ref output, _repeated_entityIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (ShardId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ShardId); } size += entityIds_.CalculateSize(_repeated_entityIds_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ShardState other) { if (other == null) { return; @@ -2398,15 +3740,20 @@ public void MergeFrom(ShardState other) { ShardId = other.ShardId; } entityIds_.Add(other.entityIds_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ShardId = input.ReadString(); @@ -2418,26 +3765,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ShardId = input.ReadString(); + break; + } + case 18: { + entityIds_.AddEntriesFrom(ref input, _repeated_entityIds_codec); + break; + } + } + } + } + #endif + } - internal sealed partial class CurrentShardRegionState : pb::IMessage { + internal sealed partial class CurrentShardRegionState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrentShardRegionState()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ClusterShardingMessagesReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentShardRegionState() { OnConstruction(); } @@ -2445,11 +3825,14 @@ public CurrentShardRegionState() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentShardRegionState(CurrentShardRegionState other) : this() { shards_ = other.shards_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentShardRegionState Clone() { return new CurrentShardRegionState(this); } @@ -2460,16 +3843,19 @@ public CurrentShardRegionState Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Sharding.Serialization.Proto.Msg.ShardState.Parser); private readonly pbc::RepeatedField shards_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Shards { get { return shards_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CurrentShardRegionState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CurrentShardRegionState other) { if (ReferenceEquals(other, null)) { return false; @@ -2478,48 +3864,82 @@ public bool Equals(CurrentShardRegionState other) { return true; } if(!shards_.Equals(other.shards_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= shards_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else shards_.WriteTo(output, _repeated_shards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + shards_.WriteTo(ref output, _repeated_shards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += shards_.CalculateSize(_repeated_shards_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CurrentShardRegionState other) { if (other == null) { return; } shards_.Add(other.shards_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { shards_.AddEntriesFrom(input, _repeated_shards_codec); @@ -2527,7 +3947,27 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + shards_.AddEntriesFrom(ref input, _repeated_shards_codec); + break; + } + } + } } + #endif } diff --git a/src/contrib/cluster/Akka.Cluster.Tools/Client/Serialization/Proto/ClusterClientMessages.g.cs b/src/contrib/cluster/Akka.Cluster.Tools/Client/Serialization/Proto/ClusterClientMessages.g.cs index 890e7fa9009..1720da6888a 100644 --- a/src/contrib/cluster/Akka.Cluster.Tools/Client/Serialization/Proto/ClusterClientMessages.g.cs +++ b/src/contrib/cluster/Akka.Cluster.Tools/Client/Serialization/Proto/ClusterClientMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClusterClientMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterClientMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -27,30 +29,39 @@ static ClusterClientMessagesReflection() { "dHMSFQoNY29udGFjdFBvaW50cxgBIAMoCWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.Client.Serialization.Proto.Msg.Contacts), global::Akka.Cluster.Tools.Client.Serialization.Proto.Msg.Contacts.Parser, new[]{ "ContactPoints" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.Client.Serialization.Proto.Msg.Contacts), global::Akka.Cluster.Tools.Client.Serialization.Proto.Msg.Contacts.Parser, new[]{ "ContactPoints" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class Contacts : pb::IMessage { + internal sealed partial class Contacts : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Contacts()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.Client.Serialization.Proto.Msg.ClusterClientMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Contacts() { OnConstruction(); } @@ -58,11 +69,14 @@ public Contacts() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Contacts(Contacts other) : this() { contactPoints_ = other.contactPoints_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Contacts Clone() { return new Contacts(this); } @@ -73,16 +87,19 @@ public Contacts Clone() { = pb::FieldCodec.ForString(10); private readonly pbc::RepeatedField contactPoints_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ContactPoints { get { return contactPoints_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Contacts); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Contacts other) { if (ReferenceEquals(other, null)) { return false; @@ -91,48 +108,82 @@ public bool Equals(Contacts other) { return true; } if(!contactPoints_.Equals(other.contactPoints_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= contactPoints_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else contactPoints_.WriteTo(output, _repeated_contactPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + contactPoints_.WriteTo(ref output, _repeated_contactPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += contactPoints_.CalculateSize(_repeated_contactPoints_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Contacts other) { if (other == null) { return; } contactPoints_.Add(other.contactPoints_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { contactPoints_.AddEntriesFrom(input, _repeated_contactPoints_codec); @@ -140,7 +191,27 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + contactPoints_.AddEntriesFrom(ref input, _repeated_contactPoints_codec); + break; + } + } + } } + #endif } diff --git a/src/contrib/cluster/Akka.Cluster.Tools/PublishSubscribe/Serialization/Proto/DistributedPubSubMessages.g.cs b/src/contrib/cluster/Akka.Cluster.Tools/PublishSubscribe/Serialization/Proto/DistributedPubSubMessages.g.cs index 033c7a1a689..22b18fe60cd 100644 --- a/src/contrib/cluster/Akka.Cluster.Tools/PublishSubscribe/Serialization/Proto/DistributedPubSubMessages.g.cs +++ b/src/contrib/cluster/Akka.Cluster.Tools/PublishSubscribe/Serialization/Proto/DistributedPubSubMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DistributedPubSubMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DistributedPubSubMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -52,36 +54,45 @@ static DistributedPubSubMessagesReflection() { "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Parser, new[]{ "Versions", "ReplyToStatus" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Types.Version), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Types.Version.Parser, new[]{ "Address", "Timestamp" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Parser, new[]{ "Buckets" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder.Parser, new[]{ "Version", "Ref" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.Bucket), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.Bucket.Parser, new[]{ "Owner", "Version", "Content" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Send), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Send.Parser, new[]{ "Path", "LocalAffinity", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToAll), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToAll.Parser, new[]{ "Path", "AllButSelf", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Publish), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Publish.Parser, new[]{ "Topic", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToOneSubscriber), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToOneSubscriber.Parser, new[]{ "Payload" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Parser, new[]{ "Versions", "ReplyToStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Types.Version), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Types.Version.Parser, new[]{ "Address", "Timestamp" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Parser, new[]{ "Buckets" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder.Parser, new[]{ "Version", "Ref" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.Bucket), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.Bucket.Parser, new[]{ "Owner", "Version", "Content" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Send), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Send.Parser, new[]{ "Path", "LocalAffinity", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToAll), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToAll.Parser, new[]{ "Path", "AllButSelf", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Publish), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Publish.Parser, new[]{ "Topic", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToOneSubscriber), global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.SendToOneSubscriber.Parser, new[]{ "Payload" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class Status : pb::IMessage { + internal sealed partial class Status : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Status()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status() { OnConstruction(); } @@ -89,12 +100,15 @@ public Status() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status(Status other) : this() { versions_ = other.versions_.Clone(); replyToStatus_ = other.replyToStatus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status Clone() { return new Status(this); } @@ -105,6 +119,7 @@ public Status Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Types.Version.Parser); private readonly pbc::RepeatedField versions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Versions { get { return versions_; } } @@ -113,6 +128,7 @@ public Status Clone() { public const int ReplyToStatusFieldNumber = 2; private bool replyToStatus_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool ReplyToStatus { get { return replyToStatus_; } set { @@ -121,11 +137,13 @@ public bool ReplyToStatus { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Status); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Status other) { if (ReferenceEquals(other, null)) { return false; @@ -135,42 +153,75 @@ public bool Equals(Status other) { } if(!versions_.Equals(other.versions_)) return false; if (ReplyToStatus != other.ReplyToStatus) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= versions_.GetHashCode(); if (ReplyToStatus != false) hash ^= ReplyToStatus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else versions_.WriteTo(output, _repeated_versions_codec); if (ReplyToStatus != false) { output.WriteRawTag(16); output.WriteBool(ReplyToStatus); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + versions_.WriteTo(ref output, _repeated_versions_codec); + if (ReplyToStatus != false) { + output.WriteRawTag(16); + output.WriteBool(ReplyToStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += versions_.CalculateSize(_repeated_versions_codec); if (ReplyToStatus != false) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Status other) { if (other == null) { return; @@ -179,15 +230,20 @@ public void MergeFrom(Status other) { if (other.ReplyToStatus != false) { ReplyToStatus = other.ReplyToStatus; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { versions_.AddEntriesFrom(input, _repeated_versions_codec); @@ -199,28 +255,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + versions_.AddEntriesFrom(ref input, _repeated_versions_codec); + break; + } + case 16: { + ReplyToStatus = input.ReadBool(); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the Status message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Version : pb::IMessage { + internal sealed partial class Version : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Version()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Status.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version() { OnConstruction(); } @@ -228,12 +318,15 @@ public Version() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version(Version other) : this() { - Address = other.address_ != null ? other.Address.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version Clone() { return new Version(this); } @@ -242,6 +335,7 @@ public Version Clone() { public const int AddressFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Address { get { return address_; } set { @@ -253,6 +347,7 @@ public Version Clone() { public const int TimestampFieldNumber = 2; private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { get { return timestamp_; } set { @@ -261,11 +356,13 @@ public long Timestamp { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Version); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Version other) { if (ReferenceEquals(other, null)) { return false; @@ -275,24 +372,51 @@ public bool Equals(Version other) { } if (!object.Equals(Address, other.Address)) return false; if (Timestamp != other.Timestamp) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Timestamp != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -301,9 +425,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteInt64(Timestamp); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -312,38 +441,47 @@ public int CalculateSize() { if (Timestamp != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Version other) { if (other == null) { return; } if (other.address_ != null) { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Address.MergeFrom(other.Address); } if (other.Timestamp != 0L) { Timestamp = other.Timestamp; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(address_); + input.ReadMessage(Address); break; } case 16: { @@ -352,8 +490,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Address); + break; + } + case 16: { + Timestamp = input.ReadInt64(); + break; + } + } + } + } + #endif + } } @@ -361,22 +526,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Delta : pb::IMessage { + internal sealed partial class Delta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Delta()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Delta() { OnConstruction(); } @@ -384,11 +558,14 @@ public Delta() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Delta(Delta other) : this() { buckets_ = other.buckets_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Delta Clone() { return new Delta(this); } @@ -399,16 +576,19 @@ public Delta Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.Bucket.Parser); private readonly pbc::RepeatedField buckets_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Buckets { get { return buckets_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Delta); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Delta other) { if (ReferenceEquals(other, null)) { return false; @@ -417,48 +597,82 @@ public bool Equals(Delta other) { return true; } if(!buckets_.Equals(other.buckets_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= buckets_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else buckets_.WriteTo(output, _repeated_buckets_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buckets_.WriteTo(ref output, _repeated_buckets_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += buckets_.CalculateSize(_repeated_buckets_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Delta other) { if (other == null) { return; } buckets_.Add(other.buckets_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { buckets_.AddEntriesFrom(input, _repeated_buckets_codec); @@ -466,28 +680,58 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + buckets_.AddEntriesFrom(ref input, _repeated_buckets_codec); + break; + } + } + } } + #endif #region Nested types /// Container for nested types declared in the Delta message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class ValueHolder : pb::IMessage { + internal sealed partial class ValueHolder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueHolder()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValueHolder() { OnConstruction(); } @@ -495,12 +739,15 @@ public ValueHolder() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValueHolder(ValueHolder other) : this() { version_ = other.version_; ref_ = other.ref_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValueHolder Clone() { return new ValueHolder(this); } @@ -509,6 +756,7 @@ public ValueHolder Clone() { public const int VersionFieldNumber = 1; private long version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Version { get { return version_; } set { @@ -520,6 +768,7 @@ public long Version { public const int RefFieldNumber = 2; private string ref_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Ref { get { return ref_; } set { @@ -528,11 +777,13 @@ public string Ref { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValueHolder); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValueHolder other) { if (ReferenceEquals(other, null)) { return false; @@ -542,24 +793,33 @@ public bool Equals(ValueHolder other) { } if (Version != other.Version) return false; if (Ref != other.Ref) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Version != 0L) hash ^= Version.GetHashCode(); if (Ref.Length != 0) hash ^= Ref.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Version != 0L) { output.WriteRawTag(8); output.WriteInt64(Version); @@ -568,9 +828,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Ref); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Version != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Version); + } + if (Ref.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ref); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Version != 0L) { @@ -579,10 +862,14 @@ public int CalculateSize() { if (Ref.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Ref); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValueHolder other) { if (other == null) { return; @@ -593,15 +880,43 @@ public void MergeFrom(ValueHolder other) { if (other.Ref.Length != 0) { Ref = other.Ref; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Version = input.ReadInt64(); + break; + } + case 18: { + Ref = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Version = input.ReadInt64(); @@ -614,25 +929,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class Bucket : pb::IMessage { + internal sealed partial class Bucket : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Bucket()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Bucket() { OnConstruction(); } @@ -640,13 +965,16 @@ public Bucket() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Bucket(Bucket other) : this() { - Owner = other.owner_ != null ? other.Owner.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; version_ = other.version_; content_ = other.content_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Bucket Clone() { return new Bucket(this); } @@ -655,6 +983,7 @@ public Bucket Clone() { public const int OwnerFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData owner_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Owner { get { return owner_; } set { @@ -666,6 +995,7 @@ public Bucket Clone() { public const int VersionFieldNumber = 2; private long version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Version { get { return version_; } set { @@ -676,19 +1006,22 @@ public long Version { /// Field number for the "content" field. public const int ContentFieldNumber = 3; private static readonly pbc::MapField.Codec _map_content_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder.Parser), 26); + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.Delta.Types.ValueHolder.Parser), 26); private readonly pbc::MapField content_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Content { get { return content_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Bucket); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Bucket other) { if (ReferenceEquals(other, null)) { return false; @@ -699,25 +1032,34 @@ public bool Equals(Bucket other) { if (!object.Equals(Owner, other.Owner)) return false; if (Version != other.Version) return false; if (!Content.Equals(other.Content)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (owner_ != null) hash ^= Owner.GetHashCode(); if (Version != 0L) hash ^= Version.GetHashCode(); hash ^= Content.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (owner_ != null) { output.WriteRawTag(10); output.WriteMessage(Owner); @@ -727,9 +1069,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteInt64(Version); } content_.WriteTo(output, _map_content_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (Version != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Version); + } + content_.WriteTo(ref output, _map_content_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (owner_ != null) { @@ -739,17 +1105,21 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); } size += content_.CalculateSize(_map_content_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Bucket other) { if (other == null) { return; } if (other.owner_ != null) { if (owner_ == null) { - owner_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Owner = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Owner.MergeFrom(other.Owner); } @@ -757,21 +1127,26 @@ public void MergeFrom(Bucket other) { Version = other.Version; } content_.Add(other.content_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (owner_ == null) { - owner_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Owner = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(owner_); + input.ReadMessage(Owner); break; } case 16: { @@ -784,7 +1159,38 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Owner); + break; + } + case 16: { + Version = input.ReadInt64(); + break; + } + case 26: { + content_.AddEntriesFrom(ref input, _map_content_codec); + break; + } + } + } } + #endif } @@ -796,22 +1202,31 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Send normally local, but it is also used by the ClusterClient. /// - internal sealed partial class Send : pb::IMessage { + internal sealed partial class Send : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Send()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Send() { OnConstruction(); } @@ -819,13 +1234,16 @@ public Send() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Send(Send other) : this() { path_ = other.path_; localAffinity_ = other.localAffinity_; - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Send Clone() { return new Send(this); } @@ -834,6 +1252,7 @@ public Send Clone() { public const int PathFieldNumber = 1; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -845,6 +1264,7 @@ public string Path { public const int LocalAffinityFieldNumber = 2; private bool localAffinity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool LocalAffinity { get { return localAffinity_; } set { @@ -856,6 +1276,7 @@ public bool LocalAffinity { public const int PayloadFieldNumber = 3; private global::Akka.Remote.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -864,11 +1285,13 @@ public bool LocalAffinity { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Send); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Send other) { if (ReferenceEquals(other, null)) { return false; @@ -879,25 +1302,34 @@ public bool Equals(Send other) { if (Path != other.Path) return false; if (LocalAffinity != other.LocalAffinity) return false; if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); if (LocalAffinity != false) hash ^= LocalAffinity.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); @@ -910,9 +1342,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (LocalAffinity != false) { + output.WriteRawTag(16); + output.WriteBool(LocalAffinity); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { @@ -924,10 +1383,14 @@ public int CalculateSize() { if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Send other) { if (other == null) { return; @@ -940,19 +1403,54 @@ public void MergeFrom(Send other) { } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + case 16: { + LocalAffinity = input.ReadBool(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); @@ -964,36 +1462,46 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } } + #endif } /// /// SendToAll normally local, but it is also used by the ClusterClient. /// - internal sealed partial class SendToAll : pb::IMessage { + internal sealed partial class SendToAll : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendToAll()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToAll() { OnConstruction(); } @@ -1001,13 +1509,16 @@ public SendToAll() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToAll(SendToAll other) : this() { path_ = other.path_; allButSelf_ = other.allButSelf_; - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToAll Clone() { return new SendToAll(this); } @@ -1016,6 +1527,7 @@ public SendToAll Clone() { public const int PathFieldNumber = 1; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -1027,6 +1539,7 @@ public string Path { public const int AllButSelfFieldNumber = 2; private bool allButSelf_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool AllButSelf { get { return allButSelf_; } set { @@ -1038,6 +1551,7 @@ public bool AllButSelf { public const int PayloadFieldNumber = 3; private global::Akka.Remote.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -1046,11 +1560,13 @@ public bool AllButSelf { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SendToAll); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SendToAll other) { if (ReferenceEquals(other, null)) { return false; @@ -1061,25 +1577,34 @@ public bool Equals(SendToAll other) { if (Path != other.Path) return false; if (AllButSelf != other.AllButSelf) return false; if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); if (AllButSelf != false) hash ^= AllButSelf.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); @@ -1092,9 +1617,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (AllButSelf != false) { + output.WriteRawTag(16); + output.WriteBool(AllButSelf); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { @@ -1106,10 +1658,14 @@ public int CalculateSize() { if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SendToAll other) { if (other == null) { return; @@ -1122,19 +1678,54 @@ public void MergeFrom(SendToAll other) { } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + case 16: { + AllButSelf = input.ReadBool(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); @@ -1146,36 +1737,46 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } } + #endif } /// /// Publish normally local, but it is also used by the ClusterClient. /// - internal sealed partial class Publish : pb::IMessage { + internal sealed partial class Publish : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Publish()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Publish() { OnConstruction(); } @@ -1183,12 +1784,15 @@ public Publish() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Publish(Publish other) : this() { topic_ = other.topic_; - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Publish Clone() { return new Publish(this); } @@ -1197,6 +1801,7 @@ public Publish Clone() { public const int TopicFieldNumber = 1; private string topic_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Topic { get { return topic_; } set { @@ -1208,6 +1813,7 @@ public string Topic { public const int PayloadFieldNumber = 3; private global::Akka.Remote.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -1216,11 +1822,13 @@ public string Topic { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Publish); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Publish other) { if (ReferenceEquals(other, null)) { return false; @@ -1230,24 +1838,33 @@ public bool Equals(Publish other) { } if (Topic != other.Topic) return false; if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Topic.Length != 0) hash ^= Topic.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Topic.Length != 0) { output.WriteRawTag(10); output.WriteString(Topic); @@ -1256,9 +1873,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Topic.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Topic); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Topic.Length != 0) { @@ -1267,10 +1907,14 @@ public int CalculateSize() { if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Publish other) { if (other == null) { return; @@ -1280,19 +1924,50 @@ public void MergeFrom(Publish other) { } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Topic = input.ReadString(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Topic = input.ReadString(); @@ -1300,36 +1975,46 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } } + #endif } /// /// Send a message to only one subscriber of a group. /// - internal sealed partial class SendToOneSubscriber : pb::IMessage { + internal sealed partial class SendToOneSubscriber : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendToOneSubscriber()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Tools.PublishSubscribe.Serialization.Proto.Msg.DistributedPubSubMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToOneSubscriber() { OnConstruction(); } @@ -1337,11 +2022,14 @@ public SendToOneSubscriber() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToOneSubscriber(SendToOneSubscriber other) : this() { - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SendToOneSubscriber Clone() { return new SendToOneSubscriber(this); } @@ -1350,6 +2038,7 @@ public SendToOneSubscriber Clone() { public const int PayloadFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -1358,11 +2047,13 @@ public SendToOneSubscriber Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SendToOneSubscriber); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SendToOneSubscriber other) { if (ReferenceEquals(other, null)) { return false; @@ -1371,69 +2062,129 @@ public bool Equals(SendToOneSubscriber other) { return true; } if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (payload_ != null) { output.WriteRawTag(10); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SendToOneSubscriber other) { if (other == null) { return; } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (payload_ == null) { + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } } + #endif } diff --git a/src/contrib/cluster/Akka.DistributedData.Tests/ReplicatorSettingsSpec.cs b/src/contrib/cluster/Akka.DistributedData.Tests/ReplicatorSettingsSpec.cs index c3c5bd22a35..1661aa890fd 100644 --- a/src/contrib/cluster/Akka.DistributedData.Tests/ReplicatorSettingsSpec.cs +++ b/src/contrib/cluster/Akka.DistributedData.Tests/ReplicatorSettingsSpec.cs @@ -10,6 +10,7 @@ using Akka.Configuration; using Akka.Dispatch; using Akka.TestKit; +using FluentAssertions; using Xunit; namespace Akka.DistributedData.Tests @@ -39,6 +40,7 @@ public void SettingsShouldContainProperDefaultValues() settings.DurableKeys.Count.ShouldBe(0); settings.DurableStoreProps.ShouldBe(Props.Empty); settings.DurablePruningMarkerTimeToLive.ShouldBe(TimeSpan.FromDays(10)); + settings.VerboseDebugLogging.Should().BeFalse(); Sys.Settings.Config.GetTimeSpan("akka.cluster.distributed-data.serializer-cache-time-to-live") .ShouldBe(TimeSpan.FromSeconds(10)); diff --git a/src/contrib/cluster/Akka.DistributedData/Replicator.cs b/src/contrib/cluster/Akka.DistributedData/Replicator.cs index abaf692d960..ff4806115ee 100644 --- a/src/contrib/cluster/Akka.DistributedData/Replicator.cs +++ b/src/contrib/cluster/Akka.DistributedData/Replicator.cs @@ -1150,7 +1150,7 @@ private bool IsOtherDifferent(string key, Digest otherDigest) private void ReceiveStatus(IImmutableDictionary otherDigests, int chunk, int totChunks) { - if (_log.IsDebugEnabled) + if (_log.IsDebugEnabled && _settings.VerboseDebugLogging) _log.Debug("Received gossip status from [{0}], chunk {1}/{2} containing [{3}]", Sender.Path.Address, chunk + 1, totChunks, string.Join(", ", otherDigests.Keys)); // if no data was send we do nothing diff --git a/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs b/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs index 07c159d9fe6..6db2278d9b4 100644 --- a/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs +++ b/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Immutable; using System.Collections.Generic; +using Akka.Event; namespace Akka.DistributedData { @@ -79,7 +80,8 @@ public static ReplicatorSettings Create(Config config) durablePruningMarkerTimeToLive: durableConfig.GetTimeSpan("pruning-marker-time-to-live", TimeSpan.FromDays(10)), maxDeltaSize: config.GetInt("delta-crdt.max-delta-size", 50), restartReplicatorOnFailure: config.GetBoolean("recreate-on-failure", false), - preferOldest: config.GetBoolean("prefer-oldest")); + preferOldest: config.GetBoolean("prefer-oldest"), + verboseDebugLogging: config.GetBoolean("verbose-debug-logging")); } /// @@ -159,6 +161,11 @@ public static ReplicatorSettings Create(Config config) /// public bool PreferOldest { get; } + /// + /// Whether verbose debug logging is enabled. + /// + public bool VerboseDebugLogging { get; } + [Obsolete] public ReplicatorSettings(string role, TimeSpan gossipInterval, @@ -218,10 +225,45 @@ public ReplicatorSettings(string role, durablePruningMarkerTimeToLive, maxDeltaSize, false, + false, false ) { } + + [Obsolete] + public ReplicatorSettings(string role, + TimeSpan gossipInterval, + TimeSpan notifySubscribersInterval, + int maxDeltaElements, + string dispatcher, + TimeSpan pruningInterval, + TimeSpan maxPruningDissemination, + IImmutableSet durableKeys, + Props durableStoreProps, + TimeSpan pruningMarkerTimeToLive, + TimeSpan durablePruningMarkerTimeToLive, + int maxDeltaSize, + bool restartReplicatorOnFailure, + bool preferOldest) : this( + role, + gossipInterval, + notifySubscribersInterval, + maxDeltaElements, + dispatcher, + pruningInterval, + maxPruningDissemination, + durableKeys, + durableStoreProps, + pruningMarkerTimeToLive, + durablePruningMarkerTimeToLive, + maxDeltaSize, + restartReplicatorOnFailure, + preferOldest, + false + ) + { + } public ReplicatorSettings(string role, TimeSpan gossipInterval, @@ -236,7 +278,8 @@ public ReplicatorSettings(string role, TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, - bool preferOldest) + bool preferOldest, + bool verboseDebugLogging) { Role = role; GossipInterval = gossipInterval; @@ -252,6 +295,7 @@ public ReplicatorSettings(string role, MaxDeltaSize = maxDeltaSize; RestartReplicatorOnFailure = restartReplicatorOnFailure; PreferOldest = preferOldest; + VerboseDebugLogging = verboseDebugLogging; } private ReplicatorSettings Copy(string role = null, @@ -267,7 +311,8 @@ private ReplicatorSettings Copy(string role = null, TimeSpan? durablePruningMarkerTimeToLive = null, int? maxDeltaSize = null, bool? restartReplicatorOnFailure = null, - bool? preferOldest = null) + bool? preferOldest = null, + bool? verboseDebugLogging = null) { return new ReplicatorSettings( role: role ?? this.Role, @@ -283,7 +328,8 @@ private ReplicatorSettings Copy(string role = null, durablePruningMarkerTimeToLive: durablePruningMarkerTimeToLive ?? this.DurablePruningMarkerTimeToLive, maxDeltaSize: maxDeltaSize ?? this.MaxDeltaSize, restartReplicatorOnFailure: restartReplicatorOnFailure ?? this.RestartReplicatorOnFailure, - preferOldest: preferOldest ?? this.PreferOldest); + preferOldest: preferOldest ?? this.PreferOldest, + verboseDebugLogging: verboseDebugLogging ?? this.VerboseDebugLogging); } public ReplicatorSettings WithRole(string role) => Copy(role: role); @@ -302,5 +348,7 @@ public ReplicatorSettings WithRestartReplicatorOnFailure(bool restart) => Copy(restartReplicatorOnFailure: restart); public ReplicatorSettings WithPreferOldest(bool preferOldest) => Copy(preferOldest: preferOldest); + public ReplicatorSettings WithVerboseDebugLogging(bool verboseDebugLogging) => + Copy(verboseDebugLogging: verboseDebugLogging); } } diff --git a/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatedDataMessages.g.cs b/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatedDataMessages.g.cs index dea5d25b29e..635ca4d9f19 100644 --- a/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatedDataMessages.g.cs +++ b/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatedDataMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ReplicatedDataMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReplicatedDataMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -140,23 +142,23 @@ static ReplicatedDataMessagesReflection() { "T1JNdWx0aU1hcEtleRAJQgJIAWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ValType), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.KeyType), }, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor), global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor.Parser, new[]{ "Type", "TypeName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GSet), global::Akka.DistributedData.Serialization.Proto.Msg.GSet.Parser, new[]{ "StringElements", "TypeInfo", "IntElements", "LongElements", "OtherElements", "ActorRefElements" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSet), global::Akka.DistributedData.Serialization.Proto.Msg.ORSet.Parser, new[]{ "Vvector", "TypeInfo", "Dots", "StringElements", "IntElements", "LongElements", "OtherElements", "ActorRefElements" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup), global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Parser, new[]{ "Entries", "TypeInfo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Types.Entry.Parser, new[]{ "Operation", "Underlying" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.Flag), global::Akka.DistributedData.Serialization.Proto.Msg.Flag.Parser, new[]{ "Enabled" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister), global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister.Parser, new[]{ "Timestamp", "Node", "State", "TypeInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GCounter), global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Parser, new[]{ "Entries" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Types.Entry.Parser, new[]{ "Node", "Value" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter.Parser, new[]{ "Increments", "Decrements" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMap), global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Parser, new[]{ "Keys", "Entries", "ValueTypeInfo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Parser, new[]{ "Entries", "KeyTypeInfo", "ValueTypeInfo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.MapEntry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.MapEntry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.Entry.Parser, new[]{ "Operation", "Underlying", "ZeroTag", "EntryData" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMapDelta), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMapDelta.Parser, new[]{ "Delta", "WithValueDeltas" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap), global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Parser, new[]{ "Keys", "Entries", "ValueTypeInfo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Parser, new[]{ "Keys", "Entries" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Parser, new[]{ "Keys", "Entries", "WithValueDeltas", "ValueTypeInfo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.Key), global::Akka.DistributedData.Serialization.Proto.Msg.Key.Parser, new[]{ "KeyId", "KeyType", "KeyTypeInfo", "ValueTypeInfo" }, null, null, null) + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ValType), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp), typeof(global::Akka.DistributedData.Serialization.Proto.Msg.KeyType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor), global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor.Parser, new[]{ "Type", "TypeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GSet), global::Akka.DistributedData.Serialization.Proto.Msg.GSet.Parser, new[]{ "StringElements", "TypeInfo", "IntElements", "LongElements", "OtherElements", "ActorRefElements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSet), global::Akka.DistributedData.Serialization.Proto.Msg.ORSet.Parser, new[]{ "Vvector", "TypeInfo", "Dots", "StringElements", "IntElements", "LongElements", "OtherElements", "ActorRefElements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup), global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Parser, new[]{ "Entries", "TypeInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Types.Entry.Parser, new[]{ "Operation", "Underlying" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.Flag), global::Akka.DistributedData.Serialization.Proto.Msg.Flag.Parser, new[]{ "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister), global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister.Parser, new[]{ "Timestamp", "Node", "State", "TypeInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GCounter), global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Parser, new[]{ "Entries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Types.Entry.Parser, new[]{ "Node", "Value" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter.Parser, new[]{ "Increments", "Decrements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMap), global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Parser, new[]{ "Keys", "Entries", "ValueTypeInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Parser, new[]{ "Entries", "KeyTypeInfo", "ValueTypeInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.MapEntry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.MapEntry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.Entry.Parser, new[]{ "Operation", "Underlying", "ZeroTag", "EntryData" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMapDelta), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMapDelta.Parser, new[]{ "Delta", "WithValueDeltas" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap), global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Parser, new[]{ "Keys", "Entries", "ValueTypeInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Parser, new[]{ "Keys", "Entries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Parser, new[]{ "Keys", "Entries", "WithValueDeltas", "ValueTypeInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Types.Entry), global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Types.Entry.Parser, new[]{ "StringKey", "Value", "IntKey", "LongKey", "OtherKey" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.DistributedData.Serialization.Proto.Msg.Key), global::Akka.DistributedData.Serialization.Proto.Msg.Key.Parser, new[]{ "KeyId", "KeyType", "KeyTypeInfo", "ValueTypeInfo" }, null, null, null, null) })); } #endregion @@ -200,22 +202,31 @@ internal enum KeyType { #endregion #region Messages - internal sealed partial class TypeDescriptor : pb::IMessage { + internal sealed partial class TypeDescriptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TypeDescriptor()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeDescriptor() { OnConstruction(); } @@ -223,20 +234,24 @@ public TypeDescriptor() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeDescriptor(TypeDescriptor other) : this() { type_ = other.type_; typeName_ = other.typeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeDescriptor Clone() { return new TypeDescriptor(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::Akka.DistributedData.Serialization.Proto.Msg.ValType type_ = 0; + private global::Akka.DistributedData.Serialization.Proto.Msg.ValType type_ = global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ValType Type { get { return type_; } set { @@ -251,6 +266,7 @@ public TypeDescriptor Clone() { /// used when ValType.Other is selected /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TypeName { get { return typeName_; } set { @@ -259,11 +275,13 @@ public string TypeName { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TypeDescriptor); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TypeDescriptor other) { if (ReferenceEquals(other, null)) { return false; @@ -273,25 +291,52 @@ public bool Equals(TypeDescriptor other) { } if (Type != other.Type) return false; if (TypeName != other.TypeName) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != 0) hash ^= Type.GetHashCode(); + if (Type != global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int) hash ^= Type.GetHashCode(); if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Type != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type != global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (TypeName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TypeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type != global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -299,43 +344,80 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(TypeName); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != 0) { + if (Type != global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (TypeName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TypeDescriptor other) { if (other == null) { return; } - if (other.Type != 0) { + if (other.Type != global::Akka.DistributedData.Serialization.Proto.Msg.ValType.Int) { Type = other.Type; } if (other.TypeName.Length != 0) { TypeName = other.TypeName; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Akka.DistributedData.Serialization.Proto.Msg.ValType) input.ReadEnum(); + break; + } + case 18: { + TypeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - type_ = (global::Akka.DistributedData.Serialization.Proto.Msg.ValType) input.ReadEnum(); + Type = (global::Akka.DistributedData.Serialization.Proto.Msg.ValType) input.ReadEnum(); break; } case 18: { @@ -345,25 +427,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class GSet : pb::IMessage { + internal sealed partial class GSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GSet()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GSet() { OnConstruction(); } @@ -371,16 +463,19 @@ public GSet() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GSet(GSet other) : this() { stringElements_ = other.stringElements_.Clone(); - TypeInfo = other.typeInfo_ != null ? other.TypeInfo.Clone() : null; + typeInfo_ = other.typeInfo_ != null ? other.typeInfo_.Clone() : null; intElements_ = other.intElements_.Clone(); longElements_ = other.longElements_.Clone(); otherElements_ = other.otherElements_.Clone(); actorRefElements_ = other.actorRefElements_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GSet Clone() { return new GSet(this); } @@ -391,6 +486,7 @@ public GSet Clone() { = pb::FieldCodec.ForString(10); private readonly pbc::RepeatedField stringElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StringElements { get { return stringElements_; } } @@ -399,6 +495,7 @@ public GSet Clone() { public const int TypeInfoFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor typeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor TypeInfo { get { return typeInfo_; } set { @@ -412,6 +509,7 @@ public GSet Clone() { = pb::FieldCodec.ForSInt32(26); private readonly pbc::RepeatedField intElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField IntElements { get { return intElements_; } } @@ -422,6 +520,7 @@ public GSet Clone() { = pb::FieldCodec.ForSInt64(34); private readonly pbc::RepeatedField longElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LongElements { get { return longElements_; } } @@ -432,6 +531,7 @@ public GSet Clone() { = pb::FieldCodec.ForMessage(42, global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage.Parser); private readonly pbc::RepeatedField otherElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField OtherElements { get { return otherElements_; } } @@ -442,16 +542,19 @@ public GSet Clone() { = pb::FieldCodec.ForString(50); private readonly pbc::RepeatedField actorRefElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ActorRefElements { get { return actorRefElements_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GSet); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GSet other) { if (ReferenceEquals(other, null)) { return false; @@ -465,10 +568,11 @@ public bool Equals(GSet other) { if(!longElements_.Equals(other.longElements_)) return false; if(!otherElements_.Equals(other.otherElements_)) return false; if(!actorRefElements_.Equals(other.actorRefElements_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= stringElements_.GetHashCode(); @@ -477,16 +581,24 @@ public override int GetHashCode() { hash ^= longElements_.GetHashCode(); hash ^= otherElements_.GetHashCode(); hash ^= actorRefElements_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else stringElements_.WriteTo(output, _repeated_stringElements_codec); if (typeInfo_ != null) { output.WriteRawTag(18); @@ -496,9 +608,33 @@ public void WriteTo(pb::CodedOutputStream output) { longElements_.WriteTo(output, _repeated_longElements_codec); otherElements_.WriteTo(output, _repeated_otherElements_codec); actorRefElements_.WriteTo(output, _repeated_actorRefElements_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + stringElements_.WriteTo(ref output, _repeated_stringElements_codec); + if (typeInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TypeInfo); + } + intElements_.WriteTo(ref output, _repeated_intElements_codec); + longElements_.WriteTo(ref output, _repeated_longElements_codec); + otherElements_.WriteTo(ref output, _repeated_otherElements_codec); + actorRefElements_.WriteTo(ref output, _repeated_actorRefElements_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += stringElements_.CalculateSize(_repeated_stringElements_codec); @@ -509,10 +645,14 @@ public int CalculateSize() { size += longElements_.CalculateSize(_repeated_longElements_codec); size += otherElements_.CalculateSize(_repeated_otherElements_codec); size += actorRefElements_.CalculateSize(_repeated_actorRefElements_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GSet other) { if (other == null) { return; @@ -520,7 +660,7 @@ public void MergeFrom(GSet other) { stringElements_.Add(other.stringElements_); if (other.typeInfo_ != null) { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } TypeInfo.MergeFrom(other.TypeInfo); } @@ -528,15 +668,20 @@ public void MergeFrom(GSet other) { longElements_.Add(other.longElements_); otherElements_.Add(other.otherElements_); actorRefElements_.Add(other.actorRefElements_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { stringElements_.AddEntriesFrom(input, _repeated_stringElements_codec); @@ -544,9 +689,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(typeInfo_); + input.ReadMessage(TypeInfo); break; } case 26: @@ -569,26 +714,80 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + stringElements_.AddEntriesFrom(ref input, _repeated_stringElements_codec); + break; + } + case 18: { + if (typeInfo_ == null) { + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(TypeInfo); + break; + } + case 26: + case 24: { + intElements_.AddEntriesFrom(ref input, _repeated_intElements_codec); + break; + } + case 34: + case 32: { + longElements_.AddEntriesFrom(ref input, _repeated_longElements_codec); + break; + } + case 42: { + otherElements_.AddEntriesFrom(ref input, _repeated_otherElements_codec); + break; + } + case 50: { + actorRefElements_.AddEntriesFrom(ref input, _repeated_actorRefElements_codec); + break; + } + } + } } + #endif } - internal sealed partial class ORSet : pb::IMessage { + internal sealed partial class ORSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORSet()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSet() { OnConstruction(); } @@ -596,18 +795,21 @@ public ORSet() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSet(ORSet other) : this() { - Vvector = other.vvector_ != null ? other.Vvector.Clone() : null; - TypeInfo = other.typeInfo_ != null ? other.TypeInfo.Clone() : null; + vvector_ = other.vvector_ != null ? other.vvector_.Clone() : null; + typeInfo_ = other.typeInfo_ != null ? other.typeInfo_.Clone() : null; dots_ = other.dots_.Clone(); stringElements_ = other.stringElements_.Clone(); intElements_ = other.intElements_.Clone(); longElements_ = other.longElements_.Clone(); otherElements_ = other.otherElements_.Clone(); actorRefElements_ = other.actorRefElements_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSet Clone() { return new ORSet(this); } @@ -616,6 +818,7 @@ public ORSet Clone() { public const int VvectorFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector vvector_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector Vvector { get { return vvector_; } set { @@ -627,6 +830,7 @@ public ORSet Clone() { public const int TypeInfoFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor typeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor TypeInfo { get { return typeInfo_; } set { @@ -640,6 +844,7 @@ public ORSet Clone() { = pb::FieldCodec.ForMessage(26, global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector.Parser); private readonly pbc::RepeatedField dots_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Dots { get { return dots_; } } @@ -650,6 +855,7 @@ public ORSet Clone() { = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField stringElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StringElements { get { return stringElements_; } } @@ -660,6 +866,7 @@ public ORSet Clone() { = pb::FieldCodec.ForSInt32(42); private readonly pbc::RepeatedField intElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField IntElements { get { return intElements_; } } @@ -670,6 +877,7 @@ public ORSet Clone() { = pb::FieldCodec.ForSInt64(50); private readonly pbc::RepeatedField longElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LongElements { get { return longElements_; } } @@ -680,6 +888,7 @@ public ORSet Clone() { = pb::FieldCodec.ForMessage(58, global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage.Parser); private readonly pbc::RepeatedField otherElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField OtherElements { get { return otherElements_; } } @@ -690,16 +899,19 @@ public ORSet Clone() { = pb::FieldCodec.ForString(66); private readonly pbc::RepeatedField actorRefElements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ActorRefElements { get { return actorRefElements_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORSet); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORSet other) { if (ReferenceEquals(other, null)) { return false; @@ -715,10 +927,11 @@ public bool Equals(ORSet other) { if(!longElements_.Equals(other.longElements_)) return false; if(!otherElements_.Equals(other.otherElements_)) return false; if(!actorRefElements_.Equals(other.actorRefElements_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (vvector_ != null) hash ^= Vvector.GetHashCode(); @@ -729,16 +942,24 @@ public override int GetHashCode() { hash ^= longElements_.GetHashCode(); hash ^= otherElements_.GetHashCode(); hash ^= actorRefElements_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (vvector_ != null) { output.WriteRawTag(10); output.WriteMessage(Vvector); @@ -753,9 +974,38 @@ public void WriteTo(pb::CodedOutputStream output) { longElements_.WriteTo(output, _repeated_longElements_codec); otherElements_.WriteTo(output, _repeated_otherElements_codec); actorRefElements_.WriteTo(output, _repeated_actorRefElements_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (vvector_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Vvector); + } + if (typeInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TypeInfo); + } + dots_.WriteTo(ref output, _repeated_dots_codec); + stringElements_.WriteTo(ref output, _repeated_stringElements_codec); + intElements_.WriteTo(ref output, _repeated_intElements_codec); + longElements_.WriteTo(ref output, _repeated_longElements_codec); + otherElements_.WriteTo(ref output, _repeated_otherElements_codec); + actorRefElements_.WriteTo(ref output, _repeated_actorRefElements_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (vvector_ != null) { @@ -770,23 +1020,27 @@ public int CalculateSize() { size += longElements_.CalculateSize(_repeated_longElements_codec); size += otherElements_.CalculateSize(_repeated_otherElements_codec); size += actorRefElements_.CalculateSize(_repeated_actorRefElements_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORSet other) { if (other == null) { return; } if (other.vvector_ != null) { if (vvector_ == null) { - vvector_ = new global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector(); + Vvector = new global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector(); } Vvector.MergeFrom(other.Vvector); } if (other.typeInfo_ != null) { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } TypeInfo.MergeFrom(other.TypeInfo); } @@ -796,28 +1050,33 @@ public void MergeFrom(ORSet other) { longElements_.Add(other.longElements_); otherElements_.Add(other.otherElements_); actorRefElements_.Add(other.actorRefElements_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (vvector_ == null) { - vvector_ = new global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector(); + Vvector = new global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector(); } - input.ReadMessage(vvector_); + input.ReadMessage(Vvector); break; } case 18: { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(typeInfo_); + input.ReadMessage(TypeInfo); break; } case 26: { @@ -848,26 +1107,91 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (vvector_ == null) { + Vvector = new global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector(); + } + input.ReadMessage(Vvector); + break; + } + case 18: { + if (typeInfo_ == null) { + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(TypeInfo); + break; + } + case 26: { + dots_.AddEntriesFrom(ref input, _repeated_dots_codec); + break; + } + case 34: { + stringElements_.AddEntriesFrom(ref input, _repeated_stringElements_codec); + break; + } + case 42: + case 40: { + intElements_.AddEntriesFrom(ref input, _repeated_intElements_codec); + break; + } + case 50: + case 48: { + longElements_.AddEntriesFrom(ref input, _repeated_longElements_codec); + break; + } + case 58: { + otherElements_.AddEntriesFrom(ref input, _repeated_otherElements_codec); + break; + } + case 66: { + actorRefElements_.AddEntriesFrom(ref input, _repeated_actorRefElements_codec); + break; + } + } + } } + #endif } - internal sealed partial class ORSetDeltaGroup : pb::IMessage { + internal sealed partial class ORSetDeltaGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORSetDeltaGroup()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSetDeltaGroup() { OnConstruction(); } @@ -875,12 +1199,15 @@ public ORSetDeltaGroup() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSetDeltaGroup(ORSetDeltaGroup other) : this() { entries_ = other.entries_.Clone(); - TypeInfo = other.typeInfo_ != null ? other.TypeInfo.Clone() : null; + typeInfo_ = other.typeInfo_ != null ? other.typeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORSetDeltaGroup Clone() { return new ORSetDeltaGroup(this); } @@ -891,6 +1218,7 @@ public ORSetDeltaGroup Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -899,6 +1227,7 @@ public ORSetDeltaGroup Clone() { public const int TypeInfoFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor typeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor TypeInfo { get { return typeInfo_; } set { @@ -907,11 +1236,13 @@ public ORSetDeltaGroup Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORSetDeltaGroup); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORSetDeltaGroup other) { if (ReferenceEquals(other, null)) { return false; @@ -921,42 +1252,75 @@ public bool Equals(ORSetDeltaGroup other) { } if(!entries_.Equals(other.entries_)) return false; if (!object.Equals(TypeInfo, other.TypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= entries_.GetHashCode(); if (typeInfo_ != null) hash ^= TypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else entries_.WriteTo(output, _repeated_entries_codec); if (typeInfo_ != null) { output.WriteRawTag(18); output.WriteMessage(TypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entries_.WriteTo(ref output, _repeated_entries_codec); + if (typeInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += entries_.CalculateSize(_repeated_entries_codec); if (typeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORSetDeltaGroup other) { if (other == null) { return; @@ -964,19 +1328,24 @@ public void MergeFrom(ORSetDeltaGroup other) { entries_.Add(other.entries_); if (other.typeInfo_ != null) { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } TypeInfo.MergeFrom(other.TypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { entries_.AddEntriesFrom(input, _repeated_entries_codec); @@ -984,35 +1353,72 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(TypeInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + case 18: { + if (typeInfo_ == null) { + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(typeInfo_); + input.ReadMessage(TypeInfo); break; } } } } + #endif #region Nested types /// Container for nested types declared in the ORSetDeltaGroup message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaGroup.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -1020,20 +1426,24 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { operation_ = other.operation_; - Underlying = other.underlying_ != null ? other.Underlying.Clone() : null; + underlying_ = other.underlying_ != null ? other.underlying_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } /// Field number for the "operation" field. public const int OperationFieldNumber = 1; - private global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp operation_ = 0; + private global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp operation_ = global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp Operation { get { return operation_; } set { @@ -1045,6 +1455,7 @@ public Entry Clone() { public const int UnderlyingFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet underlying_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Underlying { get { return underlying_; } set { @@ -1053,11 +1464,13 @@ public Entry Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -1067,25 +1480,52 @@ public bool Equals(Entry other) { } if (Operation != other.Operation) return false; if (!object.Equals(Underlying, other.Underlying)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Operation != 0) hash ^= Operation.GetHashCode(); + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add) hash ^= Operation.GetHashCode(); if (underlying_ != null) hash ^= Underlying.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Operation != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add) { + output.WriteRawTag(8); + output.WriteEnum((int) Operation); + } + if (underlying_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Underlying); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add) { output.WriteRawTag(8); output.WriteEnum((int) Operation); } @@ -1093,58 +1533,99 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Underlying); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Operation != 0) { + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); } if (underlying_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Underlying); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; } - if (other.Operation != 0) { + if (other.Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp.Add) { Operation = other.Operation; } if (other.underlying_ != null) { if (underlying_ == null) { - underlying_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Underlying.MergeFrom(other.Underlying); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Operation = (global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp) input.ReadEnum(); + break; + } + case 18: { + if (underlying_ == null) { + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Underlying); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - operation_ = (global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp) input.ReadEnum(); + Operation = (global::Akka.DistributedData.Serialization.Proto.Msg.ORSetDeltaOp) input.ReadEnum(); break; } case 18: { if (underlying_ == null) { - underlying_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(underlying_); + input.ReadMessage(Underlying); break; } } } } + #endif } @@ -1153,22 +1634,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Flag : pb::IMessage { + internal sealed partial class Flag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Flag()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Flag() { OnConstruction(); } @@ -1176,11 +1666,14 @@ public Flag() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Flag(Flag other) : this() { enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Flag Clone() { return new Flag(this); } @@ -1189,6 +1682,7 @@ public Flag Clone() { public const int EnabledFieldNumber = 1; private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { get { return enabled_; } set { @@ -1197,11 +1691,13 @@ public bool Enabled { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Flag); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Flag other) { if (ReferenceEquals(other, null)) { return false; @@ -1210,39 +1706,71 @@ public bool Equals(Flag other) { return true; } if (Enabled != other.Enabled) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Enabled != false) { output.WriteRawTag(8); output.WriteBool(Enabled); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Enabled != false) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Flag other) { if (other == null) { return; @@ -1250,15 +1778,39 @@ public void MergeFrom(Flag other) { if (other.Enabled != false) { Enabled = other.Enabled; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Enabled = input.ReadBool(); @@ -1267,25 +1819,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class LWWRegister : pb::IMessage { + internal sealed partial class LWWRegister : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LWWRegister()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWRegister() { OnConstruction(); } @@ -1293,14 +1855,17 @@ public LWWRegister() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWRegister(LWWRegister other) : this() { timestamp_ = other.timestamp_; - Node = other.node_ != null ? other.Node.Clone() : null; - State = other.state_ != null ? other.State.Clone() : null; - TypeInfo = other.typeInfo_ != null ? other.TypeInfo.Clone() : null; + node_ = other.node_ != null ? other.node_.Clone() : null; + state_ = other.state_ != null ? other.state_.Clone() : null; + typeInfo_ = other.typeInfo_ != null ? other.typeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWRegister Clone() { return new LWWRegister(this); } @@ -1309,6 +1874,7 @@ public LWWRegister Clone() { public const int TimestampFieldNumber = 1; private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { get { return timestamp_; } set { @@ -1320,6 +1886,7 @@ public long Timestamp { public const int NodeFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress node_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress Node { get { return node_; } set { @@ -1331,6 +1898,7 @@ public long Timestamp { public const int StateFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage state_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage State { get { return state_; } set { @@ -1342,6 +1910,7 @@ public long Timestamp { public const int TypeInfoFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor typeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor TypeInfo { get { return typeInfo_; } set { @@ -1350,11 +1919,13 @@ public long Timestamp { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LWWRegister); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LWWRegister other) { if (ReferenceEquals(other, null)) { return false; @@ -1366,26 +1937,61 @@ public bool Equals(LWWRegister other) { if (!object.Equals(Node, other.Node)) return false; if (!object.Equals(State, other.State)) return false; if (!object.Equals(TypeInfo, other.TypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); if (node_ != null) hash ^= Node.GetHashCode(); if (state_ != null) hash ^= State.GetHashCode(); if (typeInfo_ != null) hash ^= TypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Timestamp != 0L) { + output.WriteRawTag(8); + output.WriteSInt64(Timestamp); + } + if (node_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Node); + } + if (state_ != null) { + output.WriteRawTag(26); + output.WriteMessage(State); + } + if (typeInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Timestamp != 0L) { output.WriteRawTag(8); output.WriteSInt64(Timestamp); @@ -1402,9 +2008,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(TypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Timestamp != 0L) { @@ -1419,10 +2030,14 @@ public int CalculateSize() { if (typeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LWWRegister other) { if (other == null) { return; @@ -1432,31 +2047,36 @@ public void MergeFrom(LWWRegister other) { } if (other.node_ != null) { if (node_ == null) { - node_ = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); } Node.MergeFrom(other.Node); } if (other.state_ != null) { if (state_ == null) { - state_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + State = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } State.MergeFrom(other.State); } if (other.typeInfo_ != null) { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } TypeInfo.MergeFrom(other.TypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Timestamp = input.ReadSInt64(); @@ -1464,59 +2084,112 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (node_ == null) { - node_ = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(node_); + input.ReadMessage(Node); break; } case 26: { if (state_ == null) { - state_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + State = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(state_); + input.ReadMessage(State); break; } case 34: { if (typeInfo_ == null) { - typeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(typeInfo_); + input.ReadMessage(TypeInfo); break; } } } + #endif } - } - - internal sealed partial class GCounter : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GCounter()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public GCounter() { - OnConstruction(); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Timestamp = input.ReadSInt64(); + break; + } + case 18: { + if (node_ == null) { + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(Node); + break; + } + case 26: { + if (state_ == null) { + State = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(State); + break; + } + case 34: { + if (typeInfo_ == null) { + TypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(TypeInfo); + break; + } + } + } + } + #endif + + } + + internal sealed partial class GCounter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GCounter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GCounter() { + OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GCounter(GCounter other) : this() { entries_ = other.entries_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GCounter Clone() { return new GCounter(this); } @@ -1527,16 +2200,19 @@ public GCounter Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GCounter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GCounter other) { if (ReferenceEquals(other, null)) { return false; @@ -1545,48 +2221,82 @@ public bool Equals(GCounter other) { return true; } if(!entries_.Equals(other.entries_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= entries_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else entries_.WriteTo(output, _repeated_entries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entries_.WriteTo(ref output, _repeated_entries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += entries_.CalculateSize(_repeated_entries_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GCounter other) { if (other == null) { return; } entries_.Add(other.entries_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { entries_.AddEntriesFrom(input, _repeated_entries_codec); @@ -1594,28 +2304,58 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + } + } } + #endif #region Nested types /// Container for nested types declared in the GCounter message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.GCounter.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -1623,12 +2363,15 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { - Node = other.node_ != null ? other.Node.Clone() : null; + node_ = other.node_ != null ? other.node_.Clone() : null; value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -1637,6 +2380,7 @@ public Entry Clone() { public const int NodeFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress node_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress Node { get { return node_; } set { @@ -1648,6 +2392,7 @@ public Entry Clone() { public const int ValueFieldNumber = 2; private pb::ByteString value_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Value { get { return value_; } set { @@ -1656,11 +2401,13 @@ public Entry Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -1670,24 +2417,33 @@ public bool Equals(Entry other) { } if (!object.Equals(Node, other.Node)) return false; if (Value != other.Value) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (node_ != null) hash ^= Node.GetHashCode(); if (Value.Length != 0) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (node_ != null) { output.WriteRawTag(10); output.WriteMessage(Node); @@ -1696,9 +2452,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteBytes(Value); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (node_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Node); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (node_ != null) { @@ -1707,38 +2486,73 @@ public int CalculateSize() { if (Value.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; } if (other.node_ != null) { if (node_ == null) { - node_ = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); } Node.MergeFrom(other.Node); } if (other.Value.Length != 0) { Value = other.Value; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (node_ == null) { + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(Node); + break; + } + case 18: { + Value = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (node_ == null) { - node_ = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(node_); + input.ReadMessage(Node); break; } case 18: { @@ -1748,6 +2562,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } @@ -1756,22 +2571,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class PNCounter : pb::IMessage { + internal sealed partial class PNCounter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PNCounter()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounter() { OnConstruction(); } @@ -1779,12 +2603,15 @@ public PNCounter() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounter(PNCounter other) : this() { - Increments = other.increments_ != null ? other.Increments.Clone() : null; - Decrements = other.decrements_ != null ? other.Decrements.Clone() : null; + increments_ = other.increments_ != null ? other.increments_.Clone() : null; + decrements_ = other.decrements_ != null ? other.decrements_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounter Clone() { return new PNCounter(this); } @@ -1793,6 +2620,7 @@ public PNCounter Clone() { public const int IncrementsFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.GCounter increments_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.GCounter Increments { get { return increments_; } set { @@ -1804,6 +2632,7 @@ public PNCounter Clone() { public const int DecrementsFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.GCounter decrements_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.GCounter Decrements { get { return decrements_; } set { @@ -1812,11 +2641,13 @@ public PNCounter Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PNCounter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PNCounter other) { if (ReferenceEquals(other, null)) { return false; @@ -1826,24 +2657,33 @@ public bool Equals(PNCounter other) { } if (!object.Equals(Increments, other.Increments)) return false; if (!object.Equals(Decrements, other.Decrements)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (increments_ != null) hash ^= Increments.GetHashCode(); if (decrements_ != null) hash ^= Decrements.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (increments_ != null) { output.WriteRawTag(10); output.WriteMessage(Increments); @@ -1852,9 +2692,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Decrements); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (increments_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Increments); + } + if (decrements_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Decrements); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (increments_ != null) { @@ -1863,72 +2726,120 @@ public int CalculateSize() { if (decrements_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decrements); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PNCounter other) { if (other == null) { return; } if (other.increments_ != null) { if (increments_ == null) { - increments_ = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + Increments = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); } Increments.MergeFrom(other.Increments); } if (other.decrements_ != null) { if (decrements_ == null) { - decrements_ = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + Decrements = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); } Decrements.MergeFrom(other.Decrements); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (increments_ == null) { - increments_ = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + Increments = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); } - input.ReadMessage(increments_); + input.ReadMessage(Increments); break; } case 18: { if (decrements_ == null) { - decrements_ = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + Decrements = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); } - input.ReadMessage(decrements_); + input.ReadMessage(Decrements); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (increments_ == null) { + Increments = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + } + input.ReadMessage(Increments); + break; + } + case 18: { + if (decrements_ == null) { + Decrements = new global::Akka.DistributedData.Serialization.Proto.Msg.GCounter(); + } + input.ReadMessage(Decrements); + break; + } + } + } + } + #endif + } - internal sealed partial class ORMap : pb::IMessage { + internal sealed partial class ORMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORMap()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMap() { OnConstruction(); } @@ -1936,13 +2847,16 @@ public ORMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMap(ORMap other) : this() { - Keys = other.keys_ != null ? other.Keys.Clone() : null; + keys_ = other.keys_ != null ? other.keys_.Clone() : null; entries_ = other.entries_.Clone(); - ValueTypeInfo = other.valueTypeInfo_ != null ? other.ValueTypeInfo.Clone() : null; + valueTypeInfo_ = other.valueTypeInfo_ != null ? other.valueTypeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMap Clone() { return new ORMap(this); } @@ -1951,6 +2865,7 @@ public ORMap Clone() { public const int KeysFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet keys_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Keys { get { return keys_; } set { @@ -1964,6 +2879,7 @@ public ORMap Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -1972,6 +2888,7 @@ public ORMap Clone() { public const int ValueTypeInfoFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor valueTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor ValueTypeInfo { get { return valueTypeInfo_; } set { @@ -1980,11 +2897,13 @@ public ORMap Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORMap other) { if (ReferenceEquals(other, null)) { return false; @@ -1995,25 +2914,34 @@ public bool Equals(ORMap other) { if (!object.Equals(Keys, other.Keys)) return false; if(!entries_.Equals(other.entries_)) return false; if (!object.Equals(ValueTypeInfo, other.ValueTypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (keys_ != null) hash ^= Keys.GetHashCode(); hash ^= entries_.GetHashCode(); if (valueTypeInfo_ != null) hash ^= ValueTypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (keys_ != null) { output.WriteRawTag(10); output.WriteMessage(Keys); @@ -2023,9 +2951,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(ValueTypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (keys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keys); + } + entries_.WriteTo(ref output, _repeated_entries_codec); + if (valueTypeInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ValueTypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (keys_ != null) { @@ -2035,42 +2987,51 @@ public int CalculateSize() { if (valueTypeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueTypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORMap other) { if (other == null) { return; } if (other.keys_ != null) { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Keys.MergeFrom(other.Keys); } entries_.Add(other.entries_); if (other.valueTypeInfo_ != null) { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } ValueTypeInfo.MergeFrom(other.ValueTypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(keys_); + input.ReadMessage(Keys); break; } case 18: { @@ -2079,35 +3040,79 @@ public void MergeFrom(pb::CodedInputStream input) { } case 34: { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(ValueTypeInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (keys_ == null) { + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Keys); + break; + } + case 18: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + case 34: { + if (valueTypeInfo_ == null) { + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(valueTypeInfo_); + input.ReadMessage(ValueTypeInfo); break; } } } } + #endif #region Nested types /// Container for nested types declared in the ORMap message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ORMap.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -2115,15 +3120,18 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { stringKey_ = other.stringKey_; - Value = other.value_ != null ? other.Value.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; intKey_ = other.intKey_; longKey_ = other.longKey_; - OtherKey = other.otherKey_ != null ? other.OtherKey.Clone() : null; + otherKey_ = other.otherKey_ != null ? other.otherKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -2132,6 +3140,7 @@ public Entry Clone() { public const int StringKeyFieldNumber = 1; private string stringKey_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringKey { get { return stringKey_; } set { @@ -2143,6 +3152,7 @@ public string StringKey { public const int ValueFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Value { get { return value_; } set { @@ -2154,6 +3164,7 @@ public string StringKey { public const int IntKeyFieldNumber = 3; private int intKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IntKey { get { return intKey_; } set { @@ -2165,6 +3176,7 @@ public int IntKey { public const int LongKeyFieldNumber = 4; private long longKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long LongKey { get { return longKey_; } set { @@ -2176,6 +3188,7 @@ public long LongKey { public const int OtherKeyFieldNumber = 5; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage otherKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage OtherKey { get { return otherKey_; } set { @@ -2184,11 +3197,13 @@ public long LongKey { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -2201,10 +3216,11 @@ public bool Equals(Entry other) { if (IntKey != other.IntKey) return false; if (LongKey != other.LongKey) return false; if (!object.Equals(OtherKey, other.OtherKey)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StringKey.Length != 0) hash ^= StringKey.GetHashCode(); @@ -2212,16 +3228,24 @@ public override int GetHashCode() { if (IntKey != 0) hash ^= IntKey.GetHashCode(); if (LongKey != 0L) hash ^= LongKey.GetHashCode(); if (otherKey_ != null) hash ^= OtherKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (StringKey.Length != 0) { output.WriteRawTag(10); output.WriteString(StringKey); @@ -2242,9 +3266,44 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(OtherKey); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StringKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StringKey); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (IntKey != 0) { + output.WriteRawTag(24); + output.WriteSInt32(IntKey); + } + if (LongKey != 0L) { + output.WriteRawTag(32); + output.WriteSInt64(LongKey); + } + if (otherKey_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OtherKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StringKey.Length != 0) { @@ -2262,10 +3321,14 @@ public int CalculateSize() { if (otherKey_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtherKey); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -2275,7 +3338,7 @@ public void MergeFrom(Entry other) { } if (other.value_ != null) { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } Value.MergeFrom(other.Value); } @@ -2287,19 +3350,24 @@ public void MergeFrom(Entry other) { } if (other.otherKey_ != null) { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } OtherKey.MergeFrom(other.OtherKey); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { StringKey = input.ReadString(); @@ -2307,9 +3375,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } case 24: { @@ -2322,15 +3390,57 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(otherKey_); + input.ReadMessage(OtherKey); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + StringKey = input.ReadString(); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(Value); + break; + } + case 24: { + IntKey = input.ReadSInt32(); + break; + } + case 32: { + LongKey = input.ReadSInt64(); + break; + } + case 42: { + if (otherKey_ == null) { + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(OtherKey); + break; + } + } + } + } + #endif + } } @@ -2338,22 +3448,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ORMapDeltaGroup : pb::IMessage { + internal sealed partial class ORMapDeltaGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORMapDeltaGroup()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMapDeltaGroup() { OnConstruction(); } @@ -2361,13 +3480,16 @@ public ORMapDeltaGroup() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMapDeltaGroup(ORMapDeltaGroup other) : this() { entries_ = other.entries_.Clone(); - KeyTypeInfo = other.keyTypeInfo_ != null ? other.KeyTypeInfo.Clone() : null; - ValueTypeInfo = other.valueTypeInfo_ != null ? other.ValueTypeInfo.Clone() : null; + keyTypeInfo_ = other.keyTypeInfo_ != null ? other.keyTypeInfo_.Clone() : null; + valueTypeInfo_ = other.valueTypeInfo_ != null ? other.valueTypeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMapDeltaGroup Clone() { return new ORMapDeltaGroup(this); } @@ -2378,6 +3500,7 @@ public ORMapDeltaGroup Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -2386,6 +3509,7 @@ public ORMapDeltaGroup Clone() { public const int KeyTypeInfoFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor keyTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor KeyTypeInfo { get { return keyTypeInfo_; } set { @@ -2397,6 +3521,7 @@ public ORMapDeltaGroup Clone() { public const int ValueTypeInfoFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor valueTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor ValueTypeInfo { get { return valueTypeInfo_; } set { @@ -2405,11 +3530,13 @@ public ORMapDeltaGroup Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORMapDeltaGroup); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORMapDeltaGroup other) { if (ReferenceEquals(other, null)) { return false; @@ -2420,25 +3547,34 @@ public bool Equals(ORMapDeltaGroup other) { if(!entries_.Equals(other.entries_)) return false; if (!object.Equals(KeyTypeInfo, other.KeyTypeInfo)) return false; if (!object.Equals(ValueTypeInfo, other.ValueTypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= entries_.GetHashCode(); if (keyTypeInfo_ != null) hash ^= KeyTypeInfo.GetHashCode(); if (valueTypeInfo_ != null) hash ^= ValueTypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else entries_.WriteTo(output, _repeated_entries_codec); if (keyTypeInfo_ != null) { output.WriteRawTag(18); @@ -2448,9 +3584,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(ValueTypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entries_.WriteTo(ref output, _repeated_entries_codec); + if (keyTypeInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(KeyTypeInfo); + } + if (valueTypeInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ValueTypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += entries_.CalculateSize(_repeated_entries_codec); @@ -2460,10 +3620,14 @@ public int CalculateSize() { if (valueTypeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueTypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORMapDeltaGroup other) { if (other == null) { return; @@ -2471,25 +3635,30 @@ public void MergeFrom(ORMapDeltaGroup other) { entries_.Add(other.entries_); if (other.keyTypeInfo_ != null) { if (keyTypeInfo_ == null) { - keyTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } KeyTypeInfo.MergeFrom(other.KeyTypeInfo); } if (other.valueTypeInfo_ != null) { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } ValueTypeInfo.MergeFrom(other.ValueTypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { entries_.AddEntriesFrom(input, _repeated_entries_codec); @@ -2497,42 +3666,86 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (keyTypeInfo_ == null) { - keyTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(keyTypeInfo_); + input.ReadMessage(KeyTypeInfo); break; } case 26: { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(valueTypeInfo_); + input.ReadMessage(ValueTypeInfo); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + case 18: { + if (keyTypeInfo_ == null) { + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(KeyTypeInfo); + break; + } + case 26: { + if (valueTypeInfo_ == null) { + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(ValueTypeInfo); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the ORMapDeltaGroup message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class MapEntry : pb::IMessage { + internal sealed partial class MapEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapEntry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapEntry() { OnConstruction(); } @@ -2540,15 +3753,18 @@ public MapEntry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapEntry(MapEntry other) : this() { stringKey_ = other.stringKey_; - Value = other.value_ != null ? other.Value.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; intKey_ = other.intKey_; longKey_ = other.longKey_; - OtherKey = other.otherKey_ != null ? other.OtherKey.Clone() : null; + otherKey_ = other.otherKey_ != null ? other.otherKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapEntry Clone() { return new MapEntry(this); } @@ -2557,6 +3773,7 @@ public MapEntry Clone() { public const int StringKeyFieldNumber = 1; private string stringKey_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringKey { get { return stringKey_; } set { @@ -2568,6 +3785,7 @@ public string StringKey { public const int ValueFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Value { get { return value_; } set { @@ -2579,6 +3797,7 @@ public string StringKey { public const int IntKeyFieldNumber = 3; private int intKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IntKey { get { return intKey_; } set { @@ -2590,6 +3809,7 @@ public int IntKey { public const int LongKeyFieldNumber = 4; private long longKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long LongKey { get { return longKey_; } set { @@ -2601,6 +3821,7 @@ public long LongKey { public const int OtherKeyFieldNumber = 5; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage otherKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage OtherKey { get { return otherKey_; } set { @@ -2609,11 +3830,13 @@ public long LongKey { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MapEntry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MapEntry other) { if (ReferenceEquals(other, null)) { return false; @@ -2626,10 +3849,11 @@ public bool Equals(MapEntry other) { if (IntKey != other.IntKey) return false; if (LongKey != other.LongKey) return false; if (!object.Equals(OtherKey, other.OtherKey)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StringKey.Length != 0) hash ^= StringKey.GetHashCode(); @@ -2637,16 +3861,54 @@ public override int GetHashCode() { if (IntKey != 0) hash ^= IntKey.GetHashCode(); if (LongKey != 0L) hash ^= LongKey.GetHashCode(); if (otherKey_ != null) hash ^= OtherKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StringKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StringKey); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (IntKey != 0) { + output.WriteRawTag(24); + output.WriteSInt32(IntKey); + } + if (LongKey != 0L) { + output.WriteRawTag(32); + output.WriteSInt64(LongKey); + } + if (otherKey_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OtherKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StringKey.Length != 0) { output.WriteRawTag(10); output.WriteString(StringKey); @@ -2667,9 +3929,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(OtherKey); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StringKey.Length != 0) { @@ -2687,10 +3954,14 @@ public int CalculateSize() { if (otherKey_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtherKey); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MapEntry other) { if (other == null) { return; @@ -2700,7 +3971,7 @@ public void MergeFrom(MapEntry other) { } if (other.value_ != null) { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } Value.MergeFrom(other.Value); } @@ -2712,19 +3983,65 @@ public void MergeFrom(MapEntry other) { } if (other.otherKey_ != null) { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } OtherKey.MergeFrom(other.OtherKey); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StringKey = input.ReadString(); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(Value); + break; + } + case 24: { + IntKey = input.ReadSInt32(); + break; + } + case 32: { + LongKey = input.ReadSInt64(); + break; + } + case 42: { + if (otherKey_ == null) { + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(OtherKey); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StringKey = input.ReadString(); @@ -2732,9 +4049,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } case 24: { @@ -2747,33 +4064,43 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(otherKey_); + input.ReadMessage(OtherKey); break; } } } } + #endif } - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -2781,22 +4108,26 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { operation_ = other.operation_; - Underlying = other.underlying_ != null ? other.Underlying.Clone() : null; + underlying_ = other.underlying_ != null ? other.underlying_.Clone() : null; zeroTag_ = other.zeroTag_; entryData_ = other.entryData_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } /// Field number for the "operation" field. public const int OperationFieldNumber = 1; - private global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp operation_ = 0; + private global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp operation_ = global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp Operation { get { return operation_; } set { @@ -2808,6 +4139,7 @@ public Entry Clone() { public const int UnderlyingFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet underlying_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Underlying { get { return underlying_; } set { @@ -2819,6 +4151,7 @@ public Entry Clone() { public const int ZeroTagFieldNumber = 3; private int zeroTag_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ZeroTag { get { return zeroTag_; } set { @@ -2832,16 +4165,19 @@ public int ZeroTag { = pb::FieldCodec.ForMessage(34, global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup.Types.MapEntry.Parser); private readonly pbc::RepeatedField entryData_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField EntryData { get { return entryData_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -2853,27 +4189,36 @@ public bool Equals(Entry other) { if (!object.Equals(Underlying, other.Underlying)) return false; if (ZeroTag != other.ZeroTag) return false; if(!entryData_.Equals(other.entryData_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Operation != 0) hash ^= Operation.GetHashCode(); + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut) hash ^= Operation.GetHashCode(); if (underlying_ != null) hash ^= Underlying.GetHashCode(); if (ZeroTag != 0) hash ^= ZeroTag.GetHashCode(); hash ^= entryData_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Operation != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut) { output.WriteRawTag(8); output.WriteEnum((int) Operation); } @@ -2886,12 +4231,40 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteSInt32(ZeroTag); } entryData_.WriteTo(output, _repeated_entryData_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut) { + output.WriteRawTag(8); + output.WriteEnum((int) Operation); + } + if (underlying_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Underlying); + } + if (ZeroTag != 0) { + output.WriteRawTag(24); + output.WriteSInt32(ZeroTag); + } + entryData_.WriteTo(ref output, _repeated_entryData_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Operation != 0) { + if (Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); } if (underlying_ != null) { @@ -2901,20 +4274,24 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeSInt32Size(ZeroTag); } size += entryData_.CalculateSize(_repeated_entryData_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; } - if (other.Operation != 0) { + if (other.Operation != global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp.OrmapPut) { Operation = other.Operation; } if (other.underlying_ != null) { if (underlying_ == null) { - underlying_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Underlying.MergeFrom(other.Underlying); } @@ -2922,25 +4299,30 @@ public void MergeFrom(Entry other) { ZeroTag = other.ZeroTag; } entryData_.Add(other.entryData_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - operation_ = (global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp) input.ReadEnum(); + Operation = (global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp) input.ReadEnum(); break; } case 18: { if (underlying_ == null) { - underlying_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(underlying_); + input.ReadMessage(Underlying); break; } case 24: { @@ -2953,8 +4335,43 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Operation = (global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaOp) input.ReadEnum(); + break; + } + case 18: { + if (underlying_ == null) { + Underlying = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Underlying); + break; + } + case 24: { + ZeroTag = input.ReadSInt32(); + break; + } + case 34: { + entryData_.AddEntriesFrom(ref input, _repeated_entryData_codec); + break; + } + } + } + } + #endif + } } @@ -2962,22 +4379,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ORMultiMapDelta : pb::IMessage { + internal sealed partial class ORMultiMapDelta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORMultiMapDelta()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMapDelta() { OnConstruction(); } @@ -2985,12 +4411,15 @@ public ORMultiMapDelta() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMapDelta(ORMultiMapDelta other) : this() { - Delta = other.delta_ != null ? other.Delta.Clone() : null; + delta_ = other.delta_ != null ? other.delta_.Clone() : null; withValueDeltas_ = other.withValueDeltas_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMapDelta Clone() { return new ORMultiMapDelta(this); } @@ -2999,6 +4428,7 @@ public ORMultiMapDelta Clone() { public const int DeltaFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup delta_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup Delta { get { return delta_; } set { @@ -3010,6 +4440,7 @@ public ORMultiMapDelta Clone() { public const int WithValueDeltasFieldNumber = 2; private bool withValueDeltas_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool WithValueDeltas { get { return withValueDeltas_; } set { @@ -3018,11 +4449,13 @@ public bool WithValueDeltas { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORMultiMapDelta); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORMultiMapDelta other) { if (ReferenceEquals(other, null)) { return false; @@ -3032,24 +4465,51 @@ public bool Equals(ORMultiMapDelta other) { } if (!object.Equals(Delta, other.Delta)) return false; if (WithValueDeltas != other.WithValueDeltas) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (delta_ != null) hash ^= Delta.GetHashCode(); if (WithValueDeltas != false) hash ^= WithValueDeltas.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delta_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delta); + } + if (WithValueDeltas != false) { + output.WriteRawTag(16); + output.WriteBool(WithValueDeltas); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (delta_ != null) { output.WriteRawTag(10); output.WriteMessage(Delta); @@ -3058,9 +4518,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteBool(WithValueDeltas); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (delta_ != null) { @@ -3069,38 +4534,73 @@ public int CalculateSize() { if (WithValueDeltas != false) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORMultiMapDelta other) { if (other == null) { return; } if (other.delta_ != null) { if (delta_ == null) { - delta_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup(); + Delta = new global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup(); } Delta.MergeFrom(other.Delta); } if (other.WithValueDeltas != false) { WithValueDeltas = other.WithValueDeltas; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delta_ == null) { + Delta = new global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup(); + } + input.ReadMessage(Delta); + break; + } + case 16: { + WithValueDeltas = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (delta_ == null) { - delta_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup(); + Delta = new global::Akka.DistributedData.Serialization.Proto.Msg.ORMapDeltaGroup(); } - input.ReadMessage(delta_); + input.ReadMessage(Delta); break; } case 16: { @@ -3110,25 +4610,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class LWWMap : pb::IMessage { + internal sealed partial class LWWMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LWWMap()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWMap() { OnConstruction(); } @@ -3136,13 +4646,16 @@ public LWWMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWMap(LWWMap other) : this() { - Keys = other.keys_ != null ? other.Keys.Clone() : null; + keys_ = other.keys_ != null ? other.keys_.Clone() : null; entries_ = other.entries_.Clone(); - ValueTypeInfo = other.valueTypeInfo_ != null ? other.ValueTypeInfo.Clone() : null; + valueTypeInfo_ = other.valueTypeInfo_ != null ? other.valueTypeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LWWMap Clone() { return new LWWMap(this); } @@ -3151,6 +4664,7 @@ public LWWMap Clone() { public const int KeysFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet keys_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Keys { get { return keys_; } set { @@ -3164,6 +4678,7 @@ public LWWMap Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -3172,6 +4687,7 @@ public LWWMap Clone() { public const int ValueTypeInfoFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor valueTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor ValueTypeInfo { get { return valueTypeInfo_; } set { @@ -3180,11 +4696,13 @@ public LWWMap Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LWWMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LWWMap other) { if (ReferenceEquals(other, null)) { return false; @@ -3195,25 +4713,34 @@ public bool Equals(LWWMap other) { if (!object.Equals(Keys, other.Keys)) return false; if(!entries_.Equals(other.entries_)) return false; if (!object.Equals(ValueTypeInfo, other.ValueTypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (keys_ != null) hash ^= Keys.GetHashCode(); hash ^= entries_.GetHashCode(); if (valueTypeInfo_ != null) hash ^= ValueTypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (keys_ != null) { output.WriteRawTag(10); output.WriteMessage(Keys); @@ -3223,9 +4750,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(ValueTypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (keys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keys); + } + entries_.WriteTo(ref output, _repeated_entries_codec); + if (valueTypeInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ValueTypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (keys_ != null) { @@ -3235,42 +4786,51 @@ public int CalculateSize() { if (valueTypeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueTypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LWWMap other) { if (other == null) { return; } if (other.keys_ != null) { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Keys.MergeFrom(other.Keys); } entries_.Add(other.entries_); if (other.valueTypeInfo_ != null) { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } ValueTypeInfo.MergeFrom(other.ValueTypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(keys_); + input.ReadMessage(Keys); break; } case 18: { @@ -3279,35 +4839,79 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(valueTypeInfo_); + input.ReadMessage(ValueTypeInfo); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (keys_ == null) { + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Keys); + break; + } + case 18: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + case 26: { + if (valueTypeInfo_ == null) { + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(ValueTypeInfo); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the LWWMap message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.LWWMap.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -3315,15 +4919,18 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { stringKey_ = other.stringKey_; - Value = other.value_ != null ? other.Value.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; intKey_ = other.intKey_; longKey_ = other.longKey_; - OtherKey = other.otherKey_ != null ? other.OtherKey.Clone() : null; + otherKey_ = other.otherKey_ != null ? other.otherKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -3332,6 +4939,7 @@ public Entry Clone() { public const int StringKeyFieldNumber = 1; private string stringKey_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringKey { get { return stringKey_; } set { @@ -3343,6 +4951,7 @@ public string StringKey { public const int ValueFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister Value { get { return value_; } set { @@ -3354,6 +4963,7 @@ public string StringKey { public const int IntKeyFieldNumber = 3; private int intKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IntKey { get { return intKey_; } set { @@ -3365,6 +4975,7 @@ public int IntKey { public const int LongKeyFieldNumber = 4; private long longKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long LongKey { get { return longKey_; } set { @@ -3376,6 +4987,7 @@ public long LongKey { public const int OtherKeyFieldNumber = 5; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage otherKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage OtherKey { get { return otherKey_; } set { @@ -3384,11 +4996,13 @@ public long LongKey { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -3401,10 +5015,11 @@ public bool Equals(Entry other) { if (IntKey != other.IntKey) return false; if (LongKey != other.LongKey) return false; if (!object.Equals(OtherKey, other.OtherKey)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StringKey.Length != 0) hash ^= StringKey.GetHashCode(); @@ -3412,16 +5027,24 @@ public override int GetHashCode() { if (IntKey != 0) hash ^= IntKey.GetHashCode(); if (LongKey != 0L) hash ^= LongKey.GetHashCode(); if (otherKey_ != null) hash ^= OtherKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (StringKey.Length != 0) { output.WriteRawTag(10); output.WriteString(StringKey); @@ -3442,9 +5065,44 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(OtherKey); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StringKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StringKey); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (IntKey != 0) { + output.WriteRawTag(24); + output.WriteSInt32(IntKey); + } + if (LongKey != 0L) { + output.WriteRawTag(32); + output.WriteSInt64(LongKey); + } + if (otherKey_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OtherKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StringKey.Length != 0) { @@ -3462,10 +5120,14 @@ public int CalculateSize() { if (otherKey_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtherKey); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -3475,7 +5137,7 @@ public void MergeFrom(Entry other) { } if (other.value_ != null) { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister(); } Value.MergeFrom(other.Value); } @@ -3487,19 +5149,65 @@ public void MergeFrom(Entry other) { } if (other.otherKey_ != null) { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + OtherKey.MergeFrom(other.OtherKey); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StringKey = input.ReadString(); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister(); + } + input.ReadMessage(Value); + break; + } + case 24: { + IntKey = input.ReadSInt32(); + break; + } + case 32: { + LongKey = input.ReadSInt64(); + break; + } + case 42: { + if (otherKey_ == null) { + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(OtherKey); + break; + } } - OtherKey.MergeFrom(other.OtherKey); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StringKey = input.ReadString(); @@ -3507,9 +5215,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.LWWRegister(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } case 24: { @@ -3522,14 +5230,15 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(otherKey_); + input.ReadMessage(OtherKey); break; } } } } + #endif } @@ -3538,22 +5247,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class PNCounterMap : pb::IMessage { + internal sealed partial class PNCounterMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PNCounterMap()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounterMap() { OnConstruction(); } @@ -3561,12 +5279,15 @@ public PNCounterMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounterMap(PNCounterMap other) : this() { - Keys = other.keys_ != null ? other.Keys.Clone() : null; + keys_ = other.keys_ != null ? other.keys_.Clone() : null; entries_ = other.entries_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PNCounterMap Clone() { return new PNCounterMap(this); } @@ -3575,6 +5296,7 @@ public PNCounterMap Clone() { public const int KeysFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet keys_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Keys { get { return keys_; } set { @@ -3588,16 +5310,19 @@ public PNCounterMap Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PNCounterMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PNCounterMap other) { if (ReferenceEquals(other, null)) { return false; @@ -3607,68 +5332,106 @@ public bool Equals(PNCounterMap other) { } if (!object.Equals(Keys, other.Keys)) return false; if(!entries_.Equals(other.entries_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (keys_ != null) hash ^= Keys.GetHashCode(); hash ^= entries_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (keys_ != null) { output.WriteRawTag(10); output.WriteMessage(Keys); } entries_.WriteTo(output, _repeated_entries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (keys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keys); + } + entries_.WriteTo(ref output, _repeated_entries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (keys_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keys); } size += entries_.CalculateSize(_repeated_entries_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PNCounterMap other) { if (other == null) { return; } if (other.keys_ != null) { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Keys.MergeFrom(other.Keys); } entries_.Add(other.entries_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(keys_); + input.ReadMessage(Keys); break; } case 18: { @@ -3677,28 +5440,65 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (keys_ == null) { + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Keys); + break; + } + case 18: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + } + } } + #endif #region Nested types /// Container for nested types declared in the PNCounterMap message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.PNCounterMap.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -3706,15 +5506,18 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { stringKey_ = other.stringKey_; - Value = other.value_ != null ? other.Value.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; intKey_ = other.intKey_; longKey_ = other.longKey_; - OtherKey = other.otherKey_ != null ? other.OtherKey.Clone() : null; + otherKey_ = other.otherKey_ != null ? other.otherKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -3723,6 +5526,7 @@ public Entry Clone() { public const int StringKeyFieldNumber = 1; private string stringKey_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringKey { get { return stringKey_; } set { @@ -3734,6 +5538,7 @@ public string StringKey { public const int ValueFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter Value { get { return value_; } set { @@ -3745,6 +5550,7 @@ public string StringKey { public const int IntKeyFieldNumber = 3; private int intKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IntKey { get { return intKey_; } set { @@ -3756,6 +5562,7 @@ public int IntKey { public const int LongKeyFieldNumber = 4; private long longKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long LongKey { get { return longKey_; } set { @@ -3767,6 +5574,7 @@ public long LongKey { public const int OtherKeyFieldNumber = 5; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage otherKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage OtherKey { get { return otherKey_; } set { @@ -3775,11 +5583,13 @@ public long LongKey { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -3792,10 +5602,11 @@ public bool Equals(Entry other) { if (IntKey != other.IntKey) return false; if (LongKey != other.LongKey) return false; if (!object.Equals(OtherKey, other.OtherKey)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StringKey.Length != 0) hash ^= StringKey.GetHashCode(); @@ -3803,16 +5614,54 @@ public override int GetHashCode() { if (IntKey != 0) hash ^= IntKey.GetHashCode(); if (LongKey != 0L) hash ^= LongKey.GetHashCode(); if (otherKey_ != null) hash ^= OtherKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StringKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StringKey); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (IntKey != 0) { + output.WriteRawTag(24); + output.WriteSInt32(IntKey); + } + if (LongKey != 0L) { + output.WriteRawTag(32); + output.WriteSInt64(LongKey); + } + if (otherKey_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OtherKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StringKey.Length != 0) { output.WriteRawTag(10); output.WriteString(StringKey); @@ -3833,9 +5682,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(OtherKey); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StringKey.Length != 0) { @@ -3853,10 +5707,14 @@ public int CalculateSize() { if (otherKey_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtherKey); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -3866,7 +5724,7 @@ public void MergeFrom(Entry other) { } if (other.value_ != null) { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter(); } Value.MergeFrom(other.Value); } @@ -3878,19 +5736,65 @@ public void MergeFrom(Entry other) { } if (other.otherKey_ != null) { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } OtherKey.MergeFrom(other.OtherKey); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StringKey = input.ReadString(); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter(); + } + input.ReadMessage(Value); + break; + } + case 24: { + IntKey = input.ReadSInt32(); + break; + } + case 32: { + LongKey = input.ReadSInt64(); + break; + } + case 42: { + if (otherKey_ == null) { + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(OtherKey); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StringKey = input.ReadString(); @@ -3898,9 +5802,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.PNCounter(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } case 24: { @@ -3913,14 +5817,15 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(otherKey_); + input.ReadMessage(OtherKey); break; } } } } + #endif } @@ -3929,22 +5834,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ORMultiMap : pb::IMessage { + internal sealed partial class ORMultiMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ORMultiMap()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMap() { OnConstruction(); } @@ -3952,14 +5866,17 @@ public ORMultiMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMap(ORMultiMap other) : this() { - Keys = other.keys_ != null ? other.Keys.Clone() : null; + keys_ = other.keys_ != null ? other.keys_.Clone() : null; entries_ = other.entries_.Clone(); withValueDeltas_ = other.withValueDeltas_; - ValueTypeInfo = other.valueTypeInfo_ != null ? other.ValueTypeInfo.Clone() : null; + valueTypeInfo_ = other.valueTypeInfo_ != null ? other.valueTypeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ORMultiMap Clone() { return new ORMultiMap(this); } @@ -3968,6 +5885,7 @@ public ORMultiMap Clone() { public const int KeysFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet keys_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Keys { get { return keys_; } set { @@ -3981,6 +5899,7 @@ public ORMultiMap Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -3989,6 +5908,7 @@ public ORMultiMap Clone() { public const int WithValueDeltasFieldNumber = 3; private bool withValueDeltas_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool WithValueDeltas { get { return withValueDeltas_; } set { @@ -4000,6 +5920,7 @@ public bool WithValueDeltas { public const int ValueTypeInfoFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor valueTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor ValueTypeInfo { get { return valueTypeInfo_; } set { @@ -4008,11 +5929,13 @@ public bool WithValueDeltas { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ORMultiMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ORMultiMap other) { if (ReferenceEquals(other, null)) { return false; @@ -4024,26 +5947,35 @@ public bool Equals(ORMultiMap other) { if(!entries_.Equals(other.entries_)) return false; if (WithValueDeltas != other.WithValueDeltas) return false; if (!object.Equals(ValueTypeInfo, other.ValueTypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (keys_ != null) hash ^= Keys.GetHashCode(); hash ^= entries_.GetHashCode(); if (WithValueDeltas != false) hash ^= WithValueDeltas.GetHashCode(); if (valueTypeInfo_ != null) hash ^= ValueTypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (keys_ != null) { output.WriteRawTag(10); output.WriteMessage(Keys); @@ -4057,9 +5989,37 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(ValueTypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (keys_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keys); + } + entries_.WriteTo(ref output, _repeated_entries_codec); + if (WithValueDeltas != false) { + output.WriteRawTag(24); + output.WriteBool(WithValueDeltas); + } + if (valueTypeInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ValueTypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (keys_ != null) { @@ -4072,17 +6032,21 @@ public int CalculateSize() { if (valueTypeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueTypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ORMultiMap other) { if (other == null) { return; } if (other.keys_ != null) { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Keys.MergeFrom(other.Keys); } @@ -4092,25 +6056,30 @@ public void MergeFrom(ORMultiMap other) { } if (other.valueTypeInfo_ != null) { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } ValueTypeInfo.MergeFrom(other.ValueTypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (keys_ == null) { - keys_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(keys_); + input.ReadMessage(Keys); break; } case 18: { @@ -4123,35 +6092,83 @@ public void MergeFrom(pb::CodedInputStream input) { } case 34: { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(ValueTypeInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (keys_ == null) { + Keys = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Keys); + break; + } + case 18: { + entries_.AddEntriesFrom(ref input, _repeated_entries_codec); + break; + } + case 24: { + WithValueDeltas = input.ReadBool(); + break; + } + case 34: { + if (valueTypeInfo_ == null) { + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(valueTypeInfo_); + input.ReadMessage(ValueTypeInfo); break; } } } } + #endif #region Nested types /// Container for nested types declared in the ORMultiMap message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Entry : pb::IMessage { + internal sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ORMultiMap.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -4159,15 +6176,18 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { stringKey_ = other.stringKey_; - Value = other.value_ != null ? other.Value.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; intKey_ = other.intKey_; longKey_ = other.longKey_; - OtherKey = other.otherKey_ != null ? other.OtherKey.Clone() : null; + otherKey_ = other.otherKey_ != null ? other.otherKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -4176,6 +6196,7 @@ public Entry Clone() { public const int StringKeyFieldNumber = 1; private string stringKey_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringKey { get { return stringKey_; } set { @@ -4187,6 +6208,7 @@ public string StringKey { public const int ValueFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.ORSet value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.ORSet Value { get { return value_; } set { @@ -4198,6 +6220,7 @@ public string StringKey { public const int IntKeyFieldNumber = 3; private int intKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IntKey { get { return intKey_; } set { @@ -4209,6 +6232,7 @@ public int IntKey { public const int LongKeyFieldNumber = 4; private long longKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long LongKey { get { return longKey_; } set { @@ -4220,6 +6244,7 @@ public long LongKey { public const int OtherKeyFieldNumber = 5; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage otherKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage OtherKey { get { return otherKey_; } set { @@ -4228,11 +6253,13 @@ public long LongKey { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -4245,10 +6272,11 @@ public bool Equals(Entry other) { if (IntKey != other.IntKey) return false; if (LongKey != other.LongKey) return false; if (!object.Equals(OtherKey, other.OtherKey)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StringKey.Length != 0) hash ^= StringKey.GetHashCode(); @@ -4256,16 +6284,54 @@ public override int GetHashCode() { if (IntKey != 0) hash ^= IntKey.GetHashCode(); if (LongKey != 0L) hash ^= LongKey.GetHashCode(); if (otherKey_ != null) hash ^= OtherKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StringKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StringKey); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + if (IntKey != 0) { + output.WriteRawTag(24); + output.WriteSInt32(IntKey); + } + if (LongKey != 0L) { + output.WriteRawTag(32); + output.WriteSInt64(LongKey); + } + if (otherKey_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OtherKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StringKey.Length != 0) { output.WriteRawTag(10); output.WriteString(StringKey); @@ -4286,9 +6352,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(OtherKey); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StringKey.Length != 0) { @@ -4306,10 +6377,14 @@ public int CalculateSize() { if (otherKey_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtherKey); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -4319,7 +6394,7 @@ public void MergeFrom(Entry other) { } if (other.value_ != null) { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } Value.MergeFrom(other.Value); } @@ -4331,19 +6406,65 @@ public void MergeFrom(Entry other) { } if (other.otherKey_ != null) { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } OtherKey.MergeFrom(other.OtherKey); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StringKey = input.ReadString(); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + } + input.ReadMessage(Value); + break; + } + case 24: { + IntKey = input.ReadSInt32(); + break; + } + case 32: { + LongKey = input.ReadSInt64(); + break; + } + case 42: { + if (otherKey_ == null) { + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + } + input.ReadMessage(OtherKey); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StringKey = input.ReadString(); @@ -4351,9 +6472,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (value_ == null) { - value_ = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); + Value = new global::Akka.DistributedData.Serialization.Proto.Msg.ORSet(); } - input.ReadMessage(value_); + input.ReadMessage(Value); break; } case 24: { @@ -4366,14 +6487,15 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (otherKey_ == null) { - otherKey_ = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); + OtherKey = new global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage(); } - input.ReadMessage(otherKey_); + input.ReadMessage(OtherKey); break; } } } } + #endif } @@ -4382,22 +6504,31 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Key : pb::IMessage { + internal sealed partial class Key : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Key()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatedDataMessagesReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Key() { OnConstruction(); } @@ -4405,14 +6536,17 @@ public Key() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Key(Key other) : this() { keyId_ = other.keyId_; keyType_ = other.keyType_; - KeyTypeInfo = other.keyTypeInfo_ != null ? other.KeyTypeInfo.Clone() : null; - ValueTypeInfo = other.valueTypeInfo_ != null ? other.ValueTypeInfo.Clone() : null; + keyTypeInfo_ = other.keyTypeInfo_ != null ? other.keyTypeInfo_.Clone() : null; + valueTypeInfo_ = other.valueTypeInfo_ != null ? other.valueTypeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Key Clone() { return new Key(this); } @@ -4421,6 +6555,7 @@ public Key Clone() { public const int KeyIdFieldNumber = 1; private string keyId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string KeyId { get { return keyId_; } set { @@ -4430,8 +6565,9 @@ public string KeyId { /// Field number for the "keyType" field. public const int KeyTypeFieldNumber = 2; - private global::Akka.DistributedData.Serialization.Proto.Msg.KeyType keyType_ = 0; + private global::Akka.DistributedData.Serialization.Proto.Msg.KeyType keyType_ = global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.KeyType KeyType { get { return keyType_; } set { @@ -4443,6 +6579,7 @@ public string KeyId { public const int KeyTypeInfoFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor keyTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor KeyTypeInfo { get { return keyTypeInfo_; } set { @@ -4454,6 +6591,7 @@ public string KeyId { public const int ValueTypeInfoFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor valueTypeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor ValueTypeInfo { get { return valueTypeInfo_; } set { @@ -4462,11 +6600,13 @@ public string KeyId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Key); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Key other) { if (ReferenceEquals(other, null)) { return false; @@ -4478,31 +6618,66 @@ public bool Equals(Key other) { if (KeyType != other.KeyType) return false; if (!object.Equals(KeyTypeInfo, other.KeyTypeInfo)) return false; if (!object.Equals(ValueTypeInfo, other.ValueTypeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); - if (KeyType != 0) hash ^= KeyType.GetHashCode(); + if (KeyType != global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey) hash ^= KeyType.GetHashCode(); if (keyTypeInfo_ != null) hash ^= KeyTypeInfo.GetHashCode(); if (valueTypeInfo_ != null) hash ^= ValueTypeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (KeyType != global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey) { + output.WriteRawTag(16); + output.WriteEnum((int) KeyType); + } + if (keyTypeInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KeyTypeInfo); + } + if (valueTypeInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ValueTypeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (KeyId.Length != 0) { output.WriteRawTag(10); output.WriteString(KeyId); } - if (KeyType != 0) { + if (KeyType != global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey) { output.WriteRawTag(16); output.WriteEnum((int) KeyType); } @@ -4514,15 +6689,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(ValueTypeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (KeyId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); } - if (KeyType != 0) { + if (KeyType != global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) KeyType); } if (keyTypeInfo_ != null) { @@ -4531,10 +6711,14 @@ public int CalculateSize() { if (valueTypeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueTypeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Key other) { if (other == null) { return; @@ -4542,56 +6726,99 @@ public void MergeFrom(Key other) { if (other.KeyId.Length != 0) { KeyId = other.KeyId; } - if (other.KeyType != 0) { + if (other.KeyType != global::Akka.DistributedData.Serialization.Proto.Msg.KeyType.OrsetKey) { KeyType = other.KeyType; } if (other.keyTypeInfo_ != null) { if (keyTypeInfo_ == null) { - keyTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } KeyTypeInfo.MergeFrom(other.KeyTypeInfo); } if (other.valueTypeInfo_ != null) { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } ValueTypeInfo.MergeFrom(other.ValueTypeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + KeyId = input.ReadString(); + break; + } + case 16: { + KeyType = (global::Akka.DistributedData.Serialization.Proto.Msg.KeyType) input.ReadEnum(); + break; + } + case 26: { + if (keyTypeInfo_ == null) { + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(KeyTypeInfo); + break; + } + case 34: { + if (valueTypeInfo_ == null) { + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + } + input.ReadMessage(ValueTypeInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { KeyId = input.ReadString(); break; } case 16: { - keyType_ = (global::Akka.DistributedData.Serialization.Proto.Msg.KeyType) input.ReadEnum(); + KeyType = (global::Akka.DistributedData.Serialization.Proto.Msg.KeyType) input.ReadEnum(); break; } case 26: { if (keyTypeInfo_ == null) { - keyTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + KeyTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(keyTypeInfo_); + input.ReadMessage(KeyTypeInfo); break; } case 34: { if (valueTypeInfo_ == null) { - valueTypeInfo_ = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); + ValueTypeInfo = new global::Akka.DistributedData.Serialization.Proto.Msg.TypeDescriptor(); } - input.ReadMessage(valueTypeInfo_); + input.ReadMessage(ValueTypeInfo); break; } } } } + #endif } diff --git a/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatorMessages.g.cs b/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatorMessages.g.cs index 2a511f59c6d..7b8fa63854a 100644 --- a/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatorMessages.g.cs +++ b/src/contrib/cluster/Akka.DistributedData/Serialization/Proto/ReplicatorMessages.g.cs @@ -2,7 +2,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: ReplicatorMessages.proto // -#pragma warning disable 1591, 0612, 3021 +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -147,19 +147,23 @@ internal sealed partial class Get : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Get()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Get() { OnConstruction(); } @@ -167,6 +171,7 @@ public Get() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Get(Get other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; consistency_ = other.consistency_; @@ -180,6 +185,7 @@ public Get(Get other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Get Clone() { return new Get(this); } @@ -188,6 +194,7 @@ public Get Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -199,6 +206,7 @@ public Get Clone() { public const int ConsistencyFieldNumber = 2; private int consistency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Consistency { get { return consistency_; } set { @@ -210,6 +218,7 @@ public int Consistency { public const int TimeoutFieldNumber = 3; private uint timeout_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Timeout { get { return timeout_; } set { @@ -221,6 +230,7 @@ public uint Timeout { public const int RequestFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage request_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Request { get { return request_; } set { @@ -232,6 +242,7 @@ public uint Timeout { public const int ConsistencyMinCapFieldNumber = 5; private int consistencyMinCap_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ConsistencyMinCap { get { return consistencyMinCap_; } set { @@ -243,6 +254,7 @@ public int ConsistencyMinCap { public const int HasConsistencyAdditionalFieldNumber = 6; private bool hasConsistencyAdditional_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasConsistencyAdditional { get { return hasConsistencyAdditional_; } set { @@ -254,6 +266,7 @@ public bool HasConsistencyAdditional { public const int ConsistencyAdditionalFieldNumber = 7; private int consistencyAdditional_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ConsistencyAdditional { get { return consistencyAdditional_; } set { @@ -265,6 +278,7 @@ public int ConsistencyAdditional { public const int HasConsistencyMinCapFieldNumber = 8; private bool hasConsistencyMinCap_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasConsistencyMinCap { get { return hasConsistencyMinCap_; } set { @@ -273,11 +287,13 @@ public bool HasConsistencyMinCap { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Get); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Get other) { if (ReferenceEquals(other, null)) { return false; @@ -297,6 +313,7 @@ public bool Equals(Get other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -314,11 +331,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -363,6 +382,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -403,6 +423,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -436,6 +457,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Get other) { if (other == null) { return; @@ -474,6 +496,7 @@ public void MergeFrom(Get other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -529,6 +552,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -589,19 +613,23 @@ internal sealed partial class GetSuccess : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSuccess()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSuccess() { OnConstruction(); } @@ -609,6 +637,7 @@ public GetSuccess() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSuccess(GetSuccess other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; data_ = other.data_ != null ? other.data_.Clone() : null; @@ -617,6 +646,7 @@ public GetSuccess(GetSuccess other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSuccess Clone() { return new GetSuccess(this); } @@ -625,6 +655,7 @@ public GetSuccess Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -636,6 +667,7 @@ public GetSuccess Clone() { public const int DataFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Data { get { return data_; } set { @@ -647,6 +679,7 @@ public GetSuccess Clone() { public const int RequestFieldNumber = 4; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage request_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Request { get { return request_; } set { @@ -655,11 +688,13 @@ public GetSuccess Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSuccess); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSuccess other) { if (ReferenceEquals(other, null)) { return false; @@ -674,6 +709,7 @@ public bool Equals(GetSuccess other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -686,11 +722,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -715,6 +753,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -735,6 +774,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -753,6 +793,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetSuccess other) { if (other == null) { return; @@ -779,6 +820,7 @@ public void MergeFrom(GetSuccess other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -817,6 +859,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -860,19 +903,23 @@ internal sealed partial class NotFound : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NotFound()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotFound() { OnConstruction(); } @@ -880,6 +927,7 @@ public NotFound() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotFound(NotFound other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; request_ = other.request_ != null ? other.request_.Clone() : null; @@ -887,6 +935,7 @@ public NotFound(NotFound other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotFound Clone() { return new NotFound(this); } @@ -895,6 +944,7 @@ public NotFound Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -906,6 +956,7 @@ public NotFound Clone() { public const int RequestFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage request_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Request { get { return request_; } set { @@ -914,11 +965,13 @@ public NotFound Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NotFound other) { if (ReferenceEquals(other, null)) { return false; @@ -932,6 +985,7 @@ public bool Equals(NotFound other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -943,11 +997,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -968,6 +1024,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -984,6 +1041,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -999,6 +1057,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NotFound other) { if (other == null) { return; @@ -1019,6 +1078,7 @@ public void MergeFrom(NotFound other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -1050,6 +1110,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -1086,19 +1147,23 @@ internal sealed partial class GetFailure : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFailure()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFailure() { OnConstruction(); } @@ -1106,6 +1171,7 @@ public GetFailure() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFailure(GetFailure other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; request_ = other.request_ != null ? other.request_.Clone() : null; @@ -1113,6 +1179,7 @@ public GetFailure(GetFailure other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFailure Clone() { return new GetFailure(this); } @@ -1121,6 +1188,7 @@ public GetFailure Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -1132,6 +1200,7 @@ public GetFailure Clone() { public const int RequestFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage request_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Request { get { return request_; } set { @@ -1140,11 +1209,13 @@ public GetFailure Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetFailure); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetFailure other) { if (ReferenceEquals(other, null)) { return false; @@ -1158,6 +1229,7 @@ public bool Equals(GetFailure other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -1169,11 +1241,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -1194,6 +1268,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -1210,6 +1285,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -1225,6 +1301,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetFailure other) { if (other == null) { return; @@ -1245,6 +1322,7 @@ public void MergeFrom(GetFailure other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -1276,6 +1354,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -1312,19 +1391,23 @@ internal sealed partial class Subscribe : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subscribe()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscribe() { OnConstruction(); } @@ -1332,6 +1415,7 @@ public Subscribe() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscribe(Subscribe other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; ref_ = other.ref_; @@ -1339,6 +1423,7 @@ public Subscribe(Subscribe other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscribe Clone() { return new Subscribe(this); } @@ -1347,6 +1432,7 @@ public Subscribe Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -1358,6 +1444,7 @@ public Subscribe Clone() { public const int RefFieldNumber = 2; private string ref_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Ref { get { return ref_; } set { @@ -1366,11 +1453,13 @@ public string Ref { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Subscribe); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Subscribe other) { if (ReferenceEquals(other, null)) { return false; @@ -1384,6 +1473,7 @@ public bool Equals(Subscribe other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -1395,11 +1485,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -1420,6 +1512,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -1436,6 +1529,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -1451,6 +1545,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Subscribe other) { if (other == null) { return; @@ -1468,6 +1563,7 @@ public void MergeFrom(Subscribe other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -1496,6 +1592,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -1529,19 +1626,23 @@ internal sealed partial class Unsubscribe : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unsubscribe()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Unsubscribe() { OnConstruction(); } @@ -1549,6 +1650,7 @@ public Unsubscribe() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Unsubscribe(Unsubscribe other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; ref_ = other.ref_; @@ -1556,6 +1658,7 @@ public Unsubscribe(Unsubscribe other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Unsubscribe Clone() { return new Unsubscribe(this); } @@ -1564,6 +1667,7 @@ public Unsubscribe Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -1575,6 +1679,7 @@ public Unsubscribe Clone() { public const int RefFieldNumber = 2; private string ref_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Ref { get { return ref_; } set { @@ -1583,11 +1688,13 @@ public string Ref { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Unsubscribe); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Unsubscribe other) { if (ReferenceEquals(other, null)) { return false; @@ -1601,6 +1708,7 @@ public bool Equals(Unsubscribe other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -1612,11 +1720,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -1637,6 +1747,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -1653,6 +1764,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -1668,6 +1780,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Unsubscribe other) { if (other == null) { return; @@ -1685,6 +1798,7 @@ public void MergeFrom(Unsubscribe other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -1713,6 +1827,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -1746,19 +1861,23 @@ internal sealed partial class Changed : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Changed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Changed() { OnConstruction(); } @@ -1766,6 +1885,7 @@ public Changed() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Changed(Changed other) : this() { key_ = other.key_ != null ? other.key_.Clone() : null; data_ = other.data_ != null ? other.data_.Clone() : null; @@ -1773,6 +1893,7 @@ public Changed(Changed other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Changed Clone() { return new Changed(this); } @@ -1781,6 +1902,7 @@ public Changed Clone() { public const int KeyFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Key { get { return key_; } set { @@ -1792,6 +1914,7 @@ public Changed Clone() { public const int DataFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Data { get { return data_; } set { @@ -1800,11 +1923,13 @@ public Changed Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Changed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Changed other) { if (ReferenceEquals(other, null)) { return false; @@ -1818,6 +1943,7 @@ public bool Equals(Changed other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (key_ != null) hash ^= Key.GetHashCode(); @@ -1829,11 +1955,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -1854,6 +1982,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (key_ != null) { output.WriteRawTag(10); @@ -1870,6 +1999,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (key_ != null) { @@ -1885,6 +2015,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Changed other) { if (other == null) { return; @@ -1905,6 +2036,7 @@ public void MergeFrom(Changed other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -1936,6 +2068,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -1972,19 +2105,23 @@ internal sealed partial class Write : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Write()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Write() { OnConstruction(); } @@ -1992,6 +2129,7 @@ public Write() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Write(Write other) : this() { key_ = other.key_; envelope_ = other.envelope_ != null ? other.envelope_.Clone() : null; @@ -2000,6 +2138,7 @@ public Write(Write other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Write Clone() { return new Write(this); } @@ -2008,6 +2147,7 @@ public Write Clone() { public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { @@ -2019,6 +2159,7 @@ public string Key { public const int EnvelopeFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope envelope_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope Envelope { get { return envelope_; } set { @@ -2030,6 +2171,7 @@ public string Key { public const int FromNodeFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress fromNode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress FromNode { get { return fromNode_; } set { @@ -2038,11 +2180,13 @@ public string Key { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Write); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Write other) { if (ReferenceEquals(other, null)) { return false; @@ -2057,6 +2201,7 @@ public bool Equals(Write other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); @@ -2069,11 +2214,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -2098,6 +2245,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); @@ -2118,6 +2266,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { @@ -2136,6 +2285,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Write other) { if (other == null) { return; @@ -2159,6 +2309,7 @@ public void MergeFrom(Write other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -2194,6 +2345,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -2234,19 +2386,23 @@ internal sealed partial class Empty : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Empty()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Empty() { OnConstruction(); } @@ -2254,21 +2410,25 @@ public Empty() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Empty(Empty other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Empty Clone() { return new Empty(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Empty); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Empty other) { if (ReferenceEquals(other, null)) { return false; @@ -2280,6 +2440,7 @@ public bool Equals(Empty other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { @@ -2289,11 +2450,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -2306,6 +2469,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2314,6 +2478,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { @@ -2323,6 +2488,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Empty other) { if (other == null) { return; @@ -2331,6 +2497,7 @@ public void MergeFrom(Empty other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -2348,6 +2515,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -2370,19 +2538,23 @@ internal sealed partial class Read : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Read()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Read() { OnConstruction(); } @@ -2390,6 +2562,7 @@ public Read() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Read(Read other) : this() { key_ = other.key_; fromNode_ = other.fromNode_ != null ? other.fromNode_.Clone() : null; @@ -2397,6 +2570,7 @@ public Read(Read other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Read Clone() { return new Read(this); } @@ -2405,6 +2579,7 @@ public Read Clone() { public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { @@ -2416,6 +2591,7 @@ public string Key { public const int FromNodeFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress fromNode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress FromNode { get { return fromNode_; } set { @@ -2424,11 +2600,13 @@ public string Key { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Read); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Read other) { if (ReferenceEquals(other, null)) { return false; @@ -2442,6 +2620,7 @@ public bool Equals(Read other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); @@ -2453,11 +2632,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -2478,6 +2659,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); @@ -2494,6 +2676,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { @@ -2509,6 +2692,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Read other) { if (other == null) { return; @@ -2526,6 +2710,7 @@ public void MergeFrom(Read other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -2554,6 +2739,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -2587,19 +2773,23 @@ internal sealed partial class ReadResult : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReadResult()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReadResult() { OnConstruction(); } @@ -2607,12 +2797,14 @@ public ReadResult() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReadResult(ReadResult other) : this() { envelope_ = other.envelope_ != null ? other.envelope_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReadResult Clone() { return new ReadResult(this); } @@ -2621,6 +2813,7 @@ public ReadResult Clone() { public const int EnvelopeFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope envelope_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope Envelope { get { return envelope_; } set { @@ -2629,11 +2822,13 @@ public ReadResult Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ReadResult); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ReadResult other) { if (ReferenceEquals(other, null)) { return false; @@ -2646,6 +2841,7 @@ public bool Equals(ReadResult other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (envelope_ != null) hash ^= Envelope.GetHashCode(); @@ -2656,11 +2852,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -2677,6 +2875,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (envelope_ != null) { output.WriteRawTag(10); @@ -2689,6 +2888,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (envelope_ != null) { @@ -2701,6 +2901,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ReadResult other) { if (other == null) { return; @@ -2715,6 +2916,7 @@ public void MergeFrom(ReadResult other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -2739,6 +2941,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -2768,19 +2971,23 @@ internal sealed partial class DataEnvelope : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataEnvelope()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DataEnvelope() { OnConstruction(); } @@ -2788,6 +2995,7 @@ public DataEnvelope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DataEnvelope(DataEnvelope other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; pruning_ = other.pruning_.Clone(); @@ -2796,6 +3004,7 @@ public DataEnvelope(DataEnvelope other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DataEnvelope Clone() { return new DataEnvelope(this); } @@ -2804,6 +3013,7 @@ public DataEnvelope Clone() { public const int DataFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Data { get { return data_; } set { @@ -2817,6 +3027,7 @@ public DataEnvelope Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope.Types.PruningEntry.Parser); private readonly pbc::RepeatedField pruning_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Pruning { get { return pruning_; } } @@ -2825,6 +3036,7 @@ public DataEnvelope Clone() { public const int DeltaVersionsFieldNumber = 3; private global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector deltaVersions_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector DeltaVersions { get { return deltaVersions_; } set { @@ -2833,11 +3045,13 @@ public DataEnvelope Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DataEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DataEnvelope other) { if (ReferenceEquals(other, null)) { return false; @@ -2852,6 +3066,7 @@ public bool Equals(DataEnvelope other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); @@ -2864,11 +3079,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -2890,6 +3107,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); @@ -2907,6 +3125,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { @@ -2923,6 +3142,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DataEnvelope other) { if (other == null) { return; @@ -2944,6 +3164,7 @@ public void MergeFrom(DataEnvelope other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -2979,6 +3200,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -3012,6 +3234,7 @@ public void MergeFrom(pb::CodedInputStream input) { #region Nested types /// Container for nested types declared in the DataEnvelope message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal sealed partial class PruningEntry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -3021,19 +3244,23 @@ internal sealed partial class PruningEntry : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PruningEntry()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PruningEntry() { OnConstruction(); } @@ -3041,6 +3268,7 @@ public PruningEntry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PruningEntry(PruningEntry other) : this() { removedAddress_ = other.removedAddress_ != null ? other.removedAddress_.Clone() : null; ownerAddress_ = other.ownerAddress_ != null ? other.ownerAddress_.Clone() : null; @@ -3051,6 +3279,7 @@ public PruningEntry(PruningEntry other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PruningEntry Clone() { return new PruningEntry(this); } @@ -3059,6 +3288,7 @@ public PruningEntry Clone() { public const int RemovedAddressFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress removedAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress RemovedAddress { get { return removedAddress_; } set { @@ -3070,6 +3300,7 @@ public PruningEntry Clone() { public const int OwnerAddressFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress ownerAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress OwnerAddress { get { return ownerAddress_; } set { @@ -3081,6 +3312,7 @@ public PruningEntry Clone() { public const int PerformedFieldNumber = 3; private bool performed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Performed { get { return performed_; } set { @@ -3094,6 +3326,7 @@ public bool Performed { = pb::FieldCodec.ForMessage(34, global::Akka.DistributedData.Serialization.Proto.Msg.Address.Parser); private readonly pbc::RepeatedField seen_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Seen { get { return seen_; } } @@ -3102,6 +3335,7 @@ public bool Performed { public const int ObsoleteTimeFieldNumber = 5; private long obsoleteTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ObsoleteTime { get { return obsoleteTime_; } set { @@ -3110,11 +3344,13 @@ public long ObsoleteTime { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PruningEntry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PruningEntry other) { if (ReferenceEquals(other, null)) { return false; @@ -3131,6 +3367,7 @@ public bool Equals(PruningEntry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (removedAddress_ != null) hash ^= RemovedAddress.GetHashCode(); @@ -3145,11 +3382,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -3179,6 +3418,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (removedAddress_ != null) { output.WriteRawTag(10); @@ -3204,6 +3444,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (removedAddress_ != null) { @@ -3226,6 +3467,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PruningEntry other) { if (other == null) { return; @@ -3253,6 +3495,7 @@ public void MergeFrom(PruningEntry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -3296,6 +3539,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -3349,19 +3593,23 @@ internal sealed partial class Status : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Status()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status() { OnConstruction(); } @@ -3369,6 +3617,7 @@ public Status() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status(Status other) : this() { chunk_ = other.chunk_; totChunks_ = other.totChunks_; @@ -3381,6 +3630,7 @@ public Status(Status other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Status Clone() { return new Status(this); } @@ -3389,6 +3639,7 @@ public Status Clone() { public const int ChunkFieldNumber = 1; private uint chunk_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Chunk { get { return chunk_; } set { @@ -3400,6 +3651,7 @@ public uint Chunk { public const int TotChunksFieldNumber = 2; private uint totChunks_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint TotChunks { get { return totChunks_; } set { @@ -3413,6 +3665,7 @@ public uint TotChunks { = pb::FieldCodec.ForMessage(26, global::Akka.DistributedData.Serialization.Proto.Msg.Status.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -3421,6 +3674,7 @@ public uint TotChunks { public const int ToSystemUidFieldNumber = 4; private long toSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ToSystemUid { get { return toSystemUid_; } set { @@ -3432,6 +3686,7 @@ public long ToSystemUid { public const int FromSystemUidFieldNumber = 5; private long fromSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long FromSystemUid { get { return fromSystemUid_; } set { @@ -3443,6 +3698,7 @@ public long FromSystemUid { public const int HasToSystemUidFieldNumber = 6; private bool hasToSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasToSystemUid { get { return hasToSystemUid_; } set { @@ -3454,6 +3710,7 @@ public bool HasToSystemUid { public const int HasFromSystemUidFieldNumber = 7; private bool hasFromSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFromSystemUid { get { return hasFromSystemUid_; } set { @@ -3462,11 +3719,13 @@ public bool HasFromSystemUid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Status); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Status other) { if (ReferenceEquals(other, null)) { return false; @@ -3485,6 +3744,7 @@ public bool Equals(Status other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Chunk != 0) hash ^= Chunk.GetHashCode(); @@ -3501,11 +3761,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -3543,6 +3805,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Chunk != 0) { output.WriteRawTag(8); @@ -3576,6 +3839,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Chunk != 0) { @@ -3604,6 +3868,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Status other) { if (other == null) { return; @@ -3631,6 +3896,7 @@ public void MergeFrom(Status other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -3676,6 +3942,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -3719,6 +3986,7 @@ public void MergeFrom(pb::CodedInputStream input) { #region Nested types /// Container for nested types declared in the Status message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal sealed partial class Entry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -3728,19 +3996,23 @@ internal sealed partial class Entry : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.Status.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -3748,6 +4020,7 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { key_ = other.key_; digest_ = other.digest_; @@ -3755,6 +4028,7 @@ public Entry(Entry other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -3763,6 +4037,7 @@ public Entry Clone() { public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { @@ -3774,6 +4049,7 @@ public string Key { public const int DigestFieldNumber = 2; private pb::ByteString digest_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Digest { get { return digest_; } set { @@ -3782,11 +4058,13 @@ public string Key { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -3800,6 +4078,7 @@ public bool Equals(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); @@ -3811,11 +4090,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -3836,6 +4117,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); @@ -3852,6 +4134,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { @@ -3867,6 +4150,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -3881,6 +4165,7 @@ public void MergeFrom(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -3906,6 +4191,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -3941,19 +4227,23 @@ internal sealed partial class Gossip : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gossip()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip() { OnConstruction(); } @@ -3961,6 +4251,7 @@ public Gossip() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip(Gossip other) : this() { sendBack_ = other.sendBack_; entries_ = other.entries_.Clone(); @@ -3972,6 +4263,7 @@ public Gossip(Gossip other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip Clone() { return new Gossip(this); } @@ -3980,6 +4272,7 @@ public Gossip Clone() { public const int SendBackFieldNumber = 1; private bool sendBack_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool SendBack { get { return sendBack_; } set { @@ -3993,6 +4286,7 @@ public bool SendBack { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.Gossip.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -4001,6 +4295,7 @@ public bool SendBack { public const int ToSystemUidFieldNumber = 3; private long toSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ToSystemUid { get { return toSystemUid_; } set { @@ -4012,6 +4307,7 @@ public long ToSystemUid { public const int FromSystemUidFieldNumber = 4; private long fromSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long FromSystemUid { get { return fromSystemUid_; } set { @@ -4023,6 +4319,7 @@ public long FromSystemUid { public const int HasToSystemUidFieldNumber = 5; private bool hasToSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasToSystemUid { get { return hasToSystemUid_; } set { @@ -4034,6 +4331,7 @@ public bool HasToSystemUid { public const int HasFromSystemUidFieldNumber = 6; private bool hasFromSystemUid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFromSystemUid { get { return hasFromSystemUid_; } set { @@ -4042,11 +4340,13 @@ public bool HasFromSystemUid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Gossip); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Gossip other) { if (ReferenceEquals(other, null)) { return false; @@ -4064,6 +4364,7 @@ public bool Equals(Gossip other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SendBack != false) hash ^= SendBack.GetHashCode(); @@ -4079,11 +4380,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -4117,6 +4420,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (SendBack != false) { output.WriteRawTag(8); @@ -4146,6 +4450,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SendBack != false) { @@ -4171,6 +4476,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Gossip other) { if (other == null) { return; @@ -4195,6 +4501,7 @@ public void MergeFrom(Gossip other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -4236,6 +4543,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -4275,6 +4583,7 @@ public void MergeFrom(pb::CodedInputStream input) { #region Nested types /// Container for nested types declared in the Gossip message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal sealed partial class Entry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -4284,19 +4593,23 @@ internal sealed partial class Entry : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.Gossip.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -4304,6 +4617,7 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { key_ = other.key_; envelope_ = other.envelope_ != null ? other.envelope_.Clone() : null; @@ -4311,6 +4625,7 @@ public Entry(Entry other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -4319,6 +4634,7 @@ public Entry Clone() { public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { @@ -4330,6 +4646,7 @@ public string Key { public const int EnvelopeFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope envelope_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope Envelope { get { return envelope_; } set { @@ -4338,11 +4655,13 @@ public string Key { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -4356,6 +4675,7 @@ public bool Equals(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); @@ -4367,11 +4687,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -4392,6 +4714,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); @@ -4408,6 +4731,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { @@ -4423,6 +4747,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -4440,6 +4765,7 @@ public void MergeFrom(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -4468,6 +4794,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -4506,19 +4833,23 @@ internal sealed partial class DeltaPropagation : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeltaPropagation()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeltaPropagation() { OnConstruction(); } @@ -4526,6 +4857,7 @@ public DeltaPropagation() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeltaPropagation(DeltaPropagation other) : this() { fromNode_ = other.fromNode_ != null ? other.fromNode_.Clone() : null; entries_ = other.entries_.Clone(); @@ -4534,6 +4866,7 @@ public DeltaPropagation(DeltaPropagation other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeltaPropagation Clone() { return new DeltaPropagation(this); } @@ -4542,6 +4875,7 @@ public DeltaPropagation Clone() { public const int FromNodeFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress fromNode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress FromNode { get { return fromNode_; } set { @@ -4555,6 +4889,7 @@ public DeltaPropagation Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.DeltaPropagation.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } @@ -4566,6 +4901,7 @@ public DeltaPropagation Clone() { /// no reply if not set /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Reply { get { return reply_; } set { @@ -4574,11 +4910,13 @@ public bool Reply { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeltaPropagation); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeltaPropagation other) { if (ReferenceEquals(other, null)) { return false; @@ -4593,6 +4931,7 @@ public bool Equals(DeltaPropagation other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (fromNode_ != null) hash ^= FromNode.GetHashCode(); @@ -4605,11 +4944,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -4631,6 +4972,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (fromNode_ != null) { output.WriteRawTag(10); @@ -4648,6 +4990,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (fromNode_ != null) { @@ -4664,6 +5007,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeltaPropagation other) { if (other == null) { return; @@ -4682,6 +5026,7 @@ public void MergeFrom(DeltaPropagation other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -4714,6 +5059,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -4744,6 +5090,7 @@ public void MergeFrom(pb::CodedInputStream input) { #region Nested types /// Container for nested types declared in the DeltaPropagation message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal sealed partial class Entry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -4753,19 +5100,23 @@ internal sealed partial class Entry : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.DeltaPropagation.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -4773,6 +5124,7 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { key_ = other.key_; envelope_ = other.envelope_ != null ? other.envelope_.Clone() : null; @@ -4782,6 +5134,7 @@ public Entry(Entry other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -4790,6 +5143,7 @@ public Entry Clone() { public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { @@ -4801,6 +5155,7 @@ public string Key { public const int EnvelopeFieldNumber = 2; private global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope envelope_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope Envelope { get { return envelope_; } set { @@ -4812,6 +5167,7 @@ public string Key { public const int FromSeqNrFieldNumber = 3; private long fromSeqNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long FromSeqNr { get { return fromSeqNr_; } set { @@ -4826,6 +5182,7 @@ public long FromSeqNr { /// if not set then same as fromSequenceNr /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ToSeqNr { get { return toSeqNr_; } set { @@ -4834,11 +5191,13 @@ public long ToSeqNr { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -4854,6 +5213,7 @@ public bool Equals(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); @@ -4867,11 +5227,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -4900,6 +5262,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); @@ -4924,6 +5287,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { @@ -4945,6 +5309,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -4968,6 +5333,7 @@ public void MergeFrom(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -5004,6 +5370,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -5050,19 +5417,23 @@ internal sealed partial class UniqueAddress : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UniqueAddress()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress() { OnConstruction(); } @@ -5070,6 +5441,7 @@ public UniqueAddress() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress(UniqueAddress other) : this() { address_ = other.address_ != null ? other.address_.Clone() : null; uid_ = other.uid_; @@ -5077,6 +5449,7 @@ public UniqueAddress(UniqueAddress other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress Clone() { return new UniqueAddress(this); } @@ -5085,6 +5458,7 @@ public UniqueAddress Clone() { public const int AddressFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.Address address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.Address Address { get { return address_; } set { @@ -5096,6 +5470,7 @@ public UniqueAddress Clone() { public const int UidFieldNumber = 2; private long uid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Uid { get { return uid_; } set { @@ -5104,11 +5479,13 @@ public long Uid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UniqueAddress); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UniqueAddress other) { if (ReferenceEquals(other, null)) { return false; @@ -5122,6 +5499,7 @@ public bool Equals(UniqueAddress other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -5133,11 +5511,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -5158,6 +5538,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (address_ != null) { output.WriteRawTag(10); @@ -5174,6 +5555,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -5189,6 +5571,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UniqueAddress other) { if (other == null) { return; @@ -5206,6 +5589,7 @@ public void MergeFrom(UniqueAddress other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -5234,6 +5618,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -5267,19 +5652,23 @@ internal sealed partial class Address : pb::IMessage
private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Address()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser
Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Address() { OnConstruction(); } @@ -5287,6 +5676,7 @@ public Address() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Address(Address other) : this() { hostname_ = other.hostname_; port_ = other.port_; @@ -5294,6 +5684,7 @@ public Address(Address other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Address Clone() { return new Address(this); } @@ -5302,6 +5693,7 @@ public Address Clone() { public const int HostnameFieldNumber = 1; private string hostname_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Hostname { get { return hostname_; } set { @@ -5313,6 +5705,7 @@ public string Hostname { public const int PortFieldNumber = 2; private int port_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Port { get { return port_; } set { @@ -5321,11 +5714,13 @@ public int Port { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Address); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Address other) { if (ReferenceEquals(other, null)) { return false; @@ -5339,6 +5734,7 @@ public bool Equals(Address other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Hostname.Length != 0) hash ^= Hostname.GetHashCode(); @@ -5350,11 +5746,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -5375,6 +5773,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Hostname.Length != 0) { output.WriteRawTag(10); @@ -5391,6 +5790,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Hostname.Length != 0) { @@ -5406,6 +5806,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Address other) { if (other == null) { return; @@ -5420,6 +5821,7 @@ public void MergeFrom(Address other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -5445,6 +5847,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -5475,19 +5878,23 @@ internal sealed partial class VersionVector : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VersionVector()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VersionVector() { OnConstruction(); } @@ -5495,12 +5902,14 @@ public VersionVector() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VersionVector(VersionVector other) : this() { entries_ = other.entries_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VersionVector Clone() { return new VersionVector(this); } @@ -5511,16 +5920,19 @@ public VersionVector Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector.Types.Entry.Parser); private readonly pbc::RepeatedField entries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Entries { get { return entries_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as VersionVector); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(VersionVector other) { if (ReferenceEquals(other, null)) { return false; @@ -5533,6 +5945,7 @@ public bool Equals(VersionVector other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= entries_.GetHashCode(); @@ -5543,11 +5956,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -5561,6 +5976,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { entries_.WriteTo(ref output, _repeated_entries_codec); if (_unknownFields != null) { @@ -5570,6 +5986,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += entries_.CalculateSize(_repeated_entries_codec); @@ -5580,6 +5997,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(VersionVector other) { if (other == null) { return; @@ -5589,6 +6007,7 @@ public void MergeFrom(VersionVector other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -5610,6 +6029,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -5629,6 +6049,7 @@ public void MergeFrom(pb::CodedInputStream input) { #region Nested types /// Container for nested types declared in the VersionVector message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal sealed partial class Entry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -5638,19 +6059,23 @@ internal sealed partial class Entry : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.VersionVector.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry() { OnConstruction(); } @@ -5658,6 +6083,7 @@ public Entry() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry(Entry other) : this() { node_ = other.node_ != null ? other.node_.Clone() : null; version_ = other.version_; @@ -5665,6 +6091,7 @@ public Entry(Entry other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entry Clone() { return new Entry(this); } @@ -5673,6 +6100,7 @@ public Entry Clone() { public const int NodeFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress node_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.UniqueAddress Node { get { return node_; } set { @@ -5684,6 +6112,7 @@ public Entry Clone() { public const int VersionFieldNumber = 2; private long version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Version { get { return version_; } set { @@ -5692,11 +6121,13 @@ public long Version { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entry other) { if (ReferenceEquals(other, null)) { return false; @@ -5710,6 +6141,7 @@ public bool Equals(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (node_ != null) hash ^= Node.GetHashCode(); @@ -5721,11 +6153,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -5746,6 +6180,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (node_ != null) { output.WriteRawTag(10); @@ -5762,6 +6197,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (node_ != null) { @@ -5777,6 +6213,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entry other) { if (other == null) { return; @@ -5794,6 +6231,7 @@ public void MergeFrom(Entry other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -5822,6 +6260,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -5860,19 +6299,23 @@ internal sealed partial class OtherMessage : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OtherMessage()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OtherMessage() { OnConstruction(); } @@ -5880,6 +6323,7 @@ public OtherMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OtherMessage(OtherMessage other) : this() { enclosedMessage_ = other.enclosedMessage_; serializerId_ = other.serializerId_; @@ -5888,6 +6332,7 @@ public OtherMessage(OtherMessage other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OtherMessage Clone() { return new OtherMessage(this); } @@ -5896,6 +6341,7 @@ public OtherMessage Clone() { public const int EnclosedMessageFieldNumber = 1; private pb::ByteString enclosedMessage_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString EnclosedMessage { get { return enclosedMessage_; } set { @@ -5907,6 +6353,7 @@ public OtherMessage Clone() { public const int SerializerIdFieldNumber = 2; private int serializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SerializerId { get { return serializerId_; } set { @@ -5918,6 +6365,7 @@ public int SerializerId { public const int MessageManifestFieldNumber = 4; private pb::ByteString messageManifest_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString MessageManifest { get { return messageManifest_; } set { @@ -5926,11 +6374,13 @@ public int SerializerId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OtherMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OtherMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -5945,6 +6395,7 @@ public bool Equals(OtherMessage other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EnclosedMessage.Length != 0) hash ^= EnclosedMessage.GetHashCode(); @@ -5957,11 +6408,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -5986,6 +6439,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (EnclosedMessage.Length != 0) { output.WriteRawTag(10); @@ -6006,6 +6460,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EnclosedMessage.Length != 0) { @@ -6024,6 +6479,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OtherMessage other) { if (other == null) { return; @@ -6041,6 +6497,7 @@ public void MergeFrom(OtherMessage other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -6070,6 +6527,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -6104,19 +6562,23 @@ internal sealed partial class StringGSet : pb::IMessage private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringGSet()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StringGSet() { OnConstruction(); } @@ -6124,12 +6586,14 @@ public StringGSet() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StringGSet(StringGSet other) : this() { elements_ = other.elements_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StringGSet Clone() { return new StringGSet(this); } @@ -6140,16 +6604,19 @@ public StringGSet Clone() { = pb::FieldCodec.ForString(10); private readonly pbc::RepeatedField elements_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Elements { get { return elements_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as StringGSet); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(StringGSet other) { if (ReferenceEquals(other, null)) { return false; @@ -6162,6 +6629,7 @@ public bool Equals(StringGSet other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= elements_.GetHashCode(); @@ -6172,11 +6640,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -6190,6 +6660,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { elements_.WriteTo(ref output, _repeated_elements_codec); if (_unknownFields != null) { @@ -6199,6 +6670,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += elements_.CalculateSize(_repeated_elements_codec); @@ -6209,6 +6681,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(StringGSet other) { if (other == null) { return; @@ -6218,6 +6691,7 @@ public void MergeFrom(StringGSet other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -6239,6 +6713,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { @@ -6265,19 +6740,23 @@ internal sealed partial class DurableDataEnvelope : pb::IMessage _parser = new pb::MessageParser(() => new DurableDataEnvelope()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.DistributedData.Serialization.Proto.Msg.ReplicatorMessagesReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DurableDataEnvelope() { OnConstruction(); } @@ -6285,6 +6764,7 @@ public DurableDataEnvelope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DurableDataEnvelope(DurableDataEnvelope other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; pruning_ = other.pruning_.Clone(); @@ -6292,6 +6772,7 @@ public DurableDataEnvelope(DurableDataEnvelope other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DurableDataEnvelope Clone() { return new DurableDataEnvelope(this); } @@ -6300,6 +6781,7 @@ public DurableDataEnvelope Clone() { public const int DataFieldNumber = 1; private global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.DistributedData.Serialization.Proto.Msg.OtherMessage Data { get { return data_; } set { @@ -6313,16 +6795,19 @@ public DurableDataEnvelope Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.DistributedData.Serialization.Proto.Msg.DataEnvelope.Types.PruningEntry.Parser); private readonly pbc::RepeatedField pruning_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Pruning { get { return pruning_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DurableDataEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DurableDataEnvelope other) { if (ReferenceEquals(other, null)) { return false; @@ -6336,6 +6821,7 @@ public bool Equals(DurableDataEnvelope other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); @@ -6347,11 +6833,13 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); @@ -6369,6 +6857,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); @@ -6382,6 +6871,7 @@ public void WriteTo(pb::CodedOutputStream output) { #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { @@ -6395,6 +6885,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DurableDataEnvelope other) { if (other == null) { return; @@ -6410,6 +6901,7 @@ public void MergeFrom(DurableDataEnvelope other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); @@ -6438,6 +6930,7 @@ public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { diff --git a/src/contrib/cluster/Akka.DistributedData/reference.conf b/src/contrib/cluster/Akka.DistributedData/reference.conf index bfc1235da41..fcb62243c73 100644 --- a/src/contrib/cluster/Akka.DistributedData/reference.conf +++ b/src/contrib/cluster/Akka.DistributedData/reference.conf @@ -62,6 +62,10 @@ akka.cluster.distributed-data { # This is useful together with Cluster Singleton, which is running on oldest nodes. prefer-oldest = off + # Provide a higher level of details in the debug logs, including gossip status. + # Be careful about enabling in production systems. + verbose-debug-logging = off + # Settings for delta-CRDT delta-crdt { # enable or disable delta-CRDT replication diff --git a/src/core/Akka.API.Tests/CoreAPISpec.ApproveCluster.verified.txt b/src/core/Akka.API.Tests/CoreAPISpec.ApproveCluster.verified.txt index da4d3dae1d1..f904b9eea13 100644 --- a/src/core/Akka.API.Tests/CoreAPISpec.ApproveCluster.verified.txt +++ b/src/core/Akka.API.Tests/CoreAPISpec.ApproveCluster.verified.txt @@ -19,7 +19,7 @@ namespace Akka.Cluster { public sealed class AutoDowning : Akka.Cluster.IDowningProvider { - public AutoDowning(Akka.Actor.ActorSystem system) { } + public AutoDowning(Akka.Actor.ActorSystem system, Akka.Cluster.Cluster cluster) { } public System.TimeSpan DownRemovalMargin { get; } public Akka.Actor.Props DowningActorProps { get; } } @@ -266,13 +266,13 @@ namespace Akka.Cluster } public sealed class NoDowning : Akka.Cluster.IDowningProvider { - public NoDowning(Akka.Actor.ActorSystem system) { } + public NoDowning(Akka.Actor.ActorSystem system, Akka.Cluster.Cluster cluster) { } public System.TimeSpan DownRemovalMargin { get; } public Akka.Actor.Props DowningActorProps { get; } } public sealed class SplitBrainResolver : Akka.Cluster.IDowningProvider { - public SplitBrainResolver(Akka.Actor.ActorSystem system) { } + public SplitBrainResolver(Akka.Actor.ActorSystem system, Akka.Cluster.Cluster cluster) { } public System.TimeSpan DownRemovalMargin { get; } public Akka.Actor.Props DowningActorProps { get; } public System.TimeSpan StableAfter { get; } @@ -417,7 +417,7 @@ namespace Akka.Cluster.SBR } public class SplitBrainResolverProvider : Akka.Cluster.IDowningProvider { - public SplitBrainResolverProvider(Akka.Actor.ActorSystem system) { } + public SplitBrainResolverProvider(Akka.Actor.ActorSystem system, Akka.Cluster.Cluster cluster) { } public System.TimeSpan DownRemovalMargin { get; } public Akka.Actor.Props DowningActorProps { get; } } diff --git a/src/core/Akka.API.Tests/CoreAPISpec.ApproveDistributedData.verified.txt b/src/core/Akka.API.Tests/CoreAPISpec.ApproveDistributedData.verified.txt index 9e55ced9b36..0b592f46e45 100644 --- a/src/core/Akka.API.Tests/CoreAPISpec.ApproveDistributedData.verified.txt +++ b/src/core/Akka.API.Tests/CoreAPISpec.ApproveDistributedData.verified.txt @@ -777,7 +777,9 @@ namespace Akka.DistributedData public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize) { } [System.ObsoleteAttribute()] public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure) { } + [System.ObsoleteAttribute()] public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest) { } + public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest, bool verboseDebugLogging) { } public string Dispatcher { get; } public System.Collections.Immutable.IImmutableSet DurableKeys { get; } public System.TimeSpan DurablePruningMarkerTimeToLive { get; } @@ -793,6 +795,7 @@ namespace Akka.DistributedData public System.TimeSpan PruningMarkerTimeToLive { get; } public bool RestartReplicatorOnFailure { get; } public string Role { get; } + public bool VerboseDebugLogging { get; } public static Akka.DistributedData.ReplicatorSettings Create(Akka.Actor.ActorSystem system) { } public static Akka.DistributedData.ReplicatorSettings Create(Akka.Configuration.Config config) { } public Akka.DistributedData.ReplicatorSettings WithDispatcher(string dispatcher) { } @@ -807,6 +810,7 @@ namespace Akka.DistributedData public Akka.DistributedData.ReplicatorSettings WithPruningMarkerTimeToLive(System.TimeSpan pruningMarkerTtl, System.TimeSpan durablePruningMarkerTtl) { } public Akka.DistributedData.ReplicatorSettings WithRestartReplicatorOnFailure(bool restart) { } public Akka.DistributedData.ReplicatorSettings WithRole(string role) { } + public Akka.DistributedData.ReplicatorSettings WithVerboseDebugLogging(bool verboseDebugLogging) { } } [System.Diagnostics.DebuggerDisplayAttribute("VersionVector({Node}->{Version})")] public sealed class SingleVersionVector : Akka.DistributedData.VersionVector diff --git a/src/core/Akka.API.Tests/CoreAPISpec.ApproveStreams.verified.txt b/src/core/Akka.API.Tests/CoreAPISpec.ApproveStreams.verified.txt index f5ea9a0ead2..87595bf73c9 100644 --- a/src/core/Akka.API.Tests/CoreAPISpec.ApproveStreams.verified.txt +++ b/src/core/Akka.API.Tests/CoreAPISpec.ApproveStreams.verified.txt @@ -1966,6 +1966,7 @@ namespace Akka.Streams.Dsl public static Akka.Streams.Dsl.Source Empty() { } public static Akka.Streams.Dsl.Source Failed(System.Exception cause) { } public static Akka.Streams.Dsl.Source From(System.Collections.Generic.IEnumerable enumerable) { } + public static Akka.Streams.Dsl.Source From(System.Func> asyncEnumerable) { } public static Akka.Streams.Dsl.Source FromEnumerator(System.Func> enumeratorFactory) { } public static Akka.Streams.Dsl.Source FromEvent(System.Func, TDelegate> conversion, System.Action addHandler, System.Action removeHandler, int maxBufferCapacity = 128, Akka.Streams.OverflowStrategy overflowStrategy = 2) { } public static Akka.Streams.Dsl.Source FromEvent(System.Action> addHandler, System.Action> removeHandler, int maxBufferCapacity = 128, Akka.Streams.OverflowStrategy overflowStrategy = 2) { } @@ -3958,6 +3959,15 @@ namespace Akka.Streams.Implementation.Fusing public override string ToString() { } } [Akka.Annotations.InternalApiAttribute()] + public sealed class AsyncEnumerable : Akka.Streams.Stage.GraphStage> + { + public AsyncEnumerable(System.Func> factory) { } + protected override Akka.Streams.Attributes InitialAttributes { get; } + public override Akka.Streams.SourceShape Shape { get; } + protected override Akka.Streams.Stage.GraphStageLogic CreateLogic(Akka.Streams.Attributes inheritedAttributes) { } + public override string ToString() { } + } + [Akka.Annotations.InternalApiAttribute()] public sealed class Batch : Akka.Streams.Stage.GraphStage> { public Batch(long max, System.Func costFunc, System.Func seed, System.Func aggregate) { } diff --git a/src/core/Akka.Cluster.Tests/Bugfix5962Spec.cs b/src/core/Akka.Cluster.Tests/Bugfix5962Spec.cs new file mode 100644 index 00000000000..3092fb47bea --- /dev/null +++ b/src/core/Akka.Cluster.Tests/Bugfix5962Spec.cs @@ -0,0 +1,88 @@ +// //----------------------------------------------------------------------- +// // +// // Copyright (C) 2009-2022 Lightbend Inc. +// // Copyright (C) 2013-2022 .NET Foundation +// // +// //----------------------------------------------------------------------- + +using System; +using System.Threading.Tasks; +using Akka.Configuration; +using Akka.TestKit; +using FluentAssertions; +using FluentAssertions.Extensions; +using Xunit; +using Xunit.Abstractions; +using static FluentAssertions.FluentActions; + + +namespace Akka.Cluster.Tests +{ + public class Bugfix5962Spec : TestKit.Xunit2.TestKit + { + private static readonly Config Config = ConfigurationFactory.ParseString(@" +akka { + loglevel = INFO + actor { + provider = cluster + default-dispatcher = { + executor = channel-executor + channel-executor.priority = normal + } + # Adding this part in combination with the SplitBrainResolverProvider causes the error + internal-dispatcher = { + executor = channel-executor + channel-executor.priority = high + } + } + remote { + dot-netty.tcp { + port = 15508 + hostname = ""127.0.0.1"" + } + default-remote-dispatcher { + executor = channel-executor + channel-executor.priority = high + } + backoff-remote-dispatcher { + executor = channel-executor + channel-executor.priority = low + } + } + cluster { + seed-nodes = [""akka.tcp://Bugfix5962Spec@127.0.0.1:15508""] + downing-provider-class = ""Akka.Cluster.SBR.SplitBrainResolverProvider, Akka.Cluster"" + } +}"); + + private readonly Type _timerMsgType; + + public Bugfix5962Spec(ITestOutputHelper output): base(Config, nameof(Bugfix5962Spec), output) + { + _timerMsgType = Type.GetType("Akka.Actor.Scheduler.TimerScheduler+TimerMsg, Akka"); + } + + [Fact] + public async Task SBR_Should_work_with_channel_executor() + { + var latch = new TestLatch(1); + var cluster = Cluster.Get(Sys); + cluster.RegisterOnMemberUp(() => + { + latch.CountDown(); + }); + + var selection = Sys.ActorSelection("akka://Bugfix5962Spec/system/cluster/core/daemon/downingProvider"); + + await Awaiting(() => selection.ResolveOne(1.Seconds())) + .Should().NotThrowAsync("Downing provider should be alive. ActorSelection will throw an ActorNotFoundException if this fails"); + + // There should be no TimerMsg being sent to dead letter, this signals that the downing provider is dead + await EventFilter.DeadLetter(_timerMsgType).ExpectAsync(0, async () => + { + latch.Ready(1.Seconds()); + await Task.Delay(2.Seconds()); + }); + } + } +} \ No newline at end of file diff --git a/src/core/Akka.Cluster.Tests/DowningProviderSpec.cs b/src/core/Akka.Cluster.Tests/DowningProviderSpec.cs index 6a59d13700d..6e524afa583 100644 --- a/src/core/Akka.Cluster.Tests/DowningProviderSpec.cs +++ b/src/core/Akka.Cluster.Tests/DowningProviderSpec.cs @@ -16,9 +16,9 @@ namespace Akka.Cluster.Tests { - class FailingDowningProvider : IDowningProvider + internal class FailingDowningProvider : IDowningProvider { - public FailingDowningProvider(ActorSystem system) + public FailingDowningProvider(ActorSystem system, Cluster cluster) { } @@ -36,7 +36,7 @@ public Props DowningActorProps class DummyDowningProvider : IDowningProvider { public readonly AtomicBoolean ActorPropsAccessed = new AtomicBoolean(false); - public DummyDowningProvider(ActorSystem system) + public DummyDowningProvider(ActorSystem system, Cluster cluster) { } diff --git a/src/core/Akka.Cluster.Tests/StartupWithOneThreadSpec.cs b/src/core/Akka.Cluster.Tests/StartupWithOneThreadSpec.cs index 942a46b0c19..b20e70d60b3 100644 --- a/src/core/Akka.Cluster.Tests/StartupWithOneThreadSpec.cs +++ b/src/core/Akka.Cluster.Tests/StartupWithOneThreadSpec.cs @@ -7,6 +7,7 @@ using System; using System.Threading; +using System.Threading.Tasks; using Akka.Actor; using Akka.Actor.Dsl; using Akka.Configuration; @@ -14,6 +15,7 @@ using Akka.TestKit; using Akka.Util; using Xunit; +using Xunit.Abstractions; namespace Akka.Cluster.Tests { @@ -25,12 +27,13 @@ public class StartupWithOneThreadSpec : AkkaSpec akka.actor.default-dispatcher.dedicated-thread-pool.thread-count = 1 akka.actor.provider = ""Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"" akka.remote.dot-netty.tcp.port = 0 + akka.cluster.downing-provider-class = ""Akka.Cluster.SBR.SplitBrainResolverProvider, Akka.Cluster"" + akka.cluster.split-brain-resolver.active-strategy = keep-majority "); private long _startTime; - public StartupWithOneThreadSpec() : base(Configuration) - { + public StartupWithOneThreadSpec(ITestOutputHelper output) : base(Configuration, output) { _startTime = MonotonicClock.GetTicks(); } @@ -53,7 +56,7 @@ private Props TestProps } [Fact] - public void A_cluster_must_startup_with_one_dispatcher_thread() + public async Task A_cluster_must_startup_with_one_dispatcher_thread() { // This test failed before fixing https://github.com/akkadotnet/akka.net/issues/1959 when adding a sleep before the // Await of GetClusterCoreRef in the Cluster extension constructor. @@ -75,6 +78,11 @@ public void A_cluster_must_startup_with_one_dispatcher_thread() ExpectMsg("hello"); ExpectMsg("hello"); ExpectMsg("hello"); + + // perform a self-join + var cts = new CancellationTokenSource(TimeSpan.FromSeconds((3))); + var selfAddress = cluster.SelfAddress; + await cluster.JoinSeedNodesAsync(new[] { selfAddress }, cts.Token); } } } diff --git a/src/core/Akka.Cluster/AutoDown.cs b/src/core/Akka.Cluster/AutoDown.cs index a78ebb93250..2b2cd673f65 100644 --- a/src/core/Akka.Cluster/AutoDown.cs +++ b/src/core/Akka.Cluster/AutoDown.cs @@ -30,10 +30,11 @@ internal sealed class AutoDown : AutoDownBase /// TBD /// /// TBD + /// /// TBD - public static Props Props(TimeSpan autoDownUnreachableAfter) + public static Props Props(TimeSpan autoDownUnreachableAfter, Cluster cluster) { - return Actor.Props.Create(autoDownUnreachableAfter); + return Actor.Props.Create(() => new AutoDown(autoDownUnreachableAfter, cluster)); } /// @@ -76,14 +77,10 @@ public override int GetHashCode() } private readonly Cluster _cluster; - - /// - /// TBD - /// - /// TBD - public AutoDown(TimeSpan autoDownUnreachableAfter) : base(autoDownUnreachableAfter) + + public AutoDown(TimeSpan autoDownUnreachableAfter, Cluster cluster) : base(autoDownUnreachableAfter) { - _cluster = Cluster.Get(Context.System); + _cluster = cluster; } /// @@ -276,20 +273,18 @@ private void Remove(UniqueAddress node) public sealed class AutoDowning : IDowningProvider { private readonly ActorSystem _system; - - /// - /// TBD - /// - /// TBD - public AutoDowning(ActorSystem system) + private readonly Cluster _cluster; + + public AutoDowning(ActorSystem system, Cluster cluster) { _system = system; + _cluster = cluster; } /// /// TBD /// - public TimeSpan DownRemovalMargin => Cluster.Get(_system).Settings.DownRemovalMargin; + public TimeSpan DownRemovalMargin => _cluster.Settings.DownRemovalMargin; /// /// TBD @@ -301,11 +296,11 @@ public Props DowningActorProps { get { - var autoDownUnreachableAfter = Cluster.Get(_system).Settings.AutoDownUnreachableAfter; + var autoDownUnreachableAfter = _cluster.Settings.AutoDownUnreachableAfter; if (!autoDownUnreachableAfter.HasValue) throw new ConfigurationException("AutoDowning downing provider selected but 'akka.cluster.auto-down-unreachable-after' not set"); - return AutoDown.Props(autoDownUnreachableAfter.Value); + return AutoDown.Props(autoDownUnreachableAfter.Value, _cluster); } } } diff --git a/src/core/Akka.Cluster/Cluster.cs b/src/core/Akka.Cluster/Cluster.cs index c9c2d7dfbac..966a6bac633 100644 --- a/src/core/Akka.Cluster/Cluster.cs +++ b/src/core/Akka.Cluster/Cluster.cs @@ -132,7 +132,7 @@ public Cluster(ActorSystemImpl system) Scheduler = CreateScheduler(system); // it has to be lazy - otherwise if downing provider will init a cluster itself, it will deadlock - _downingProvider = new Lazy(() => Akka.Cluster.DowningProvider.Load(Settings.DowningProviderType, system), LazyThreadSafetyMode.ExecutionAndPublication); + _downingProvider = new Lazy(() => Akka.Cluster.DowningProvider.Load(Settings.DowningProviderType, system, this), LazyThreadSafetyMode.ExecutionAndPublication); //create supervisor for daemons under path "/system/cluster" _clusterDaemons = system.SystemActorOf(Props.Create(() => new ClusterDaemon(Settings)).WithDeploy(Deploy.Local), "cluster"); diff --git a/src/core/Akka.Cluster/Configuration/Cluster.conf b/src/core/Akka.Cluster/Configuration/Cluster.conf index ad7557168fa..a708faee3af 100644 --- a/src/core/Akka.Cluster/Configuration/Cluster.conf +++ b/src/core/Akka.Cluster/Configuration/Cluster.conf @@ -59,8 +59,10 @@ akka { # * if it is 'off' the `NoDowning` provider is used and no automatic downing will be performed # * if it is set to a duration the `AutoDowning` provider is with the configured downing duration # - # If specified the value must be the fully qualified class name of a subclass of - # `akka.cluster.DowningProvider` having a public one argument constructor accepting an `ActorSystem` + # If specified the value must be the fully qualified class name of an implementation of + # `Akka.Cluster.IDowningProvider` having two argument constructor: + # - argument 1: accepting an `ActorSystem` + # - argument 2: accepting an `Akka.Cluster.Cluster` downing-provider-class = "" # If this is set to "off", the leader will not move 'Joining' members to 'Up' during a network diff --git a/src/core/Akka.Cluster/DowningProvider.cs b/src/core/Akka.Cluster/DowningProvider.cs index 9d5f374b7b5..eeafd4c8e61 100644 --- a/src/core/Akka.Cluster/DowningProvider.cs +++ b/src/core/Akka.Cluster/DowningProvider.cs @@ -45,20 +45,18 @@ public interface IDowningProvider public sealed class NoDowning : IDowningProvider { private readonly ActorSystem _system; - - /// - /// TBD - /// - /// TBD - public NoDowning(ActorSystem system) + private readonly Cluster _cluster; + + public NoDowning(ActorSystem system, Cluster cluster) { _system = system; + _cluster = cluster; } /// /// TBD /// - public TimeSpan DownRemovalMargin => Cluster.Get(_system).Settings.DownRemovalMargin; + public TimeSpan DownRemovalMargin => _cluster.Settings.DownRemovalMargin; /// /// TBD @@ -72,20 +70,25 @@ public NoDowning(ActorSystem system) internal static class DowningProvider { /// - /// TBD + /// Loads the from configuration and instantiates it via reflection. /// /// TBD /// TBD + /// The current cluster object. /// /// This exception is thrown when the specified does not implement . /// - /// TBD - public static IDowningProvider Load(Type downingProviderType, ActorSystem system) + /// The activated + /// + /// Required to pass in manually here since https://github.com/akkadotnet/akka.net/issues/5962 + /// can cause the SBR startup to fail when running with the `channel-executor`. + /// + public static IDowningProvider Load(Type downingProviderType, ActorSystem system, Cluster cluster) { var extendedSystem = system as ExtendedActorSystem; try { - return (IDowningProvider)Activator.CreateInstance(downingProviderType, extendedSystem); + return (IDowningProvider)Activator.CreateInstance(downingProviderType, extendedSystem, cluster); } catch (Exception e) { diff --git a/src/core/Akka.Cluster/SBR/SplitBrainResolver.cs b/src/core/Akka.Cluster/SBR/SplitBrainResolver.cs index 12c203e2cee..16ab1a6325c 100644 --- a/src/core/Akka.Cluster/SBR/SplitBrainResolver.cs +++ b/src/core/Akka.Cluster/SBR/SplitBrainResolver.cs @@ -27,22 +27,22 @@ internal class SplitBrainResolver : SplitBrainResolverBase { private Cluster _cluster; - public SplitBrainResolver(TimeSpan stableAfter, DowningStrategy strategy) + public SplitBrainResolver(TimeSpan stableAfter, DowningStrategy strategy, Cluster cluster) : base(stableAfter, strategy) { + _cluster = cluster; } public override UniqueAddress SelfUniqueAddress => _cluster.SelfUniqueAddress; - public static Props Props2(TimeSpan stableAfter, DowningStrategy strategy) + public static Props Props2(TimeSpan stableAfter, DowningStrategy strategy, Cluster cluster) { - return Props.Create(() => new SplitBrainResolver(stableAfter, strategy)); + return Props.Create(() => new SplitBrainResolver(stableAfter, strategy, cluster)); } // re-subscribe when restart protected override void PreStart() { - _cluster = Cluster.Get(Context.System); _cluster.Subscribe(Self, InitialStateAsEvents, typeof(IClusterDomainEvent)); base.PreStart(); diff --git a/src/core/Akka.Cluster/SBR/SplitBrainResolverProvider.cs b/src/core/Akka.Cluster/SBR/SplitBrainResolverProvider.cs index b1a809229c7..ea671410109 100644 --- a/src/core/Akka.Cluster/SBR/SplitBrainResolverProvider.cs +++ b/src/core/Akka.Cluster/SBR/SplitBrainResolverProvider.cs @@ -21,11 +21,13 @@ public class SplitBrainResolverProvider : IDowningProvider { private readonly SplitBrainResolverSettings _settings; private readonly ActorSystem _system; + private readonly Cluster _cluster; - public SplitBrainResolverProvider(ActorSystem system) + public SplitBrainResolverProvider(ActorSystem system, Cluster cluster) { _system = system; _settings = new SplitBrainResolverSettings(system.Settings.Config); + _cluster = cluster; } public TimeSpan DownRemovalMargin @@ -77,7 +79,7 @@ public Props DowningActorProps throw new InvalidOperationException(); } - return SplitBrainResolver.Props2(_settings.DowningStableAfter, strategy); + return SplitBrainResolver.Props2(_settings.DowningStableAfter, strategy, _cluster); } } } diff --git a/src/core/Akka.Cluster/Serialization/Proto/ClusterMessages.g.cs b/src/core/Akka.Cluster/Serialization/Proto/ClusterMessages.g.cs index bf5059bfda8..0d54b54c8f4 100644 --- a/src/core/Akka.Cluster/Serialization/Proto/ClusterMessages.g.cs +++ b/src/core/Akka.Cluster/Serialization/Proto/ClusterMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClusterMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -84,23 +86,23 @@ static ClusterMessagesReflection() { "DwoHdXNlUm9sZRgEIAEoCWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Join), global::Akka.Cluster.Serialization.Proto.Msg.Join.Parser, new[]{ "Node", "Roles", "AppVersion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Welcome), global::Akka.Cluster.Serialization.Proto.Msg.Welcome.Parser, new[]{ "From", "Gossip" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Heartbeat), global::Akka.Cluster.Serialization.Proto.Msg.Heartbeat.Parser, new[]{ "From", "SequenceNr", "CreationTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.HeartBeatResponse), global::Akka.Cluster.Serialization.Proto.Msg.HeartBeatResponse.Parser, new[]{ "From", "SequenceNr", "CreationTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipEnvelope), global::Akka.Cluster.Serialization.Proto.Msg.GossipEnvelope.Parser, new[]{ "From", "To", "SerializedGossip" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipStatus), global::Akka.Cluster.Serialization.Proto.Msg.GossipStatus.Parser, new[]{ "From", "AllHashes", "Version" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Gossip), global::Akka.Cluster.Serialization.Proto.Msg.Gossip.Parser, new[]{ "AllAddresses", "AllRoles", "AllHashes", "Members", "Overview", "Version", "AllAppVersions" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview), global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview.Parser, new[]{ "Seen", "ObserverReachability" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ObserverReachability), global::Akka.Cluster.Serialization.Proto.Msg.ObserverReachability.Parser, new[]{ "AddressIndex", "Version", "SubjectReachability" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability), global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Parser, new[]{ "AddressIndex", "Status", "Version" }, null, new[]{ typeof(global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus) }, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Member), global::Akka.Cluster.Serialization.Proto.Msg.Member.Parser, new[]{ "AddressIndex", "UpNumber", "Status", "RolesIndexes", "AppVersionIndex" }, null, new[]{ typeof(global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus) }, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.VectorClock), global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Parser, new[]{ "Timestamp", "Versions" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Types.Version), global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Types.Version.Parser, new[]{ "HashIndex", "Timestamp" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress), global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress.Parser, new[]{ "Address", "Uid" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPool), global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPool.Parser, new[]{ "Pool", "Settings" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Pool), global::Akka.Cluster.Serialization.Proto.Msg.Pool.Parser, new[]{ "SerializerId", "Manifest", "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings), global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings.Parser, new[]{ "TotalInstances", "MaxInstancesPerNode", "AllowLocalRoutees", "UseRole" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Join), global::Akka.Cluster.Serialization.Proto.Msg.Join.Parser, new[]{ "Node", "Roles", "AppVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Welcome), global::Akka.Cluster.Serialization.Proto.Msg.Welcome.Parser, new[]{ "From", "Gossip" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Heartbeat), global::Akka.Cluster.Serialization.Proto.Msg.Heartbeat.Parser, new[]{ "From", "SequenceNr", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.HeartBeatResponse), global::Akka.Cluster.Serialization.Proto.Msg.HeartBeatResponse.Parser, new[]{ "From", "SequenceNr", "CreationTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipEnvelope), global::Akka.Cluster.Serialization.Proto.Msg.GossipEnvelope.Parser, new[]{ "From", "To", "SerializedGossip" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipStatus), global::Akka.Cluster.Serialization.Proto.Msg.GossipStatus.Parser, new[]{ "From", "AllHashes", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Gossip), global::Akka.Cluster.Serialization.Proto.Msg.Gossip.Parser, new[]{ "AllAddresses", "AllRoles", "AllHashes", "Members", "Overview", "Version", "AllAppVersions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview), global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview.Parser, new[]{ "Seen", "ObserverReachability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ObserverReachability), global::Akka.Cluster.Serialization.Proto.Msg.ObserverReachability.Parser, new[]{ "AddressIndex", "Version", "SubjectReachability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability), global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Parser, new[]{ "AddressIndex", "Status", "Version" }, null, new[]{ typeof(global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Member), global::Akka.Cluster.Serialization.Proto.Msg.Member.Parser, new[]{ "AddressIndex", "UpNumber", "Status", "RolesIndexes", "AppVersionIndex" }, null, new[]{ typeof(global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.VectorClock), global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Parser, new[]{ "Timestamp", "Versions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Types.Version), global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Types.Version.Parser, new[]{ "HashIndex", "Timestamp" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress), global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress.Parser, new[]{ "Address", "Uid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPool), global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPool.Parser, new[]{ "Pool", "Settings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.Pool), global::Akka.Cluster.Serialization.Proto.Msg.Pool.Parser, new[]{ "SerializerId", "Manifest", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings), global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings.Parser, new[]{ "TotalInstances", "MaxInstancesPerNode", "AllowLocalRoutees", "UseRole" }, null, null, null, null) })); } #endregion @@ -110,22 +112,31 @@ static ClusterMessagesReflection() { /// /// Join /// - internal sealed partial class Join : pb::IMessage { + internal sealed partial class Join : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Join()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Join() { OnConstruction(); } @@ -133,13 +144,16 @@ public Join() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Join(Join other) : this() { - Node = other.node_ != null ? other.Node.Clone() : null; + node_ = other.node_ != null ? other.node_.Clone() : null; roles_ = other.roles_.Clone(); appVersion_ = other.appVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Join Clone() { return new Join(this); } @@ -148,6 +162,7 @@ public Join Clone() { public const int NodeFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress node_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress Node { get { return node_; } set { @@ -161,6 +176,7 @@ public Join Clone() { = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField roles_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Roles { get { return roles_; } } @@ -169,6 +185,7 @@ public Join Clone() { public const int AppVersionFieldNumber = 3; private string appVersion_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AppVersion { get { return appVersion_; } set { @@ -177,11 +194,13 @@ public string AppVersion { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Join); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Join other) { if (ReferenceEquals(other, null)) { return false; @@ -192,25 +211,34 @@ public bool Equals(Join other) { if (!object.Equals(Node, other.Node)) return false; if(!roles_.Equals(other.roles_)) return false; if (AppVersion != other.AppVersion) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (node_ != null) hash ^= Node.GetHashCode(); hash ^= roles_.GetHashCode(); if (AppVersion.Length != 0) hash ^= AppVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (node_ != null) { output.WriteRawTag(10); output.WriteMessage(Node); @@ -220,9 +248,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(AppVersion); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (node_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Node); + } + roles_.WriteTo(ref output, _repeated_roles_codec); + if (AppVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AppVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (node_ != null) { @@ -232,17 +284,21 @@ public int CalculateSize() { if (AppVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AppVersion); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Join other) { if (other == null) { return; } if (other.node_ != null) { if (node_ == null) { - node_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } Node.MergeFrom(other.Node); } @@ -250,21 +306,26 @@ public void MergeFrom(Join other) { if (other.AppVersion.Length != 0) { AppVersion = other.AppVersion; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (node_ == null) { - node_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + Node = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(node_); + input.ReadMessage(Node); break; } case 18: { @@ -277,29 +338,69 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (node_ == null) { + Node = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(Node); + break; + } + case 18: { + roles_.AddEntriesFrom(ref input, _repeated_roles_codec); + break; + } + case 26: { + AppVersion = input.ReadString(); + break; + } + } + } } + #endif } /// /// Welcome, reply to Join /// - internal sealed partial class Welcome : pb::IMessage { + internal sealed partial class Welcome : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Welcome()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Welcome() { OnConstruction(); } @@ -307,12 +408,15 @@ public Welcome() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Welcome(Welcome other) : this() { - From = other.from_ != null ? other.From.Clone() : null; - Gossip = other.gossip_ != null ? other.Gossip.Clone() : null; + from_ = other.from_ != null ? other.from_.Clone() : null; + gossip_ = other.gossip_ != null ? other.gossip_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Welcome Clone() { return new Welcome(this); } @@ -321,6 +425,7 @@ public Welcome Clone() { public const int FromFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress from_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress From { get { return from_; } set { @@ -332,6 +437,7 @@ public Welcome Clone() { public const int GossipFieldNumber = 2; private global::Akka.Cluster.Serialization.Proto.Msg.Gossip gossip_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.Gossip Gossip { get { return gossip_; } set { @@ -340,11 +446,13 @@ public Welcome Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Welcome); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Welcome other) { if (ReferenceEquals(other, null)) { return false; @@ -354,24 +462,51 @@ public bool Equals(Welcome other) { } if (!object.Equals(From, other.From)) return false; if (!object.Equals(Gossip, other.Gossip)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); if (gossip_ != null) hash ^= Gossip.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (gossip_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Gossip); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -380,9 +515,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Gossip); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -391,53 +531,92 @@ public int CalculateSize() { if (gossip_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gossip); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Welcome other) { if (other == null) { return; } if (other.from_ != null) { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } From.MergeFrom(other.From); } if (other.gossip_ != null) { if (gossip_ == null) { - gossip_ = new global::Akka.Cluster.Serialization.Proto.Msg.Gossip(); + Gossip = new global::Akka.Cluster.Serialization.Proto.Msg.Gossip(); } Gossip.MergeFrom(other.Gossip); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (gossip_ == null) { + Gossip = new global::Akka.Cluster.Serialization.Proto.Msg.Gossip(); + } + input.ReadMessage(Gossip); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(from_); + input.ReadMessage(From); break; } case 18: { if (gossip_ == null) { - gossip_ = new global::Akka.Cluster.Serialization.Proto.Msg.Gossip(); + Gossip = new global::Akka.Cluster.Serialization.Proto.Msg.Gossip(); } - input.ReadMessage(gossip_); + input.ReadMessage(Gossip); break; } } } } + #endif } @@ -448,22 +627,31 @@ public void MergeFrom(pb::CodedInputStream input) { /// Sends an Address /// Version 1.4.19 can deserialize this message but does not send it /// - internal sealed partial class Heartbeat : pb::IMessage { + internal sealed partial class Heartbeat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Heartbeat()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Heartbeat() { OnConstruction(); } @@ -471,13 +659,16 @@ public Heartbeat() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Heartbeat(Heartbeat other) : this() { - From = other.from_ != null ? other.From.Clone() : null; + from_ = other.from_ != null ? other.from_.Clone() : null; sequenceNr_ = other.sequenceNr_; creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Heartbeat Clone() { return new Heartbeat(this); } @@ -486,6 +677,7 @@ public Heartbeat Clone() { public const int FromFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData from_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData From { get { return from_; } set { @@ -497,6 +689,7 @@ public Heartbeat Clone() { public const int SequenceNrFieldNumber = 2; private long sequenceNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SequenceNr { get { return sequenceNr_; } set { @@ -508,6 +701,7 @@ public long SequenceNr { public const int CreationTimeFieldNumber = 3; private long creationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CreationTime { get { return creationTime_; } set { @@ -516,11 +710,13 @@ public long CreationTime { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Heartbeat); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Heartbeat other) { if (ReferenceEquals(other, null)) { return false; @@ -531,25 +727,56 @@ public bool Equals(Heartbeat other) { if (!object.Equals(From, other.From)) return false; if (SequenceNr != other.SequenceNr) return false; if (CreationTime != other.CreationTime) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); if (SequenceNr != 0L) hash ^= SequenceNr.GetHashCode(); if (CreationTime != 0L) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (SequenceNr != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SequenceNr); + } + if (CreationTime != 0L) { + output.WriteRawTag(24); + output.WriteSInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -562,9 +789,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteSInt64(CreationTime); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -576,17 +808,21 @@ public int CalculateSize() { if (CreationTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeSInt64Size(CreationTime); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Heartbeat other) { if (other == null) { return; } if (other.from_ != null) { if (from_ == null) { - from_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + From = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } From.MergeFrom(other.From); } @@ -596,21 +832,56 @@ public void MergeFrom(Heartbeat other) { if (other.CreationTime != 0L) { CreationTime = other.CreationTime; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(From); + break; + } + case 16: { + SequenceNr = input.ReadInt64(); + break; + } + case 24: { + CreationTime = input.ReadSInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (from_ == null) { - from_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + From = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(from_); + input.ReadMessage(From); break; } case 16: { @@ -624,6 +895,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } @@ -634,22 +906,31 @@ public void MergeFrom(pb::CodedInputStream input) { /// Sends an UniqueAddress /// Version 1.4.19 can deserialize this message but does not send it /// - internal sealed partial class HeartBeatResponse : pb::IMessage { + internal sealed partial class HeartBeatResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartBeatResponse()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HeartBeatResponse() { OnConstruction(); } @@ -657,13 +938,16 @@ public HeartBeatResponse() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HeartBeatResponse(HeartBeatResponse other) : this() { - From = other.from_ != null ? other.From.Clone() : null; + from_ = other.from_ != null ? other.from_.Clone() : null; sequenceNr_ = other.sequenceNr_; creationTime_ = other.creationTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HeartBeatResponse Clone() { return new HeartBeatResponse(this); } @@ -672,6 +956,7 @@ public HeartBeatResponse Clone() { public const int FromFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress from_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress From { get { return from_; } set { @@ -683,6 +968,7 @@ public HeartBeatResponse Clone() { public const int SequenceNrFieldNumber = 2; private long sequenceNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SequenceNr { get { return sequenceNr_; } set { @@ -694,6 +980,7 @@ public long SequenceNr { public const int CreationTimeFieldNumber = 3; private long creationTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CreationTime { get { return creationTime_; } set { @@ -702,11 +989,13 @@ public long CreationTime { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as HeartBeatResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(HeartBeatResponse other) { if (ReferenceEquals(other, null)) { return false; @@ -717,25 +1006,56 @@ public bool Equals(HeartBeatResponse other) { if (!object.Equals(From, other.From)) return false; if (SequenceNr != other.SequenceNr) return false; if (CreationTime != other.CreationTime) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); if (SequenceNr != 0L) hash ^= SequenceNr.GetHashCode(); if (CreationTime != 0L) hash ^= CreationTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (SequenceNr != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SequenceNr); + } + if (CreationTime != 0L) { + output.WriteRawTag(24); + output.WriteInt64(CreationTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -748,9 +1068,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteInt64(CreationTime); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -762,17 +1087,21 @@ public int CalculateSize() { if (CreationTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreationTime); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(HeartBeatResponse other) { if (other == null) { return; } if (other.from_ != null) { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } From.MergeFrom(other.From); } @@ -782,21 +1111,56 @@ public void MergeFrom(HeartBeatResponse other) { if (other.CreationTime != 0L) { CreationTime = other.CreationTime; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(From); + break; + } + case 16: { + SequenceNr = input.ReadInt64(); + break; + } + case 24: { + CreationTime = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(from_); + input.ReadMessage(From); break; } case 16: { @@ -810,28 +1174,38 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } /// /// Gossip Envelope /// - internal sealed partial class GossipEnvelope : pb::IMessage { + internal sealed partial class GossipEnvelope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GossipEnvelope()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipEnvelope() { OnConstruction(); } @@ -839,13 +1213,16 @@ public GossipEnvelope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipEnvelope(GossipEnvelope other) : this() { - From = other.from_ != null ? other.From.Clone() : null; - To = other.to_ != null ? other.To.Clone() : null; + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; serializedGossip_ = other.serializedGossip_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipEnvelope Clone() { return new GossipEnvelope(this); } @@ -854,6 +1231,7 @@ public GossipEnvelope Clone() { public const int FromFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress from_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress From { get { return from_; } set { @@ -865,6 +1243,7 @@ public GossipEnvelope Clone() { public const int ToFieldNumber = 2; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress to_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress To { get { return to_; } set { @@ -876,6 +1255,7 @@ public GossipEnvelope Clone() { public const int SerializedGossipFieldNumber = 3; private pb::ByteString serializedGossip_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString SerializedGossip { get { return serializedGossip_; } set { @@ -884,11 +1264,13 @@ public GossipEnvelope Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GossipEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GossipEnvelope other) { if (ReferenceEquals(other, null)) { return false; @@ -899,25 +1281,56 @@ public bool Equals(GossipEnvelope other) { if (!object.Equals(From, other.From)) return false; if (!object.Equals(To, other.To)) return false; if (SerializedGossip != other.SerializedGossip) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); if (to_ != null) hash ^= To.GetHashCode(); if (SerializedGossip.Length != 0) hash ^= SerializedGossip.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (SerializedGossip.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(SerializedGossip); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -930,9 +1343,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteBytes(SerializedGossip); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -944,51 +1362,93 @@ public int CalculateSize() { if (SerializedGossip.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(SerializedGossip); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GossipEnvelope other) { if (other == null) { return; } if (other.from_ != null) { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } From.MergeFrom(other.From); } if (other.to_ != null) { if (to_ == null) { - to_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + To = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } To.MergeFrom(other.To); } if (other.SerializedGossip.Length != 0) { SerializedGossip = other.SerializedGossip; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(To); + break; + } + case 26: { + SerializedGossip = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(from_); + input.ReadMessage(From); break; } case 18: { if (to_ == null) { - to_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + To = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(to_); + input.ReadMessage(To); break; } case 26: { @@ -998,28 +1458,38 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } /// /// Gossip Status /// - internal sealed partial class GossipStatus : pb::IMessage { + internal sealed partial class GossipStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GossipStatus()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipStatus() { OnConstruction(); } @@ -1027,13 +1497,16 @@ public GossipStatus() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipStatus(GossipStatus other) : this() { - From = other.from_ != null ? other.From.Clone() : null; + from_ = other.from_ != null ? other.from_.Clone() : null; allHashes_ = other.allHashes_.Clone(); - Version = other.version_ != null ? other.Version.Clone() : null; + version_ = other.version_ != null ? other.version_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipStatus Clone() { return new GossipStatus(this); } @@ -1042,6 +1515,7 @@ public GossipStatus Clone() { public const int FromFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress from_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress From { get { return from_; } set { @@ -1055,6 +1529,7 @@ public GossipStatus Clone() { = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField allHashes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllHashes { get { return allHashes_; } } @@ -1063,6 +1538,7 @@ public GossipStatus Clone() { public const int VersionFieldNumber = 3; private global::Akka.Cluster.Serialization.Proto.Msg.VectorClock version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.VectorClock Version { get { return version_; } set { @@ -1071,11 +1547,13 @@ public GossipStatus Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GossipStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GossipStatus other) { if (ReferenceEquals(other, null)) { return false; @@ -1086,25 +1564,34 @@ public bool Equals(GossipStatus other) { if (!object.Equals(From, other.From)) return false; if(!allHashes_.Equals(other.allHashes_)) return false; if (!object.Equals(Version, other.Version)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); hash ^= allHashes_.GetHashCode(); if (version_ != null) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -1114,9 +1601,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Version); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + allHashes_.WriteTo(ref output, _repeated_allHashes_codec); + if (version_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -1126,42 +1637,51 @@ public int CalculateSize() { if (version_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Version); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GossipStatus other) { if (other == null) { return; } if (other.from_ != null) { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } From.MergeFrom(other.From); } allHashes_.Add(other.allHashes_); if (other.version_ != null) { if (version_ == null) { - version_ = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); } Version.MergeFrom(other.Version); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (from_ == null) { - from_ = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); } - input.ReadMessage(from_); + input.ReadMessage(From); break; } case 18: { @@ -1170,36 +1690,79 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (version_ == null) { - version_ = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + } + input.ReadMessage(Version); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress(); + } + input.ReadMessage(From); + break; + } + case 18: { + allHashes_.AddEntriesFrom(ref input, _repeated_allHashes_codec); + break; + } + case 26: { + if (version_ == null) { + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); } - input.ReadMessage(version_); + input.ReadMessage(Version); break; } } } } + #endif } /// /// Gossip /// - internal sealed partial class Gossip : pb::IMessage { + internal sealed partial class Gossip : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gossip()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip() { OnConstruction(); } @@ -1207,17 +1770,20 @@ public Gossip() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip(Gossip other) : this() { allAddresses_ = other.allAddresses_.Clone(); allRoles_ = other.allRoles_.Clone(); allHashes_ = other.allHashes_.Clone(); members_ = other.members_.Clone(); - Overview = other.overview_ != null ? other.Overview.Clone() : null; - Version = other.version_ != null ? other.Version.Clone() : null; + overview_ = other.overview_ != null ? other.overview_.Clone() : null; + version_ = other.version_ != null ? other.version_.Clone() : null; allAppVersions_ = other.allAppVersions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gossip Clone() { return new Gossip(this); } @@ -1228,6 +1794,7 @@ public Gossip Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Cluster.Serialization.Proto.Msg.UniqueAddress.Parser); private readonly pbc::RepeatedField allAddresses_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllAddresses { get { return allAddresses_; } } @@ -1238,6 +1805,7 @@ public Gossip Clone() { = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField allRoles_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllRoles { get { return allRoles_; } } @@ -1248,6 +1816,7 @@ public Gossip Clone() { = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField allHashes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllHashes { get { return allHashes_; } } @@ -1258,6 +1827,7 @@ public Gossip Clone() { = pb::FieldCodec.ForMessage(34, global::Akka.Cluster.Serialization.Proto.Msg.Member.Parser); private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Members { get { return members_; } } @@ -1266,6 +1836,7 @@ public Gossip Clone() { public const int OverviewFieldNumber = 5; private global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview overview_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview Overview { get { return overview_; } set { @@ -1277,6 +1848,7 @@ public Gossip Clone() { public const int VersionFieldNumber = 6; private global::Akka.Cluster.Serialization.Proto.Msg.VectorClock version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.VectorClock Version { get { return version_; } set { @@ -1290,16 +1862,19 @@ public Gossip Clone() { = pb::FieldCodec.ForString(66); private readonly pbc::RepeatedField allAppVersions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllAppVersions { get { return allAppVersions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Gossip); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Gossip other) { if (ReferenceEquals(other, null)) { return false; @@ -1314,10 +1889,11 @@ public bool Equals(Gossip other) { if (!object.Equals(Overview, other.Overview)) return false; if (!object.Equals(Version, other.Version)) return false; if(!allAppVersions_.Equals(other.allAppVersions_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= allAddresses_.GetHashCode(); @@ -1327,16 +1903,24 @@ public override int GetHashCode() { if (overview_ != null) hash ^= Overview.GetHashCode(); if (version_ != null) hash ^= Version.GetHashCode(); hash ^= allAppVersions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else allAddresses_.WriteTo(output, _repeated_allAddresses_codec); allRoles_.WriteTo(output, _repeated_allRoles_codec); allHashes_.WriteTo(output, _repeated_allHashes_codec); @@ -1350,9 +1934,37 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(Version); } allAppVersions_.WriteTo(output, _repeated_allAppVersions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + allAddresses_.WriteTo(ref output, _repeated_allAddresses_codec); + allRoles_.WriteTo(ref output, _repeated_allRoles_codec); + allHashes_.WriteTo(ref output, _repeated_allHashes_codec); + members_.WriteTo(ref output, _repeated_members_codec); + if (overview_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Overview); + } + if (version_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Version); + } + allAppVersions_.WriteTo(ref output, _repeated_allAppVersions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += allAddresses_.CalculateSize(_repeated_allAddresses_codec); @@ -1366,10 +1978,14 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Version); } size += allAppVersions_.CalculateSize(_repeated_allAppVersions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Gossip other) { if (other == null) { return; @@ -1380,26 +1996,31 @@ public void MergeFrom(Gossip other) { members_.Add(other.members_); if (other.overview_ != null) { if (overview_ == null) { - overview_ = new global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview(); + Overview = new global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview(); } Overview.MergeFrom(other.Overview); } if (other.version_ != null) { if (version_ == null) { - version_ = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); } Version.MergeFrom(other.Version); } allAppVersions_.Add(other.allAppVersions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { allAddresses_.AddEntriesFrom(input, _repeated_allAddresses_codec); @@ -1419,16 +2040,16 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (overview_ == null) { - overview_ = new global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview(); + Overview = new global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview(); } - input.ReadMessage(overview_); + input.ReadMessage(Overview); break; } case 50: { if (version_ == null) { - version_ = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); } - input.ReadMessage(version_); + input.ReadMessage(Version); break; } case 66: { @@ -1437,29 +2058,88 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } - - /// - /// Gossip Overview + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + allAddresses_.AddEntriesFrom(ref input, _repeated_allAddresses_codec); + break; + } + case 18: { + allRoles_.AddEntriesFrom(ref input, _repeated_allRoles_codec); + break; + } + case 26: { + allHashes_.AddEntriesFrom(ref input, _repeated_allHashes_codec); + break; + } + case 34: { + members_.AddEntriesFrom(ref input, _repeated_members_codec); + break; + } + case 42: { + if (overview_ == null) { + Overview = new global::Akka.Cluster.Serialization.Proto.Msg.GossipOverview(); + } + input.ReadMessage(Overview); + break; + } + case 50: { + if (version_ == null) { + Version = new global::Akka.Cluster.Serialization.Proto.Msg.VectorClock(); + } + input.ReadMessage(Version); + break; + } + case 66: { + allAppVersions_.AddEntriesFrom(ref input, _repeated_allAppVersions_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Gossip Overview /// - internal sealed partial class GossipOverview : pb::IMessage { + internal sealed partial class GossipOverview : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GossipOverview()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipOverview() { OnConstruction(); } @@ -1467,12 +2147,15 @@ public GossipOverview() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipOverview(GossipOverview other) : this() { seen_ = other.seen_.Clone(); observerReachability_ = other.observerReachability_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GossipOverview Clone() { return new GossipOverview(this); } @@ -1486,6 +2169,7 @@ public GossipOverview Clone() { /// This is the address indexes for the nodes that have seen this gossip /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Seen { get { return seen_; } } @@ -1496,16 +2180,19 @@ public GossipOverview Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.Cluster.Serialization.Proto.Msg.ObserverReachability.Parser); private readonly pbc::RepeatedField observerReachability_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ObserverReachability { get { return observerReachability_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GossipOverview); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GossipOverview other) { if (ReferenceEquals(other, null)) { return false; @@ -1515,52 +2202,87 @@ public bool Equals(GossipOverview other) { } if(!seen_.Equals(other.seen_)) return false; if(!observerReachability_.Equals(other.observerReachability_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= seen_.GetHashCode(); hash ^= observerReachability_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else seen_.WriteTo(output, _repeated_seen_codec); observerReachability_.WriteTo(output, _repeated_observerReachability_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + seen_.WriteTo(ref output, _repeated_seen_codec); + observerReachability_.WriteTo(ref output, _repeated_observerReachability_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += seen_.CalculateSize(_repeated_seen_codec); size += observerReachability_.CalculateSize(_repeated_observerReachability_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GossipOverview other) { if (other == null) { return; } seen_.Add(other.seen_); observerReachability_.Add(other.observerReachability_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { @@ -1573,29 +2295,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + seen_.AddEntriesFrom(ref input, _repeated_seen_codec); + break; + } + case 18: { + observerReachability_.AddEntriesFrom(ref input, _repeated_observerReachability_codec); + break; + } + } + } + } + #endif + } /// /// Reachability /// - internal sealed partial class ObserverReachability : pb::IMessage { + internal sealed partial class ObserverReachability : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObserverReachability()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ObserverReachability() { OnConstruction(); } @@ -1603,13 +2359,16 @@ public ObserverReachability() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ObserverReachability(ObserverReachability other) : this() { addressIndex_ = other.addressIndex_; version_ = other.version_; subjectReachability_ = other.subjectReachability_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ObserverReachability Clone() { return new ObserverReachability(this); } @@ -1618,6 +2377,7 @@ public ObserverReachability Clone() { public const int AddressIndexFieldNumber = 1; private int addressIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AddressIndex { get { return addressIndex_; } set { @@ -1629,6 +2389,7 @@ public int AddressIndex { public const int VersionFieldNumber = 4; private long version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Version { get { return version_; } set { @@ -1642,16 +2403,19 @@ public long Version { = pb::FieldCodec.ForMessage(18, global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Parser); private readonly pbc::RepeatedField subjectReachability_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SubjectReachability { get { return subjectReachability_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ObserverReachability); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ObserverReachability other) { if (ReferenceEquals(other, null)) { return false; @@ -1662,25 +2426,34 @@ public bool Equals(ObserverReachability other) { if (AddressIndex != other.AddressIndex) return false; if (Version != other.Version) return false; if(!subjectReachability_.Equals(other.subjectReachability_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (AddressIndex != 0) hash ^= AddressIndex.GetHashCode(); if (Version != 0L) hash ^= Version.GetHashCode(); hash ^= subjectReachability_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (AddressIndex != 0) { output.WriteRawTag(8); output.WriteInt32(AddressIndex); @@ -1690,9 +2463,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteInt64(Version); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AddressIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(AddressIndex); + } + subjectReachability_.WriteTo(ref output, _repeated_subjectReachability_codec); + if (Version != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (AddressIndex != 0) { @@ -1702,10 +2499,14 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); } size += subjectReachability_.CalculateSize(_repeated_subjectReachability_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ObserverReachability other) { if (other == null) { return; @@ -1717,15 +2518,20 @@ public void MergeFrom(ObserverReachability other) { Version = other.Version; } subjectReachability_.Add(other.subjectReachability_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { AddressIndex = input.ReadInt32(); @@ -1741,26 +2547,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AddressIndex = input.ReadInt32(); + break; + } + case 18: { + subjectReachability_.AddEntriesFrom(ref input, _repeated_subjectReachability_codec); + break; + } + case 32: { + Version = input.ReadInt64(); + break; + } + } + } + } + #endif + } - internal sealed partial class SubjectReachability : pb::IMessage { + internal sealed partial class SubjectReachability : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubjectReachability()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubjectReachability() { OnConstruction(); } @@ -1768,13 +2611,16 @@ public SubjectReachability() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubjectReachability(SubjectReachability other) : this() { addressIndex_ = other.addressIndex_; status_ = other.status_; version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SubjectReachability Clone() { return new SubjectReachability(this); } @@ -1783,6 +2629,7 @@ public SubjectReachability Clone() { public const int AddressIndexFieldNumber = 1; private int addressIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AddressIndex { get { return addressIndex_; } set { @@ -1792,8 +2639,9 @@ public int AddressIndex { /// Field number for the "status" field. public const int StatusFieldNumber = 3; - private global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus status_ = 0; + private global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus status_ = global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus Status { get { return status_; } set { @@ -1805,6 +2653,7 @@ public int AddressIndex { public const int VersionFieldNumber = 4; private long version_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Version { get { return version_; } set { @@ -1813,11 +2662,13 @@ public long Version { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SubjectReachability); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SubjectReachability other) { if (ReferenceEquals(other, null)) { return false; @@ -1828,30 +2679,39 @@ public bool Equals(SubjectReachability other) { if (AddressIndex != other.AddressIndex) return false; if (Status != other.Status) return false; if (Version != other.Version) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (AddressIndex != 0) hash ^= AddressIndex.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable) hash ^= Status.GetHashCode(); if (Version != 0L) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (AddressIndex != 0) { output.WriteRawTag(8); output.WriteInt32(AddressIndex); } - if (Status != 0) { + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable) { output.WriteRawTag(24); output.WriteEnum((int) Status); } @@ -1859,24 +2719,55 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteInt64(Version); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AddressIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(AddressIndex); + } + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable) { + output.WriteRawTag(24); + output.WriteEnum((int) Status); + } + if (Version != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (AddressIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AddressIndex); } - if (Status != 0) { + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } if (Version != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SubjectReachability other) { if (other == null) { return; @@ -1884,28 +2775,33 @@ public void MergeFrom(SubjectReachability other) { if (other.AddressIndex != 0) { AddressIndex = other.AddressIndex; } - if (other.Status != 0) { + if (other.Status != global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus.Reachable) { Status = other.Status; } if (other.Version != 0L) { Version = other.Version; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { AddressIndex = input.ReadInt32(); break; } case 24: { - status_ = (global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus) input.ReadEnum(); + Status = (global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus) input.ReadEnum(); break; } case 32: { @@ -1914,11 +2810,40 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AddressIndex = input.ReadInt32(); + break; + } + case 24: { + Status = (global::Akka.Cluster.Serialization.Proto.Msg.SubjectReachability.Types.ReachabilityStatus) input.ReadEnum(); + break; + } + case 32: { + Version = input.ReadInt64(); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the SubjectReachability message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal enum ReachabilityStatus { [pbr::OriginalName("Reachable")] Reachable = 0, @@ -1934,22 +2859,31 @@ internal enum ReachabilityStatus { /// /// Member /// - internal sealed partial class Member : pb::IMessage { + internal sealed partial class Member : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Member() { OnConstruction(); } @@ -1957,15 +2891,18 @@ public Member() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Member(Member other) : this() { addressIndex_ = other.addressIndex_; upNumber_ = other.upNumber_; status_ = other.status_; rolesIndexes_ = other.rolesIndexes_.Clone(); appVersionIndex_ = other.appVersionIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Member Clone() { return new Member(this); } @@ -1974,6 +2911,7 @@ public Member Clone() { public const int AddressIndexFieldNumber = 1; private int addressIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AddressIndex { get { return addressIndex_; } set { @@ -1985,6 +2923,7 @@ public int AddressIndex { public const int UpNumberFieldNumber = 2; private int upNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UpNumber { get { return upNumber_; } set { @@ -1994,8 +2933,9 @@ public int UpNumber { /// Field number for the "status" field. public const int StatusFieldNumber = 3; - private global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus status_ = 0; + private global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus status_ = global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus Status { get { return status_; } set { @@ -2009,6 +2949,7 @@ public int UpNumber { = pb::FieldCodec.ForInt32(34); private readonly pbc::RepeatedField rolesIndexes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RolesIndexes { get { return rolesIndexes_; } } @@ -2017,6 +2958,7 @@ public int UpNumber { public const int AppVersionIndexFieldNumber = 5; private int appVersionIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AppVersionIndex { get { return appVersionIndex_; } set { @@ -2025,11 +2967,13 @@ public int AppVersionIndex { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Member); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Member other) { if (ReferenceEquals(other, null)) { return false; @@ -2042,27 +2986,36 @@ public bool Equals(Member other) { if (Status != other.Status) return false; if(!rolesIndexes_.Equals(other.rolesIndexes_)) return false; if (AppVersionIndex != other.AppVersionIndex) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (AddressIndex != 0) hash ^= AddressIndex.GetHashCode(); if (UpNumber != 0) hash ^= UpNumber.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining) hash ^= Status.GetHashCode(); hash ^= rolesIndexes_.GetHashCode(); if (AppVersionIndex != 0) hash ^= AppVersionIndex.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (AddressIndex != 0) { output.WriteRawTag(8); output.WriteInt32(AddressIndex); @@ -2071,7 +3024,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteInt32(UpNumber); } - if (Status != 0) { + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining) { output.WriteRawTag(24); output.WriteEnum((int) Status); } @@ -2080,9 +3033,41 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(40); output.WriteInt32(AppVersionIndex); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AddressIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(AddressIndex); + } + if (UpNumber != 0) { + output.WriteRawTag(16); + output.WriteInt32(UpNumber); + } + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining) { + output.WriteRawTag(24); + output.WriteEnum((int) Status); + } + rolesIndexes_.WriteTo(ref output, _repeated_rolesIndexes_codec); + if (AppVersionIndex != 0) { + output.WriteRawTag(40); + output.WriteInt32(AppVersionIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (AddressIndex != 0) { @@ -2091,17 +3076,21 @@ public int CalculateSize() { if (UpNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UpNumber); } - if (Status != 0) { + if (Status != global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } size += rolesIndexes_.CalculateSize(_repeated_rolesIndexes_codec); if (AppVersionIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AppVersionIndex); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Member other) { if (other == null) { return; @@ -2112,22 +3101,27 @@ public void MergeFrom(Member other) { if (other.UpNumber != 0) { UpNumber = other.UpNumber; } - if (other.Status != 0) { + if (other.Status != global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus.Joining) { Status = other.Status; } rolesIndexes_.Add(other.rolesIndexes_); if (other.AppVersionIndex != 0) { AppVersionIndex = other.AppVersionIndex; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { AddressIndex = input.ReadInt32(); @@ -2138,7 +3132,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 24: { - status_ = (global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus) input.ReadEnum(); + Status = (global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus) input.ReadEnum(); break; } case 34: @@ -2152,11 +3146,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AddressIndex = input.ReadInt32(); + break; + } + case 16: { + UpNumber = input.ReadInt32(); + break; + } + case 24: { + Status = (global::Akka.Cluster.Serialization.Proto.Msg.Member.Types.MemberStatus) input.ReadEnum(); + break; + } + case 34: + case 32: { + rolesIndexes_.AddEntriesFrom(ref input, _repeated_rolesIndexes_codec); + break; + } + case 40: { + AppVersionIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the Member message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal enum MemberStatus { [pbr::OriginalName("Joining")] Joining = 0, @@ -2176,22 +3208,31 @@ internal enum MemberStatus { /// /// Vector Clock /// - internal sealed partial class VectorClock : pb::IMessage { + internal sealed partial class VectorClock : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VectorClock()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VectorClock() { OnConstruction(); } @@ -2199,12 +3240,15 @@ public VectorClock() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VectorClock(VectorClock other) : this() { timestamp_ = other.timestamp_; versions_ = other.versions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VectorClock Clone() { return new VectorClock(this); } @@ -2216,6 +3260,7 @@ public VectorClock Clone() { /// the timestamp could be removed but left for test data compatibility /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { get { return timestamp_; } set { @@ -2229,16 +3274,19 @@ public long Timestamp { = pb::FieldCodec.ForMessage(18, global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Types.Version.Parser); private readonly pbc::RepeatedField versions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Versions { get { return versions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as VectorClock); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(VectorClock other) { if (ReferenceEquals(other, null)) { return false; @@ -2248,42 +3296,75 @@ public bool Equals(VectorClock other) { } if (Timestamp != other.Timestamp) return false; if(!versions_.Equals(other.versions_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); hash ^= versions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Timestamp != 0L) { output.WriteRawTag(8); output.WriteInt64(Timestamp); } versions_.WriteTo(output, _repeated_versions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Timestamp != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Timestamp); + } + versions_.WriteTo(ref output, _repeated_versions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Timestamp != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); } size += versions_.CalculateSize(_repeated_versions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(VectorClock other) { if (other == null) { return; @@ -2292,15 +3373,20 @@ public void MergeFrom(VectorClock other) { Timestamp = other.Timestamp; } versions_.Add(other.versions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Timestamp = input.ReadInt64(); @@ -2312,28 +3398,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Timestamp = input.ReadInt64(); + break; + } + case 18: { + versions_.AddEntriesFrom(ref input, _repeated_versions_codec); + break; + } + } + } + } + #endif + #region Nested types /// Container for nested types declared in the VectorClock message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { - internal sealed partial class Version : pb::IMessage { + internal sealed partial class Version : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Version()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.VectorClock.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version() { OnConstruction(); } @@ -2341,12 +3461,15 @@ public Version() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version(Version other) : this() { hashIndex_ = other.hashIndex_; timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Version Clone() { return new Version(this); } @@ -2355,6 +3478,7 @@ public Version Clone() { public const int HashIndexFieldNumber = 1; private int hashIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int HashIndex { get { return hashIndex_; } set { @@ -2366,6 +3490,7 @@ public int HashIndex { public const int TimestampFieldNumber = 2; private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { get { return timestamp_; } set { @@ -2374,11 +3499,13 @@ public long Timestamp { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Version); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Version other) { if (ReferenceEquals(other, null)) { return false; @@ -2388,24 +3515,33 @@ public bool Equals(Version other) { } if (HashIndex != other.HashIndex) return false; if (Timestamp != other.Timestamp) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HashIndex != 0) hash ^= HashIndex.GetHashCode(); if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HashIndex != 0) { output.WriteRawTag(8); output.WriteInt32(HashIndex); @@ -2414,9 +3550,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteInt64(Timestamp); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HashIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(HashIndex); + } + if (Timestamp != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HashIndex != 0) { @@ -2425,10 +3584,14 @@ public int CalculateSize() { if (Timestamp != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Version other) { if (other == null) { return; @@ -2439,15 +3602,20 @@ public void MergeFrom(Version other) { if (other.Timestamp != 0L) { Timestamp = other.Timestamp; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { HashIndex = input.ReadInt32(); @@ -2459,8 +3627,32 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + HashIndex = input.ReadInt32(); + break; + } + case 16: { + Timestamp = input.ReadInt64(); + break; + } + } + } + } + #endif + } } @@ -2471,22 +3663,31 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Defines a remote address with uid. /// - internal sealed partial class UniqueAddress : pb::IMessage { + internal sealed partial class UniqueAddress : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UniqueAddress()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress() { OnConstruction(); } @@ -2494,12 +3695,15 @@ public UniqueAddress() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress(UniqueAddress other) : this() { - Address = other.address_ != null ? other.Address.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UniqueAddress Clone() { return new UniqueAddress(this); } @@ -2508,6 +3712,7 @@ public UniqueAddress Clone() { public const int AddressFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Address { get { return address_; } set { @@ -2519,6 +3724,7 @@ public UniqueAddress Clone() { public const int UidFieldNumber = 2; private uint uid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Uid { get { return uid_; } set { @@ -2527,11 +3733,13 @@ public uint Uid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UniqueAddress); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UniqueAddress other) { if (ReferenceEquals(other, null)) { return false; @@ -2541,24 +3749,51 @@ public bool Equals(UniqueAddress other) { } if (!object.Equals(Address, other.Address)) return false; if (Uid != other.Uid) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); if (Uid != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Uid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -2567,9 +3802,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteUInt32(Uid); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -2578,38 +3818,47 @@ public int CalculateSize() { if (Uid != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UniqueAddress other) { if (other == null) { return; } if (other.address_ != null) { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Address.MergeFrom(other.Address); } if (other.Uid != 0) { Uid = other.Uid; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(address_); + input.ReadMessage(Address); break; } case 16: { @@ -2618,26 +3867,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Address); + break; + } + case 16: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + } - internal sealed partial class ClusterRouterPool : pb::IMessage { + internal sealed partial class ClusterRouterPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterRouterPool()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPool() { OnConstruction(); } @@ -2645,12 +3930,15 @@ public ClusterRouterPool() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPool(ClusterRouterPool other) : this() { - Pool = other.pool_ != null ? other.Pool.Clone() : null; - Settings = other.settings_ != null ? other.Settings.Clone() : null; + pool_ = other.pool_ != null ? other.pool_.Clone() : null; + settings_ = other.settings_ != null ? other.settings_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPool Clone() { return new ClusterRouterPool(this); } @@ -2659,6 +3947,7 @@ public ClusterRouterPool Clone() { public const int PoolFieldNumber = 1; private global::Akka.Cluster.Serialization.Proto.Msg.Pool pool_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.Pool Pool { get { return pool_; } set { @@ -2670,6 +3959,7 @@ public ClusterRouterPool Clone() { public const int SettingsFieldNumber = 2; private global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings settings_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings Settings { get { return settings_; } set { @@ -2678,11 +3968,13 @@ public ClusterRouterPool Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ClusterRouterPool); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ClusterRouterPool other) { if (ReferenceEquals(other, null)) { return false; @@ -2692,24 +3984,33 @@ public bool Equals(ClusterRouterPool other) { } if (!object.Equals(Pool, other.Pool)) return false; if (!object.Equals(Settings, other.Settings)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (pool_ != null) hash ^= Pool.GetHashCode(); if (settings_ != null) hash ^= Settings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (pool_ != null) { output.WriteRawTag(10); output.WriteMessage(Pool); @@ -2718,9 +4019,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Settings); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (pool_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Pool); + } + if (settings_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Settings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (pool_ != null) { @@ -2729,72 +4053,120 @@ public int CalculateSize() { if (settings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ClusterRouterPool other) { if (other == null) { return; } if (other.pool_ != null) { if (pool_ == null) { - pool_ = new global::Akka.Cluster.Serialization.Proto.Msg.Pool(); + Pool = new global::Akka.Cluster.Serialization.Proto.Msg.Pool(); } Pool.MergeFrom(other.Pool); } if (other.settings_ != null) { if (settings_ == null) { - settings_ = new global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings(); + Settings = new global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings(); } Settings.MergeFrom(other.Settings); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (pool_ == null) { + Pool = new global::Akka.Cluster.Serialization.Proto.Msg.Pool(); + } + input.ReadMessage(Pool); + break; + } + case 18: { + if (settings_ == null) { + Settings = new global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings(); + } + input.ReadMessage(Settings); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (pool_ == null) { - pool_ = new global::Akka.Cluster.Serialization.Proto.Msg.Pool(); + Pool = new global::Akka.Cluster.Serialization.Proto.Msg.Pool(); } - input.ReadMessage(pool_); + input.ReadMessage(Pool); break; } case 18: { if (settings_ == null) { - settings_ = new global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings(); + Settings = new global::Akka.Cluster.Serialization.Proto.Msg.ClusterRouterPoolSettings(); } - input.ReadMessage(settings_); + input.ReadMessage(Settings); break; } } } } + #endif } - internal sealed partial class Pool : pb::IMessage { + internal sealed partial class Pool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Pool()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Pool() { OnConstruction(); } @@ -2802,13 +4174,16 @@ public Pool() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Pool(Pool other) : this() { serializerId_ = other.serializerId_; manifest_ = other.manifest_; data_ = other.data_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Pool Clone() { return new Pool(this); } @@ -2817,6 +4192,7 @@ public Pool Clone() { public const int SerializerIdFieldNumber = 1; private uint serializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SerializerId { get { return serializerId_; } set { @@ -2828,6 +4204,7 @@ public uint SerializerId { public const int ManifestFieldNumber = 2; private string manifest_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Manifest { get { return manifest_; } set { @@ -2839,6 +4216,7 @@ public string Manifest { public const int DataFieldNumber = 3; private pb::ByteString data_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Data { get { return data_; } set { @@ -2847,11 +4225,13 @@ public string Manifest { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Pool); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Pool other) { if (ReferenceEquals(other, null)) { return false; @@ -2862,25 +4242,34 @@ public bool Equals(Pool other) { if (SerializerId != other.SerializerId) return false; if (Manifest != other.Manifest) return false; if (Data != other.Data) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SerializerId != 0) hash ^= SerializerId.GetHashCode(); if (Manifest.Length != 0) hash ^= Manifest.GetHashCode(); if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (SerializerId != 0) { output.WriteRawTag(8); output.WriteUInt32(SerializerId); @@ -2893,9 +4282,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteBytes(Data); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SerializerId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SerializerId); + } + if (Manifest.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Manifest); + } + if (Data.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SerializerId != 0) { @@ -2907,10 +4323,14 @@ public int CalculateSize() { if (Data.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Pool other) { if (other == null) { return; @@ -2924,15 +4344,47 @@ public void MergeFrom(Pool other) { if (other.Data.Length != 0) { Data = other.Data; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SerializerId = input.ReadUInt32(); + break; + } + case 18: { + Manifest = input.ReadString(); + break; + } + case 26: { + Data = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { SerializerId = input.ReadUInt32(); @@ -2949,25 +4401,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class ClusterRouterPoolSettings : pb::IMessage { + internal sealed partial class ClusterRouterPoolSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterRouterPoolSettings()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Cluster.Serialization.Proto.Msg.ClusterMessagesReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPoolSettings() { OnConstruction(); } @@ -2975,14 +4437,17 @@ public ClusterRouterPoolSettings() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPoolSettings(ClusterRouterPoolSettings other) : this() { totalInstances_ = other.totalInstances_; maxInstancesPerNode_ = other.maxInstancesPerNode_; allowLocalRoutees_ = other.allowLocalRoutees_; useRole_ = other.useRole_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ClusterRouterPoolSettings Clone() { return new ClusterRouterPoolSettings(this); } @@ -2991,6 +4456,7 @@ public ClusterRouterPoolSettings Clone() { public const int TotalInstancesFieldNumber = 1; private uint totalInstances_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint TotalInstances { get { return totalInstances_; } set { @@ -3002,6 +4468,7 @@ public uint TotalInstances { public const int MaxInstancesPerNodeFieldNumber = 2; private uint maxInstancesPerNode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MaxInstancesPerNode { get { return maxInstancesPerNode_; } set { @@ -3013,6 +4480,7 @@ public uint MaxInstancesPerNode { public const int AllowLocalRouteesFieldNumber = 3; private bool allowLocalRoutees_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool AllowLocalRoutees { get { return allowLocalRoutees_; } set { @@ -3024,6 +4492,7 @@ public bool AllowLocalRoutees { public const int UseRoleFieldNumber = 4; private string useRole_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UseRole { get { return useRole_; } set { @@ -3032,11 +4501,13 @@ public string UseRole { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ClusterRouterPoolSettings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ClusterRouterPoolSettings other) { if (ReferenceEquals(other, null)) { return false; @@ -3048,26 +4519,61 @@ public bool Equals(ClusterRouterPoolSettings other) { if (MaxInstancesPerNode != other.MaxInstancesPerNode) return false; if (AllowLocalRoutees != other.AllowLocalRoutees) return false; if (UseRole != other.UseRole) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (TotalInstances != 0) hash ^= TotalInstances.GetHashCode(); if (MaxInstancesPerNode != 0) hash ^= MaxInstancesPerNode.GetHashCode(); if (AllowLocalRoutees != false) hash ^= AllowLocalRoutees.GetHashCode(); if (UseRole.Length != 0) hash ^= UseRole.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TotalInstances != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalInstances); + } + if (MaxInstancesPerNode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(MaxInstancesPerNode); + } + if (AllowLocalRoutees != false) { + output.WriteRawTag(24); + output.WriteBool(AllowLocalRoutees); + } + if (UseRole.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UseRole); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (TotalInstances != 0) { output.WriteRawTag(8); output.WriteUInt32(TotalInstances); @@ -3084,9 +4590,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(UseRole); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (TotalInstances != 0) { @@ -3101,10 +4612,14 @@ public int CalculateSize() { if (UseRole.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UseRole); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ClusterRouterPoolSettings other) { if (other == null) { return; @@ -3121,15 +4636,51 @@ public void MergeFrom(ClusterRouterPoolSettings other) { if (other.UseRole.Length != 0) { UseRole = other.UseRole; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TotalInstances = input.ReadUInt32(); + break; + } + case 16: { + MaxInstancesPerNode = input.ReadUInt32(); + break; + } + case 24: { + AllowLocalRoutees = input.ReadBool(); + break; + } + case 34: { + UseRole = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { TotalInstances = input.ReadUInt32(); @@ -3150,6 +4701,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } diff --git a/src/core/Akka.Cluster/SplitBrainResolver.cs b/src/core/Akka.Cluster/SplitBrainResolver.cs index 0eb10106828..922e5f61fc3 100644 --- a/src/core/Akka.Cluster/SplitBrainResolver.cs +++ b/src/core/Akka.Cluster/SplitBrainResolver.cs @@ -18,8 +18,9 @@ namespace Akka.Cluster public sealed class SplitBrainResolver : IDowningProvider { private readonly ActorSystem _system; + private readonly Cluster _cluster; - public SplitBrainResolver(ActorSystem system) + public SplitBrainResolver(ActorSystem system, Cluster cluster) { _system = system; var config = system.Settings.Config.GetConfig("akka.cluster.split-brain-resolver"); @@ -28,11 +29,12 @@ public SplitBrainResolver(ActorSystem system) StableAfter = config.GetTimeSpan("stable-after", null); Strategy = ResolveSplitBrainStrategy(config); + _cluster = cluster; } public TimeSpan DownRemovalMargin => Cluster.Get(_system).Settings.DownRemovalMargin; public TimeSpan StableAfter { get; } - public Props DowningActorProps => SplitBrainDecider.Props(StableAfter, Strategy); + public Props DowningActorProps => SplitBrainDecider.Props(StableAfter, Strategy, _cluster); internal ISplitBrainStrategy Strategy { get; } @@ -176,7 +178,7 @@ public IEnumerable Apply(NetworkPartitionContext context) if (remaining.IsEmpty && unreachable.IsEmpty) // prevent exception due to both lists being empty { - return new Member[0]; + return Array.Empty(); } var oldest = remaining.Union(unreachable).ToImmutableSortedSet(Member.AgeOrdering).First(); @@ -241,8 +243,8 @@ private StabilityReached() { } #endregion - public static Actor.Props Props(TimeSpan stableAfter, ISplitBrainStrategy strategy) => - Actor.Props.Create(() => new SplitBrainDecider(stableAfter, strategy)).WithDeploy(Deploy.Local); + public static Actor.Props Props(TimeSpan stableAfter, ISplitBrainStrategy strategy, Cluster cluster) => + Actor.Props.Create(() => new SplitBrainDecider(stableAfter, strategy, cluster)).WithDeploy(Deploy.Local); private readonly Cluster _cluster; private readonly TimeSpan _stabilityTimeout; @@ -253,13 +255,13 @@ public static Actor.Props Props(TimeSpan stableAfter, ISplitBrainStrategy strate private ICancelable _stabilityTask; private ILoggingAdapter _log; - public SplitBrainDecider(TimeSpan stableAfter, ISplitBrainStrategy strategy) + public SplitBrainDecider(TimeSpan stableAfter, ISplitBrainStrategy strategy, Cluster cluster) { if (strategy == null) throw new ArgumentNullException(nameof(strategy)); _stabilityTimeout = stableAfter; _strategy = strategy; - _cluster = Cluster.Get(Context.System); + _cluster = cluster; } public ILoggingAdapter Log => _log ?? (_log = Context.GetLogger()); diff --git a/src/core/Akka.Persistence.TCK/Query/PersistenceIdsSpec.cs b/src/core/Akka.Persistence.TCK/Query/PersistenceIdsSpec.cs index daf054672c5..0c1a0319ae8 100644 --- a/src/core/Akka.Persistence.TCK/Query/PersistenceIdsSpec.cs +++ b/src/core/Akka.Persistence.TCK/Query/PersistenceIdsSpec.cs @@ -18,6 +18,7 @@ using Akka.TestKit; using Akka.Util.Internal; using FluentAssertions; +using FluentAssertions.Extensions; using Reactive.Streams; using Xunit; using Xunit.Abstractions; @@ -86,15 +87,15 @@ public virtual void ReadJournal_AllPersistenceIds_should_find_new_events_after_d }); Setup("j", 1); - probe.Within(TimeSpan.FromSeconds(10), () => probe.Request(5).ExpectNextUnordered(expected[0], expected[1])); + probe.Within(TimeSpan.FromSeconds(10), () => probe.Request(2).ExpectNextUnordered(expected[0], expected[1])); Setup("a1", 1); Thread.Sleep(TimeSpan.FromSeconds(2)); - probe.ExpectNext(TimeSpan.FromSeconds(10)); + probe.RequestNext(10.Seconds()); Thread.Sleep(TimeSpan.FromSeconds(2)); Setup("a2", 1); - probe.ExpectNext(TimeSpan.FromSeconds(10)); + probe.RequestNext(10.Seconds());; } [Fact] diff --git a/src/core/Akka.Persistence/Serialization/Proto/Persistence.g.cs b/src/core/Akka.Persistence/Serialization/Proto/Persistence.g.cs index 9b13bec8062..c7d723522b2 100644 --- a/src/core/Akka.Persistence/Serialization/Proto/Persistence.g.cs +++ b/src/core/Akka.Persistence/Serialization/Proto/Persistence.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Persistence.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Persistence.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -47,36 +49,45 @@ static PersistenceReflection() { "AyABKANiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentMessage), global::Akka.Persistence.Serialization.Proto.Msg.PersistentMessage.Parser, new[]{ "Payload", "SequenceNr", "PersistenceId", "Deleted", "Sender", "Manifest", "WriterGuid", "Timestamp" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload), global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload.Parser, new[]{ "SerializerId", "Payload", "PayloadManifest" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.AtomicWrite), global::Akka.Persistence.Serialization.Proto.Msg.AtomicWrite.Parser, new[]{ "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.UnconfirmedDelivery), global::Akka.Persistence.Serialization.Proto.Msg.UnconfirmedDelivery.Parser, new[]{ "DeliveryId", "Destination", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.AtLeastOnceDeliverySnapshot), global::Akka.Persistence.Serialization.Proto.Msg.AtLeastOnceDeliverySnapshot.Parser, new[]{ "CurrentDeliveryId", "UnconfirmedDeliveries" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentStateChangeEvent), global::Akka.Persistence.Serialization.Proto.Msg.PersistentStateChangeEvent.Parser, new[]{ "StateIdentifier", "TimeoutMillis" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentFSMSnapshot), global::Akka.Persistence.Serialization.Proto.Msg.PersistentFSMSnapshot.Parser, new[]{ "StateIdentifier", "Data", "TimeoutMillis" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentMessage), global::Akka.Persistence.Serialization.Proto.Msg.PersistentMessage.Parser, new[]{ "Payload", "SequenceNr", "PersistenceId", "Deleted", "Sender", "Manifest", "WriterGuid", "Timestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload), global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload.Parser, new[]{ "SerializerId", "Payload", "PayloadManifest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.AtomicWrite), global::Akka.Persistence.Serialization.Proto.Msg.AtomicWrite.Parser, new[]{ "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.UnconfirmedDelivery), global::Akka.Persistence.Serialization.Proto.Msg.UnconfirmedDelivery.Parser, new[]{ "DeliveryId", "Destination", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.AtLeastOnceDeliverySnapshot), global::Akka.Persistence.Serialization.Proto.Msg.AtLeastOnceDeliverySnapshot.Parser, new[]{ "CurrentDeliveryId", "UnconfirmedDeliveries" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentStateChangeEvent), global::Akka.Persistence.Serialization.Proto.Msg.PersistentStateChangeEvent.Parser, new[]{ "StateIdentifier", "TimeoutMillis" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Persistence.Serialization.Proto.Msg.PersistentFSMSnapshot), global::Akka.Persistence.Serialization.Proto.Msg.PersistentFSMSnapshot.Parser, new[]{ "StateIdentifier", "Data", "TimeoutMillis" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class PersistentMessage : pb::IMessage { + internal sealed partial class PersistentMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PersistentMessage()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentMessage() { OnConstruction(); } @@ -84,8 +95,9 @@ public PersistentMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentMessage(PersistentMessage other) : this() { - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; sequenceNr_ = other.sequenceNr_; persistenceId_ = other.persistenceId_; deleted_ = other.deleted_; @@ -93,9 +105,11 @@ public PersistentMessage(PersistentMessage other) : this() { manifest_ = other.manifest_; writerGuid_ = other.writerGuid_; timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentMessage Clone() { return new PersistentMessage(this); } @@ -104,6 +118,7 @@ public PersistentMessage Clone() { public const int PayloadFieldNumber = 1; private global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload Payload { get { return payload_; } set { @@ -115,6 +130,7 @@ public PersistentMessage Clone() { public const int SequenceNrFieldNumber = 2; private long sequenceNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SequenceNr { get { return sequenceNr_; } set { @@ -126,6 +142,7 @@ public long SequenceNr { public const int PersistenceIdFieldNumber = 3; private string persistenceId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PersistenceId { get { return persistenceId_; } set { @@ -140,6 +157,7 @@ public string PersistenceId { /// not used in new records from 2.4 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Deleted { get { return deleted_; } set { @@ -154,6 +172,7 @@ public bool Deleted { /// not stored in journal, needed for remote serialization /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Sender { get { return sender_; } set { @@ -165,6 +184,7 @@ public string Sender { public const int ManifestFieldNumber = 12; private string manifest_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Manifest { get { return manifest_; } set { @@ -176,6 +196,7 @@ public string Manifest { public const int WriterGuidFieldNumber = 13; private string writerGuid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string WriterGuid { get { return writerGuid_; } set { @@ -187,6 +208,7 @@ public string WriterGuid { public const int TimestampFieldNumber = 14; private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { get { return timestamp_; } set { @@ -195,11 +217,13 @@ public long Timestamp { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PersistentMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PersistentMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -215,10 +239,11 @@ public bool Equals(PersistentMessage other) { if (Manifest != other.Manifest) return false; if (WriterGuid != other.WriterGuid) return false; if (Timestamp != other.Timestamp) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (payload_ != null) hash ^= Payload.GetHashCode(); @@ -229,16 +254,66 @@ public override int GetHashCode() { if (Manifest.Length != 0) hash ^= Manifest.GetHashCode(); if (WriterGuid.Length != 0) hash ^= WriterGuid.GetHashCode(); if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + if (SequenceNr != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SequenceNr); + } + if (PersistenceId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PersistenceId); + } + if (Deleted != false) { + output.WriteRawTag(32); + output.WriteBool(Deleted); + } + if (Sender.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Sender); + } + if (Manifest.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Manifest); + } + if (WriterGuid.Length != 0) { + output.WriteRawTag(106); + output.WriteString(WriterGuid); + } + if (Timestamp != 0L) { + output.WriteRawTag(112); + output.WriteSInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (payload_ != null) { output.WriteRawTag(10); output.WriteMessage(Payload); @@ -271,9 +346,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(112); output.WriteSInt64(Timestamp); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (payload_ != null) { @@ -300,17 +380,21 @@ public int CalculateSize() { if (Timestamp != 0L) { size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Timestamp); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PersistentMessage other) { if (other == null) { return; } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } Payload.MergeFrom(other.Payload); } @@ -335,21 +419,76 @@ public void MergeFrom(PersistentMessage other) { if (other.Timestamp != 0L) { Timestamp = other.Timestamp; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (payload_ == null) { + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + } + input.ReadMessage(Payload); + break; + } + case 16: { + SequenceNr = input.ReadInt64(); + break; + } + case 26: { + PersistenceId = input.ReadString(); + break; + } + case 32: { + Deleted = input.ReadBool(); + break; + } + case 90: { + Sender = input.ReadString(); + break; + } + case 98: { + Manifest = input.ReadString(); + break; + } + case 106: { + WriterGuid = input.ReadString(); + break; + } + case 112: { + Timestamp = input.ReadSInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (payload_ == null) { - payload_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } case 16: { @@ -383,25 +522,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class PersistentPayload : pb::IMessage { + internal sealed partial class PersistentPayload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PersistentPayload()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentPayload() { OnConstruction(); } @@ -409,13 +558,16 @@ public PersistentPayload() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentPayload(PersistentPayload other) : this() { serializerId_ = other.serializerId_; payload_ = other.payload_; payloadManifest_ = other.payloadManifest_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentPayload Clone() { return new PersistentPayload(this); } @@ -424,6 +576,7 @@ public PersistentPayload Clone() { public const int SerializerIdFieldNumber = 1; private int serializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SerializerId { get { return serializerId_; } set { @@ -435,6 +588,7 @@ public int SerializerId { public const int PayloadFieldNumber = 2; private pb::ByteString payload_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Payload { get { return payload_; } set { @@ -446,6 +600,7 @@ public int SerializerId { public const int PayloadManifestFieldNumber = 3; private pb::ByteString payloadManifest_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString PayloadManifest { get { return payloadManifest_; } set { @@ -454,11 +609,13 @@ public int SerializerId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PersistentPayload); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PersistentPayload other) { if (ReferenceEquals(other, null)) { return false; @@ -469,25 +626,56 @@ public bool Equals(PersistentPayload other) { if (SerializerId != other.SerializerId) return false; if (Payload != other.Payload) return false; if (PayloadManifest != other.PayloadManifest) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SerializerId != 0) hash ^= SerializerId.GetHashCode(); if (Payload.Length != 0) hash ^= Payload.GetHashCode(); if (PayloadManifest.Length != 0) hash ^= PayloadManifest.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SerializerId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SerializerId); + } + if (Payload.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Payload); + } + if (PayloadManifest.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(PayloadManifest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (SerializerId != 0) { output.WriteRawTag(8); output.WriteInt32(SerializerId); @@ -500,9 +688,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteBytes(PayloadManifest); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SerializerId != 0) { @@ -514,10 +707,14 @@ public int CalculateSize() { if (PayloadManifest.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(PayloadManifest); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PersistentPayload other) { if (other == null) { return; @@ -531,15 +728,47 @@ public void MergeFrom(PersistentPayload other) { if (other.PayloadManifest.Length != 0) { PayloadManifest = other.PayloadManifest; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SerializerId = input.ReadInt32(); + break; + } + case 18: { + Payload = input.ReadBytes(); + break; + } + case 26: { + PayloadManifest = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { SerializerId = input.ReadInt32(); @@ -556,25 +785,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class AtomicWrite : pb::IMessage { + internal sealed partial class AtomicWrite : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AtomicWrite()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtomicWrite() { OnConstruction(); } @@ -582,11 +821,14 @@ public AtomicWrite() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtomicWrite(AtomicWrite other) : this() { payload_ = other.payload_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtomicWrite Clone() { return new AtomicWrite(this); } @@ -597,16 +839,19 @@ public AtomicWrite Clone() { = pb::FieldCodec.ForMessage(10, global::Akka.Persistence.Serialization.Proto.Msg.PersistentMessage.Parser); private readonly pbc::RepeatedField payload_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Payload { get { return payload_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AtomicWrite); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AtomicWrite other) { if (ReferenceEquals(other, null)) { return false; @@ -615,48 +860,82 @@ public bool Equals(AtomicWrite other) { return true; } if(!payload_.Equals(other.payload_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= payload_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else payload_.WriteTo(output, _repeated_payload_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + payload_.WriteTo(ref output, _repeated_payload_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += payload_.CalculateSize(_repeated_payload_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AtomicWrite other) { if (other == null) { return; } payload_.Add(other.payload_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { payload_.AddEntriesFrom(input, _repeated_payload_codec); @@ -664,26 +943,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + payload_.AddEntriesFrom(ref input, _repeated_payload_codec); + break; + } + } + } } + #endif } - internal sealed partial class UnconfirmedDelivery : pb::IMessage { + internal sealed partial class UnconfirmedDelivery : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnconfirmedDelivery()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnconfirmedDelivery() { OnConstruction(); } @@ -691,13 +999,16 @@ public UnconfirmedDelivery() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnconfirmedDelivery(UnconfirmedDelivery other) : this() { deliveryId_ = other.deliveryId_; destination_ = other.destination_; - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnconfirmedDelivery Clone() { return new UnconfirmedDelivery(this); } @@ -706,6 +1017,7 @@ public UnconfirmedDelivery Clone() { public const int DeliveryIdFieldNumber = 1; private long deliveryId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long DeliveryId { get { return deliveryId_; } set { @@ -717,6 +1029,7 @@ public long DeliveryId { public const int DestinationFieldNumber = 2; private string destination_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Destination { get { return destination_; } set { @@ -728,6 +1041,7 @@ public string Destination { public const int PayloadFieldNumber = 3; private global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload Payload { get { return payload_; } set { @@ -736,11 +1050,13 @@ public string Destination { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UnconfirmedDelivery); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UnconfirmedDelivery other) { if (ReferenceEquals(other, null)) { return false; @@ -751,25 +1067,34 @@ public bool Equals(UnconfirmedDelivery other) { if (DeliveryId != other.DeliveryId) return false; if (Destination != other.Destination) return false; if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (DeliveryId != 0L) hash ^= DeliveryId.GetHashCode(); if (Destination.Length != 0) hash ^= Destination.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (DeliveryId != 0L) { output.WriteRawTag(8); output.WriteInt64(DeliveryId); @@ -782,9 +1107,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DeliveryId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(DeliveryId); + } + if (Destination.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Destination); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (DeliveryId != 0L) { @@ -796,10 +1148,14 @@ public int CalculateSize() { if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UnconfirmedDelivery other) { if (other == null) { return; @@ -812,19 +1168,54 @@ public void MergeFrom(UnconfirmedDelivery other) { } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DeliveryId = input.ReadInt64(); + break; + } + case 18: { + Destination = input.ReadString(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { DeliveryId = input.ReadInt64(); @@ -836,33 +1227,43 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (payload_ == null) { - payload_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Payload = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } } + #endif } - internal sealed partial class AtLeastOnceDeliverySnapshot : pb::IMessage { + internal sealed partial class AtLeastOnceDeliverySnapshot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AtLeastOnceDeliverySnapshot()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtLeastOnceDeliverySnapshot() { OnConstruction(); } @@ -870,12 +1271,15 @@ public AtLeastOnceDeliverySnapshot() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtLeastOnceDeliverySnapshot(AtLeastOnceDeliverySnapshot other) : this() { currentDeliveryId_ = other.currentDeliveryId_; unconfirmedDeliveries_ = other.unconfirmedDeliveries_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AtLeastOnceDeliverySnapshot Clone() { return new AtLeastOnceDeliverySnapshot(this); } @@ -884,6 +1288,7 @@ public AtLeastOnceDeliverySnapshot Clone() { public const int CurrentDeliveryIdFieldNumber = 1; private long currentDeliveryId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CurrentDeliveryId { get { return currentDeliveryId_; } set { @@ -897,16 +1302,19 @@ public long CurrentDeliveryId { = pb::FieldCodec.ForMessage(18, global::Akka.Persistence.Serialization.Proto.Msg.UnconfirmedDelivery.Parser); private readonly pbc::RepeatedField unconfirmedDeliveries_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UnconfirmedDeliveries { get { return unconfirmedDeliveries_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AtLeastOnceDeliverySnapshot); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AtLeastOnceDeliverySnapshot other) { if (ReferenceEquals(other, null)) { return false; @@ -916,42 +1324,75 @@ public bool Equals(AtLeastOnceDeliverySnapshot other) { } if (CurrentDeliveryId != other.CurrentDeliveryId) return false; if(!unconfirmedDeliveries_.Equals(other.unconfirmedDeliveries_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (CurrentDeliveryId != 0L) hash ^= CurrentDeliveryId.GetHashCode(); hash ^= unconfirmedDeliveries_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (CurrentDeliveryId != 0L) { output.WriteRawTag(8); output.WriteInt64(CurrentDeliveryId); } unconfirmedDeliveries_.WriteTo(output, _repeated_unconfirmedDeliveries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurrentDeliveryId != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CurrentDeliveryId); + } + unconfirmedDeliveries_.WriteTo(ref output, _repeated_unconfirmedDeliveries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (CurrentDeliveryId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentDeliveryId); } size += unconfirmedDeliveries_.CalculateSize(_repeated_unconfirmedDeliveries_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AtLeastOnceDeliverySnapshot other) { if (other == null) { return; @@ -960,15 +1401,20 @@ public void MergeFrom(AtLeastOnceDeliverySnapshot other) { CurrentDeliveryId = other.CurrentDeliveryId; } unconfirmedDeliveries_.Add(other.unconfirmedDeliveries_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { CurrentDeliveryId = input.ReadInt64(); @@ -980,26 +1426,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CurrentDeliveryId = input.ReadInt64(); + break; + } + case 18: { + unconfirmedDeliveries_.AddEntriesFrom(ref input, _repeated_unconfirmedDeliveries_codec); + break; + } + } + } } + #endif } - internal sealed partial class PersistentStateChangeEvent : pb::IMessage { + internal sealed partial class PersistentStateChangeEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PersistentStateChangeEvent()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentStateChangeEvent() { OnConstruction(); } @@ -1007,12 +1486,15 @@ public PersistentStateChangeEvent() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentStateChangeEvent(PersistentStateChangeEvent other) : this() { stateIdentifier_ = other.stateIdentifier_; timeoutMillis_ = other.timeoutMillis_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentStateChangeEvent Clone() { return new PersistentStateChangeEvent(this); } @@ -1021,6 +1503,7 @@ public PersistentStateChangeEvent Clone() { public const int StateIdentifierFieldNumber = 1; private string stateIdentifier_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StateIdentifier { get { return stateIdentifier_; } set { @@ -1032,6 +1515,7 @@ public string StateIdentifier { public const int TimeoutMillisFieldNumber = 2; private long timeoutMillis_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TimeoutMillis { get { return timeoutMillis_; } set { @@ -1040,11 +1524,13 @@ public long TimeoutMillis { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PersistentStateChangeEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PersistentStateChangeEvent other) { if (ReferenceEquals(other, null)) { return false; @@ -1054,24 +1540,51 @@ public bool Equals(PersistentStateChangeEvent other) { } if (StateIdentifier != other.StateIdentifier) return false; if (TimeoutMillis != other.TimeoutMillis) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StateIdentifier.Length != 0) hash ^= StateIdentifier.GetHashCode(); if (TimeoutMillis != 0L) hash ^= TimeoutMillis.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StateIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StateIdentifier); + } + if (TimeoutMillis != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TimeoutMillis); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StateIdentifier.Length != 0) { output.WriteRawTag(10); output.WriteString(StateIdentifier); @@ -1080,9 +1593,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteInt64(TimeoutMillis); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StateIdentifier.Length != 0) { @@ -1091,10 +1609,14 @@ public int CalculateSize() { if (TimeoutMillis != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeoutMillis); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PersistentStateChangeEvent other) { if (other == null) { return; @@ -1105,15 +1627,43 @@ public void MergeFrom(PersistentStateChangeEvent other) { if (other.TimeoutMillis != 0L) { TimeoutMillis = other.TimeoutMillis; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StateIdentifier = input.ReadString(); + break; + } + case 16: { + TimeoutMillis = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StateIdentifier = input.ReadString(); @@ -1126,25 +1676,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class PersistentFSMSnapshot : pb::IMessage { + internal sealed partial class PersistentFSMSnapshot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PersistentFSMSnapshot()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Persistence.Serialization.Proto.Msg.PersistenceReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentFSMSnapshot() { OnConstruction(); } @@ -1152,13 +1712,16 @@ public PersistentFSMSnapshot() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentFSMSnapshot(PersistentFSMSnapshot other) : this() { stateIdentifier_ = other.stateIdentifier_; - Data = other.data_ != null ? other.Data.Clone() : null; + data_ = other.data_ != null ? other.data_.Clone() : null; timeoutMillis_ = other.timeoutMillis_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PersistentFSMSnapshot Clone() { return new PersistentFSMSnapshot(this); } @@ -1167,6 +1730,7 @@ public PersistentFSMSnapshot Clone() { public const int StateIdentifierFieldNumber = 1; private string stateIdentifier_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StateIdentifier { get { return stateIdentifier_; } set { @@ -1178,6 +1742,7 @@ public string StateIdentifier { public const int DataFieldNumber = 2; private global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload Data { get { return data_; } set { @@ -1189,6 +1754,7 @@ public string StateIdentifier { public const int TimeoutMillisFieldNumber = 3; private long timeoutMillis_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TimeoutMillis { get { return timeoutMillis_; } set { @@ -1197,11 +1763,13 @@ public long TimeoutMillis { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PersistentFSMSnapshot); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PersistentFSMSnapshot other) { if (ReferenceEquals(other, null)) { return false; @@ -1212,25 +1780,56 @@ public bool Equals(PersistentFSMSnapshot other) { if (StateIdentifier != other.StateIdentifier) return false; if (!object.Equals(Data, other.Data)) return false; if (TimeoutMillis != other.TimeoutMillis) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (StateIdentifier.Length != 0) hash ^= StateIdentifier.GetHashCode(); if (data_ != null) hash ^= Data.GetHashCode(); if (TimeoutMillis != 0L) hash ^= TimeoutMillis.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StateIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StateIdentifier); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (TimeoutMillis != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TimeoutMillis); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StateIdentifier.Length != 0) { output.WriteRawTag(10); output.WriteString(StateIdentifier); @@ -1243,9 +1842,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteInt64(TimeoutMillis); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StateIdentifier.Length != 0) { @@ -1257,10 +1861,14 @@ public int CalculateSize() { if (TimeoutMillis != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeoutMillis); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PersistentFSMSnapshot other) { if (other == null) { return; @@ -1270,22 +1878,57 @@ public void MergeFrom(PersistentFSMSnapshot other) { } if (other.data_ != null) { if (data_ == null) { - data_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Data = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } Data.MergeFrom(other.Data); } if (other.TimeoutMillis != 0L) { TimeoutMillis = other.TimeoutMillis; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StateIdentifier = input.ReadString(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + } + input.ReadMessage(Data); + break; + } + case 24: { + TimeoutMillis = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { StateIdentifier = input.ReadString(); @@ -1293,9 +1936,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (data_ == null) { - data_ = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); + Data = new global::Akka.Persistence.Serialization.Proto.Msg.PersistentPayload(); } - input.ReadMessage(data_); + input.ReadMessage(Data); break; } case 24: { @@ -1305,6 +1948,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } diff --git a/src/core/Akka.Remote.TestKit/Proto/TestConductorProtocol.g.cs b/src/core/Akka.Remote.TestKit/Proto/TestConductorProtocol.g.cs index 384afe88874..5d6870a86a6 100644 --- a/src/core/Akka.Remote.TestKit/Proto/TestConductorProtocol.g.cs +++ b/src/core/Akka.Remote.TestKit/Proto/TestConductorProtocol.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TestConductorProtocol.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TestConductorProtocol.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -50,34 +52,43 @@ static TestConductorProtocolReflection() { "cHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.Wrapper), global::Akka.Remote.TestKit.Proto.Msg.Wrapper.Parser, new[]{ "Hello", "Barrier", "Failure", "Done", "Addr" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.Hello), global::Akka.Remote.TestKit.Proto.Msg.Hello.Parser, new[]{ "Name", "Address" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier), global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Parser, new[]{ "Name", "Op", "Timeout" }, null, new[]{ typeof(global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp) }, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.AddressRequest), global::Akka.Remote.TestKit.Proto.Msg.AddressRequest.Parser, new[]{ "Node", "Addr" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure), global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Parser, new[]{ "Failure", "Direction", "Address", "RateMBit", "ExitValue" }, null, new[]{ typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType), typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction) }, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.Wrapper), global::Akka.Remote.TestKit.Proto.Msg.Wrapper.Parser, new[]{ "Hello", "Barrier", "Failure", "Done", "Addr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.Hello), global::Akka.Remote.TestKit.Proto.Msg.Hello.Parser, new[]{ "Name", "Address" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier), global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Parser, new[]{ "Name", "Op", "Timeout" }, null, new[]{ typeof(global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.AddressRequest), global::Akka.Remote.TestKit.Proto.Msg.AddressRequest.Parser, new[]{ "Node", "Addr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure), global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Parser, new[]{ "Failure", "Direction", "Address", "RateMBit", "ExitValue" }, null, new[]{ typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType), typeof(global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction) }, null, null) })); } #endregion } #region Messages - internal sealed partial class Wrapper : pb::IMessage { + internal sealed partial class Wrapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Wrapper()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.TestKit.Proto.Msg.TestConductorProtocolReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Wrapper() { OnConstruction(); } @@ -85,15 +96,18 @@ public Wrapper() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Wrapper(Wrapper other) : this() { - Hello = other.hello_ != null ? other.Hello.Clone() : null; - Barrier = other.barrier_ != null ? other.Barrier.Clone() : null; - Failure = other.failure_ != null ? other.Failure.Clone() : null; + hello_ = other.hello_ != null ? other.hello_.Clone() : null; + barrier_ = other.barrier_ != null ? other.barrier_.Clone() : null; + failure_ = other.failure_ != null ? other.failure_.Clone() : null; done_ = other.done_; - Addr = other.addr_ != null ? other.Addr.Clone() : null; + addr_ = other.addr_ != null ? other.addr_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Wrapper Clone() { return new Wrapper(this); } @@ -102,6 +116,7 @@ public Wrapper Clone() { public const int HelloFieldNumber = 1; private global::Akka.Remote.TestKit.Proto.Msg.Hello hello_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.Hello Hello { get { return hello_; } set { @@ -113,6 +128,7 @@ public Wrapper Clone() { public const int BarrierFieldNumber = 2; private global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier barrier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier Barrier { get { return barrier_; } set { @@ -124,6 +140,7 @@ public Wrapper Clone() { public const int FailureFieldNumber = 3; private global::Akka.Remote.TestKit.Proto.Msg.InjectFailure failure_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.InjectFailure Failure { get { return failure_; } set { @@ -135,6 +152,7 @@ public Wrapper Clone() { public const int DoneFieldNumber = 4; private string done_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Done { get { return done_; } set { @@ -146,6 +164,7 @@ public string Done { public const int AddrFieldNumber = 5; private global::Akka.Remote.TestKit.Proto.Msg.AddressRequest addr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.AddressRequest Addr { get { return addr_; } set { @@ -154,11 +173,13 @@ public string Done { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Wrapper); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Wrapper other) { if (ReferenceEquals(other, null)) { return false; @@ -171,10 +192,11 @@ public bool Equals(Wrapper other) { if (!object.Equals(Failure, other.Failure)) return false; if (Done != other.Done) return false; if (!object.Equals(Addr, other.Addr)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (hello_ != null) hash ^= Hello.GetHashCode(); @@ -182,16 +204,54 @@ public override int GetHashCode() { if (failure_ != null) hash ^= Failure.GetHashCode(); if (Done.Length != 0) hash ^= Done.GetHashCode(); if (addr_ != null) hash ^= Addr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (hello_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Hello); + } + if (barrier_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Barrier); + } + if (failure_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Failure); + } + if (Done.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Done); + } + if (addr_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Addr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (hello_ != null) { output.WriteRawTag(10); output.WriteMessage(Hello); @@ -212,9 +272,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteMessage(Addr); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (hello_ != null) { @@ -232,29 +297,33 @@ public int CalculateSize() { if (addr_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Addr); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Wrapper other) { if (other == null) { return; } if (other.hello_ != null) { if (hello_ == null) { - hello_ = new global::Akka.Remote.TestKit.Proto.Msg.Hello(); + Hello = new global::Akka.Remote.TestKit.Proto.Msg.Hello(); } Hello.MergeFrom(other.Hello); } if (other.barrier_ != null) { if (barrier_ == null) { - barrier_ = new global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier(); + Barrier = new global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier(); } Barrier.MergeFrom(other.Barrier); } if (other.failure_ != null) { if (failure_ == null) { - failure_ = new global::Akka.Remote.TestKit.Proto.Msg.InjectFailure(); + Failure = new global::Akka.Remote.TestKit.Proto.Msg.InjectFailure(); } Failure.MergeFrom(other.Failure); } @@ -263,39 +332,44 @@ public void MergeFrom(Wrapper other) { } if (other.addr_ != null) { if (addr_ == null) { - addr_ = new global::Akka.Remote.TestKit.Proto.Msg.AddressRequest(); + Addr = new global::Akka.Remote.TestKit.Proto.Msg.AddressRequest(); } Addr.MergeFrom(other.Addr); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (hello_ == null) { - hello_ = new global::Akka.Remote.TestKit.Proto.Msg.Hello(); + Hello = new global::Akka.Remote.TestKit.Proto.Msg.Hello(); } - input.ReadMessage(hello_); + input.ReadMessage(Hello); break; } case 18: { if (barrier_ == null) { - barrier_ = new global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier(); + Barrier = new global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier(); } - input.ReadMessage(barrier_); + input.ReadMessage(Barrier); break; } case 26: { if (failure_ == null) { - failure_ = new global::Akka.Remote.TestKit.Proto.Msg.InjectFailure(); + Failure = new global::Akka.Remote.TestKit.Proto.Msg.InjectFailure(); } - input.ReadMessage(failure_); + input.ReadMessage(Failure); break; } case 34: { @@ -304,33 +378,90 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (addr_ == null) { - addr_ = new global::Akka.Remote.TestKit.Proto.Msg.AddressRequest(); + Addr = new global::Akka.Remote.TestKit.Proto.Msg.AddressRequest(); } - input.ReadMessage(addr_); + input.ReadMessage(Addr); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (hello_ == null) { + Hello = new global::Akka.Remote.TestKit.Proto.Msg.Hello(); + } + input.ReadMessage(Hello); + break; + } + case 18: { + if (barrier_ == null) { + Barrier = new global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier(); + } + input.ReadMessage(Barrier); + break; + } + case 26: { + if (failure_ == null) { + Failure = new global::Akka.Remote.TestKit.Proto.Msg.InjectFailure(); + } + input.ReadMessage(Failure); + break; + } + case 34: { + Done = input.ReadString(); + break; + } + case 42: { + if (addr_ == null) { + Addr = new global::Akka.Remote.TestKit.Proto.Msg.AddressRequest(); + } + input.ReadMessage(Addr); + break; + } + } + } + } + #endif + } - internal sealed partial class Hello : pb::IMessage { + internal sealed partial class Hello : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Hello()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.TestKit.Proto.Msg.TestConductorProtocolReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Hello() { OnConstruction(); } @@ -338,12 +469,15 @@ public Hello() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Hello(Hello other) : this() { name_ = other.name_; - Address = other.address_ != null ? other.Address.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Hello Clone() { return new Hello(this); } @@ -352,6 +486,7 @@ public Hello Clone() { public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { @@ -363,6 +498,7 @@ public string Name { public const int AddressFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.AddressData address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Address { get { return address_; } set { @@ -371,11 +507,13 @@ public string Name { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Hello); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Hello other) { if (ReferenceEquals(other, null)) { return false; @@ -385,24 +523,51 @@ public bool Equals(Hello other) { } if (Name != other.Name) return false; if (!object.Equals(Address, other.Address)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (address_ != null) hash ^= Address.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (address_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Address); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); @@ -411,9 +576,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Address); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { @@ -422,10 +592,14 @@ public int CalculateSize() { if (address_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Hello other) { if (other == null) { return; @@ -435,19 +609,24 @@ public void MergeFrom(Hello other) { } if (other.address_ != null) { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Address.MergeFrom(other.Address); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); @@ -455,33 +634,69 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(address_); + input.ReadMessage(Address); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (address_ == null) { + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Address); + break; + } + } + } + } + #endif + } - internal sealed partial class EnterBarrier : pb::IMessage { + internal sealed partial class EnterBarrier : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterBarrier()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.TestKit.Proto.Msg.TestConductorProtocolReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnterBarrier() { OnConstruction(); } @@ -489,13 +704,16 @@ public EnterBarrier() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnterBarrier(EnterBarrier other) : this() { name_ = other.name_; op_ = other.op_; timeout_ = other.timeout_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnterBarrier Clone() { return new EnterBarrier(this); } @@ -504,6 +722,7 @@ public EnterBarrier Clone() { public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { @@ -513,8 +732,9 @@ public string Name { /// Field number for the "op" field. public const int OpFieldNumber = 2; - private global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp op_ = 0; + private global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp op_ = global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp Op { get { return op_; } set { @@ -526,6 +746,7 @@ public string Name { public const int TimeoutFieldNumber = 3; private long timeout_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timeout { get { return timeout_; } set { @@ -534,11 +755,13 @@ public long Timeout { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EnterBarrier); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EnterBarrier other) { if (ReferenceEquals(other, null)) { return false; @@ -549,30 +772,61 @@ public bool Equals(EnterBarrier other) { if (Name != other.Name) return false; if (Op != other.Op) return false; if (Timeout != other.Timeout) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Op != 0) hash ^= Op.GetHashCode(); + if (Op != global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter) hash ^= Op.GetHashCode(); if (Timeout != 0L) hash ^= Timeout.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Op != global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter) { + output.WriteRawTag(16); + output.WriteEnum((int) Op); + } + if (Timeout != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Timeout); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } - if (Op != 0) { + if (Op != global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter) { output.WriteRawTag(16); output.WriteEnum((int) Op); } @@ -580,24 +834,33 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteInt64(Timeout); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Op != 0) { + if (Op != global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op); } if (Timeout != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timeout); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EnterBarrier other) { if (other == null) { return; @@ -605,28 +868,60 @@ public void MergeFrom(EnterBarrier other) { if (other.Name.Length != 0) { Name = other.Name; } - if (other.Op != 0) { + if (other.Op != global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp.Enter) { Op = other.Op; } if (other.Timeout != 0L) { Timeout = other.Timeout; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Op = (global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp) input.ReadEnum(); + break; + } + case 24: { + Timeout = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 16: { - op_ = (global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp) input.ReadEnum(); + Op = (global::Akka.Remote.TestKit.Proto.Msg.EnterBarrier.Types.BarrierOp) input.ReadEnum(); break; } case 24: { @@ -636,10 +931,12 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif #region Nested types /// Container for nested types declared in the EnterBarrier message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal enum BarrierOp { [pbr::OriginalName("Enter")] Enter = 0, @@ -653,22 +950,31 @@ internal enum BarrierOp { } - internal sealed partial class AddressRequest : pb::IMessage { + internal sealed partial class AddressRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressRequest()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.TestKit.Proto.Msg.TestConductorProtocolReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressRequest() { OnConstruction(); } @@ -676,12 +982,15 @@ public AddressRequest() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressRequest(AddressRequest other) : this() { node_ = other.node_; - Addr = other.addr_ != null ? other.Addr.Clone() : null; + addr_ = other.addr_ != null ? other.addr_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressRequest Clone() { return new AddressRequest(this); } @@ -690,6 +999,7 @@ public AddressRequest Clone() { public const int NodeFieldNumber = 1; private string node_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Node { get { return node_; } set { @@ -701,6 +1011,7 @@ public string Node { public const int AddrFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.AddressData addr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Addr { get { return addr_; } set { @@ -709,11 +1020,13 @@ public string Node { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddressRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddressRequest other) { if (ReferenceEquals(other, null)) { return false; @@ -723,24 +1036,51 @@ public bool Equals(AddressRequest other) { } if (Node != other.Node) return false; if (!object.Equals(Addr, other.Addr)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Node.Length != 0) hash ^= Node.GetHashCode(); if (addr_ != null) hash ^= Addr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Node.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Node); + } + if (addr_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Addr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Node.Length != 0) { output.WriteRawTag(10); output.WriteString(Node); @@ -749,9 +1089,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Addr); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Node.Length != 0) { @@ -760,10 +1105,14 @@ public int CalculateSize() { if (addr_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Addr); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddressRequest other) { if (other == null) { return; @@ -773,19 +1122,24 @@ public void MergeFrom(AddressRequest other) { } if (other.addr_ != null) { if (addr_ == null) { - addr_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Addr = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Addr.MergeFrom(other.Addr); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Node = input.ReadString(); @@ -793,33 +1147,69 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (addr_ == null) { - addr_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Addr = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(addr_); + input.ReadMessage(Addr); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Node = input.ReadString(); + break; + } + case 18: { + if (addr_ == null) { + Addr = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Addr); + break; + } + } + } + } + #endif + } - internal sealed partial class InjectFailure : pb::IMessage { + internal sealed partial class InjectFailure : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InjectFailure()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.TestKit.Proto.Msg.TestConductorProtocolReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InjectFailure() { OnConstruction(); } @@ -827,23 +1217,27 @@ public InjectFailure() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InjectFailure(InjectFailure other) : this() { failure_ = other.failure_; direction_ = other.direction_; - Address = other.address_ != null ? other.Address.Clone() : null; + address_ = other.address_ != null ? other.address_.Clone() : null; rateMBit_ = other.rateMBit_; exitValue_ = other.exitValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InjectFailure Clone() { return new InjectFailure(this); } /// Field number for the "failure" field. public const int FailureFieldNumber = 1; - private global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType failure_ = 0; + private global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType failure_ = global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType Failure { get { return failure_; } set { @@ -853,8 +1247,9 @@ public InjectFailure Clone() { /// Field number for the "direction" field. public const int DirectionFieldNumber = 2; - private global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction direction_ = 0; + private global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction direction_ = global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction Direction { get { return direction_; } set { @@ -866,6 +1261,7 @@ public InjectFailure Clone() { public const int AddressFieldNumber = 3; private global::Akka.Remote.Serialization.Proto.Msg.AddressData address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Address { get { return address_; } set { @@ -877,6 +1273,7 @@ public InjectFailure Clone() { public const int RateMBitFieldNumber = 6; private float rateMBit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float RateMBit { get { return rateMBit_; } set { @@ -888,6 +1285,7 @@ public float RateMBit { public const int ExitValueFieldNumber = 7; private int exitValue_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ExitValue { get { return exitValue_; } set { @@ -896,11 +1294,13 @@ public int ExitValue { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InjectFailure); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InjectFailure other) { if (ReferenceEquals(other, null)) { return false; @@ -911,34 +1311,73 @@ public bool Equals(InjectFailure other) { if (Failure != other.Failure) return false; if (Direction != other.Direction) return false; if (!object.Equals(Address, other.Address)) return false; - if (RateMBit != other.RateMBit) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RateMBit, other.RateMBit)) return false; if (ExitValue != other.ExitValue) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Failure != 0) hash ^= Failure.GetHashCode(); - if (Direction != 0) hash ^= Direction.GetHashCode(); + if (Failure != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle) hash ^= Failure.GetHashCode(); + if (Direction != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send) hash ^= Direction.GetHashCode(); if (address_ != null) hash ^= Address.GetHashCode(); - if (RateMBit != 0F) hash ^= RateMBit.GetHashCode(); + if (RateMBit != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RateMBit); if (ExitValue != 0) hash ^= ExitValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Failure != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Failure != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle) { + output.WriteRawTag(8); + output.WriteEnum((int) Failure); + } + if (Direction != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send) { + output.WriteRawTag(16); + output.WriteEnum((int) Direction); + } + if (address_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Address); + } + if (RateMBit != 0F) { + output.WriteRawTag(53); + output.WriteFloat(RateMBit); + } + if (ExitValue != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExitValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Failure != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle) { output.WriteRawTag(8); output.WriteEnum((int) Failure); } - if (Direction != 0) { + if (Direction != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send) { output.WriteRawTag(16); output.WriteEnum((int) Direction); } @@ -954,15 +1393,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(56); output.WriteInt32(ExitValue); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Failure != 0) { + if (Failure != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Failure); } - if (Direction != 0) { + if (Direction != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Direction); } if (address_ != null) { @@ -974,23 +1418,27 @@ public int CalculateSize() { if (ExitValue != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExitValue); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InjectFailure other) { if (other == null) { return; } - if (other.Failure != 0) { + if (other.Failure != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType.Throttle) { Failure = other.Failure; } - if (other.Direction != 0) { + if (other.Direction != global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction.Send) { Direction = other.Direction; } if (other.address_ != null) { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Address.MergeFrom(other.Address); } @@ -1000,29 +1448,72 @@ public void MergeFrom(InjectFailure other) { if (other.ExitValue != 0) { ExitValue = other.ExitValue; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Failure = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType) input.ReadEnum(); + break; + } + case 16: { + Direction = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction) input.ReadEnum(); + break; + } + case 26: { + if (address_ == null) { + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Address); + break; + } + case 53: { + RateMBit = input.ReadFloat(); + break; + } + case 56: { + ExitValue = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - failure_ = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType) input.ReadEnum(); + Failure = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.FailType) input.ReadEnum(); break; } case 16: { - direction_ = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction) input.ReadEnum(); + Direction = (global::Akka.Remote.TestKit.Proto.Msg.InjectFailure.Types.Direction) input.ReadEnum(); break; } case 26: { if (address_ == null) { - address_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Address = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(address_); + input.ReadMessage(Address); break; } case 53: { @@ -1036,10 +1527,12 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif #region Nested types /// Container for nested types declared in the InjectFailure message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal enum FailType { [pbr::OriginalName("Throttle")] Throttle = 0, diff --git a/src/core/Akka.Remote.Tests/Transport/DotNettySslSupportSpec.cs b/src/core/Akka.Remote.Tests/Transport/DotNettySslSupportSpec.cs index 8375caa452f..4cda9ab0470 100644 --- a/src/core/Akka.Remote.Tests/Transport/DotNettySslSupportSpec.cs +++ b/src/core/Akka.Remote.Tests/Transport/DotNettySslSupportSpec.cs @@ -6,12 +6,16 @@ //----------------------------------------------------------------------- using System; +using System.Linq; +using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; +using System.Threading.Tasks; using Akka.Actor; using Akka.Configuration; using Akka.TestKit; using Xunit; using Xunit.Abstractions; +using FluentAssertions; using static Akka.Util.RuntimeDetector; namespace Akka.Remote.Tests.Transport @@ -21,7 +25,7 @@ public class DotNettySslSupportSpec : AkkaSpec #region Setup / Config // valid to 01/01/2037 - private static readonly string ValidCertPath = "Resources/akka-validcert.pfx"; + private const string ValidCertPath = "Resources/akka-validcert.pfx"; private const string Password = "password"; @@ -52,6 +56,32 @@ private static Config TestConfig(string certPath, string password) }"); } + private static Config TestConfig(bool enableSsl, string certPath, string password) + { + var config = ConfigurationFactory.ParseString(@" + akka { + loglevel = DEBUG + actor.provider = ""Akka.Remote.RemoteActorRefProvider,Akka.Remote"" + remote { + dot-netty.tcp { + port = 0 + hostname = ""127.0.0.1"" + enable-ssl = """ + enableSsl.ToString().ToLowerInvariant() + @""" + log-transport = true + } + } + }"); + return !enableSsl + ? config + : config.WithFallback(@"akka.remote.dot-netty.tcp.ssl { + suppress-validation = """ + enableSsl.ToString().ToLowerInvariant() + @""" + certificate { + path = """ + certPath + @""" + password = """ + password + @""" + } + }"); + } + private static Config TestThumbprintConfig(string thumbPrint) { var config = ConfigurationFactory.ParseString(@" @@ -80,35 +110,47 @@ private static Config TestThumbprintConfig(string thumbPrint) }"); } - private ActorSystem sys2; - private Address address1; - private Address address2; + private ActorSystem _sys2; + private Address _address1; + private Address _address2; - private ActorPath echoPath; + private ActorPath _echoPath; private void Setup(string certPath, string password) { - sys2 = ActorSystem.Create("sys2", TestConfig(certPath, password)); - InitializeLogger(sys2); + _sys2 = ActorSystem.Create("sys2", TestConfig(certPath, password)); + InitializeLogger(_sys2); + + var echo = _sys2.ActorOf(Props.Create(), "echo"); + + _address1 = RARP.For(Sys).Provider.DefaultAddress; + _address2 = RARP.For(_sys2).Provider.DefaultAddress; + _echoPath = new RootActorPath(_address2) / "user" / "echo"; + } + + private void Setup(bool enableSsl, string certPath, string password) + { + _sys2 = ActorSystem.Create("sys2", TestConfig(enableSsl, certPath, password)); + InitializeLogger(_sys2); - var echo = sys2.ActorOf(Props.Create(), "echo"); + var echo = _sys2.ActorOf(Props.Create(), "echo"); - address1 = RARP.For(Sys).Provider.DefaultAddress; - address2 = RARP.For(sys2).Provider.DefaultAddress; - echoPath = new RootActorPath(address2) / "user" / "echo"; + _address1 = RARP.For(Sys).Provider.DefaultAddress; + _address2 = RARP.For(_sys2).Provider.DefaultAddress; + _echoPath = new RootActorPath(_address2) / "user" / "echo"; } private void SetupThumbprint(string certPath, string password) { InstallCert(); - sys2 = ActorSystem.Create("sys2", TestThumbprintConfig(Thumbprint)); - InitializeLogger(sys2); + _sys2 = ActorSystem.Create("sys2", TestThumbprintConfig(Thumbprint)); + InitializeLogger(_sys2); - var echo = sys2.ActorOf(Props.Create(), "echo"); + var echo = _sys2.ActorOf(Props.Create(), "echo"); - address1 = RARP.For(Sys).Provider.DefaultAddress; - address2 = RARP.For(sys2).Provider.DefaultAddress; - echoPath = new RootActorPath(address2) / "user" / "echo"; + _address1 = RARP.For(Sys).Provider.DefaultAddress; + _address2 = RARP.For(_sys2).Provider.DefaultAddress; + _echoPath = new RootActorPath(_address2) / "user" / "echo"; } #endregion @@ -134,12 +176,12 @@ public void Secure_transport_should_be_possible_between_systems_sharing_the_same AwaitAssert(() => { - Sys.ActorSelection(echoPath).Tell("hello", probe.Ref); + Sys.ActorSelection(_echoPath).Tell("hello", probe.Ref); probe.ExpectMsg("hello", TimeSpan.FromSeconds(3)); }, TimeSpan.FromSeconds(30), TimeSpan.FromMilliseconds(100)); } - [Fact] + [Fact(Skip = "Racy in Azure AzDo CI/CD")] public void Secure_transport_should_be_possible_between_systems_using_thumbprint() { // skip this test due to linux/mono certificate issues @@ -154,7 +196,7 @@ public void Secure_transport_should_be_possible_between_systems_using_thumbprint { AwaitAssert(() => { - Sys.ActorSelection(echoPath).Tell("hello", probe.Ref); + Sys.ActorSelection(_echoPath).Tell("hello", probe.Ref); probe.ExpectMsg("hello", TimeSpan.FromMilliseconds(100)); }, TimeSpan.FromSeconds(3), TimeSpan.FromMilliseconds(100)); }); @@ -173,20 +215,62 @@ public void Secure_transport_should_NOT_be_possible_between_systems_using_SSL_an var probe = CreateTestProbe(); Assert.Throws(() => { - Sys.ActorSelection(echoPath).Tell("hello", probe.Ref); + Sys.ActorSelection(_echoPath).Tell("hello", probe.Ref); probe.ExpectNoMsg(); }); } - #region helper classes / methods + [Fact] + public void If_EnableSsl_configuration_is_true_but_not_valid_certificate_is_provided_than_ArgumentNullException_should_be_thrown() + { + // skip this test due to linux/mono certificate issues + if (IsMono) return; + + var aggregateException = Assert.Throws( () => + { + Setup(true, null, Password); + }); + + var realException = GetInnerMostException(aggregateException); + Assert.NotNull(realException); + realException.Message.Should().Contain("Path to SSL certificate was not found (by default it can be found under `akka.remote.dot-netty.tcp.ssl.certificate.path`"); + } + + [Fact] + public void If_EnableSsl_configuration_is_true_but_not_valid_certificate_password_is_provided_than_WindowsCryptographicException_should_be_thrown() + { + // skip this test due to linux/mono certificate issues + if (IsMono) return; + + var aggregateException = Assert.Throws(() => + { + Setup(true, ValidCertPath, null); + }); + var realException = GetInnerMostException(aggregateException); + Assert.NotNull(realException); + // TODO: this error message is not correct, but wanted to keep this assertion here in case someone else + // wants to fix it in the future. + //Assert.Equal("The specified network password is not correct.", realException.Message); + } + + [Theory] + [InlineData(ValidCertPath, null)] + [InlineData(null, Password)] + [InlineData(null, null)] + [InlineData(ValidCertPath, Password)] + public void If_EnableSsl_configuration_is_false_than_no_exception_should_be_thrown_even_no_cert_detail_were_provided(string certPath, string password) + { + Setup(false, certPath, password); + } + #region helper classes / methods protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { - Shutdown(sys2, TimeSpan.FromSeconds(3)); + Shutdown(_sys2, TimeSpan.FromSeconds(3)); } } @@ -217,7 +301,18 @@ private void RemoveCert() } } - public class Echo : ReceiveActor + private T GetInnerMostException(Exception ex) where T : Exception + { + Exception currentEx = ex; + while (currentEx.InnerException != null) + { + currentEx = currentEx.InnerException; + } + + return currentEx as T; + } + + private class Echo : ReceiveActor { public Echo() { diff --git a/src/core/Akka.Remote/Endpoint.cs b/src/core/Akka.Remote/Endpoint.cs index bcbe958e1f4..a1b52f02148 100644 --- a/src/core/Akka.Remote/Endpoint.cs +++ b/src/core/Akka.Remote/Endpoint.cs @@ -1953,21 +1953,9 @@ private void Reading() ackAndMessage.MessageOption.SerializedMessage, ackAndMessage.MessageOption.SenderOptional); } - catch (SerializationException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } - catch (ArgumentException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } - catch (InvalidCastException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } catch (Exception e) { - throw; + LogTransientSerializationError(ackAndMessage.MessageOption, e); } } } diff --git a/src/core/Akka.Remote/Serialization/Proto/ContainerFormats.g.cs b/src/core/Akka.Remote/Serialization/Proto/ContainerFormats.g.cs index 54870fe038a..5ca35abaf08 100644 --- a/src/core/Akka.Remote/Serialization/Proto/ContainerFormats.g.cs +++ b/src/core/Akka.Remote/Serialization/Proto/ContainerFormats.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ContainerFormats.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ContainerFormats.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -50,38 +52,47 @@ static ContainerFormatsReflection() { "ZXJpYWxpemF0aW9uLlByb3RvLk1zZy5QYXlsb2FkOgI4AWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.SelectionEnvelope), global::Akka.Remote.Serialization.Proto.Msg.SelectionEnvelope.Parser, new[]{ "Payload", "Pattern" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Selection), global::Akka.Remote.Serialization.Proto.Msg.Selection.Parser, new[]{ "Type", "Matcher" }, null, new[]{ typeof(global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType) }, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ActorRefData), global::Akka.Remote.Serialization.Proto.Msg.ActorRefData.Parser, new[]{ "Path" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AddressData), global::Akka.Remote.Serialization.Proto.Msg.AddressData.Parser, new[]{ "System", "Hostname", "Port", "Protocol" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Payload), global::Akka.Remote.Serialization.Proto.Msg.Payload.Parser, new[]{ "Message", "SerializerId", "MessageManifest" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Identify), global::Akka.Remote.Serialization.Proto.Msg.Identify.Parser, new[]{ "MessageId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ActorIdentity), global::Akka.Remote.Serialization.Proto.Msg.ActorIdentity.Parser, new[]{ "CorrelationId", "Path" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteWatcherHeartbeatResponse), global::Akka.Remote.Serialization.Proto.Msg.RemoteWatcherHeartbeatResponse.Parser, new[]{ "Uid" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ExceptionData), global::Akka.Remote.Serialization.Proto.Msg.ExceptionData.Parser, new[]{ "TypeName", "Message", "StackTrace", "Source", "InnerException", "CustomFields" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.SelectionEnvelope), global::Akka.Remote.Serialization.Proto.Msg.SelectionEnvelope.Parser, new[]{ "Payload", "Pattern" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Selection), global::Akka.Remote.Serialization.Proto.Msg.Selection.Parser, new[]{ "Type", "Matcher" }, null, new[]{ typeof(global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ActorRefData), global::Akka.Remote.Serialization.Proto.Msg.ActorRefData.Parser, new[]{ "Path" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AddressData), global::Akka.Remote.Serialization.Proto.Msg.AddressData.Parser, new[]{ "System", "Hostname", "Port", "Protocol" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Payload), global::Akka.Remote.Serialization.Proto.Msg.Payload.Parser, new[]{ "Message", "SerializerId", "MessageManifest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.Identify), global::Akka.Remote.Serialization.Proto.Msg.Identify.Parser, new[]{ "MessageId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ActorIdentity), global::Akka.Remote.Serialization.Proto.Msg.ActorIdentity.Parser, new[]{ "CorrelationId", "Path" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteWatcherHeartbeatResponse), global::Akka.Remote.Serialization.Proto.Msg.RemoteWatcherHeartbeatResponse.Parser, new[]{ "Uid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ExceptionData), global::Akka.Remote.Serialization.Proto.Msg.ExceptionData.Parser, new[]{ "TypeName", "Message", "StackTrace", "Source", "InnerException", "CustomFields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) })); } #endregion } #region Messages - internal sealed partial class SelectionEnvelope : pb::IMessage { + internal sealed partial class SelectionEnvelope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectionEnvelope()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SelectionEnvelope() { OnConstruction(); } @@ -89,12 +100,15 @@ public SelectionEnvelope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SelectionEnvelope(SelectionEnvelope other) : this() { - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; pattern_ = other.pattern_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SelectionEnvelope Clone() { return new SelectionEnvelope(this); } @@ -103,6 +117,7 @@ public SelectionEnvelope Clone() { public const int PayloadFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -116,16 +131,19 @@ public SelectionEnvelope Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.Remote.Serialization.Proto.Msg.Selection.Parser); private readonly pbc::RepeatedField pattern_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Pattern { get { return pattern_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SelectionEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SelectionEnvelope other) { if (ReferenceEquals(other, null)) { return false; @@ -135,68 +153,106 @@ public bool Equals(SelectionEnvelope other) { } if (!object.Equals(Payload, other.Payload)) return false; if(!pattern_.Equals(other.pattern_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (payload_ != null) hash ^= Payload.GetHashCode(); hash ^= pattern_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (payload_ != null) { output.WriteRawTag(10); output.WriteMessage(Payload); } pattern_.WriteTo(output, _repeated_pattern_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (payload_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Payload); + } + pattern_.WriteTo(ref output, _repeated_pattern_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } size += pattern_.CalculateSize(_repeated_pattern_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SelectionEnvelope other) { if (other == null) { return; } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } pattern_.Add(other.pattern_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (payload_ == null) { - payload_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } case 18: { @@ -205,26 +261,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (payload_ == null) { + Payload = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + case 18: { + pattern_.AddEntriesFrom(ref input, _repeated_pattern_codec); + break; + } + } + } + } + #endif + } - internal sealed partial class Selection : pb::IMessage { + internal sealed partial class Selection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Selection()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Selection() { OnConstruction(); } @@ -232,20 +324,24 @@ public Selection() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Selection(Selection other) : this() { type_ = other.type_; matcher_ = other.matcher_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Selection Clone() { return new Selection(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType type_ = 0; + private global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType type_ = global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType Type { get { return type_; } set { @@ -257,6 +353,7 @@ public Selection Clone() { public const int MatcherFieldNumber = 2; private string matcher_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Matcher { get { return matcher_; } set { @@ -265,11 +362,13 @@ public string Matcher { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Selection); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Selection other) { if (ReferenceEquals(other, null)) { return false; @@ -279,25 +378,34 @@ public bool Equals(Selection other) { } if (Type != other.Type) return false; if (Matcher != other.Matcher) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != 0) hash ^= Type.GetHashCode(); + if (Type != global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern) hash ^= Type.GetHashCode(); if (Matcher.Length != 0) hash ^= Matcher.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Type != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type != global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -305,43 +413,98 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Matcher); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type != global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Matcher.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Matcher); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != 0) { + if (Type != global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Matcher.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Matcher); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Selection other) { if (other == null) { return; } - if (other.Type != 0) { + if (other.Type != global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType.NoPatern) { Type = other.Type; } if (other.Matcher.Length != 0) { Matcher = other.Matcher; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType) input.ReadEnum(); + break; + } + case 18: { + Matcher = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - type_ = (global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType) input.ReadEnum(); + Type = (global::Akka.Remote.Serialization.Proto.Msg.Selection.Types.PatternType) input.ReadEnum(); break; } case 18: { @@ -351,10 +514,12 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif #region Nested types /// Container for nested types declared in the Selection message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { internal enum PatternType { [pbr::OriginalName("NO_PATERN")] NoPatern = 0, @@ -371,22 +536,31 @@ internal enum PatternType { /// /// Defines a remote ActorRef that "remembers" and uses its original Actor instance on the original node. /// - internal sealed partial class ActorRefData : pb::IMessage { + internal sealed partial class ActorRefData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActorRefData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefData() { OnConstruction(); } @@ -394,11 +568,14 @@ public ActorRefData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefData(ActorRefData other) : this() { path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRefData Clone() { return new ActorRefData(this); } @@ -407,6 +584,7 @@ public ActorRefData Clone() { public const int PathFieldNumber = 1; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -415,11 +593,13 @@ public string Path { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActorRefData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActorRefData other) { if (ReferenceEquals(other, null)) { return false; @@ -428,39 +608,71 @@ public bool Equals(ActorRefData other) { return true; } if (Path != other.Path) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActorRefData other) { if (other == null) { return; @@ -468,15 +680,20 @@ public void MergeFrom(ActorRefData other) { if (other.Path.Length != 0) { Path = other.Path; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Path = input.ReadString(); @@ -484,29 +701,58 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Path = input.ReadString(); + break; + } + } + } + } + #endif + } /// /// Defines a remote address. /// - internal sealed partial class AddressData : pb::IMessage { + internal sealed partial class AddressData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressData() { OnConstruction(); } @@ -514,14 +760,17 @@ public AddressData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressData(AddressData other) : this() { system_ = other.system_; hostname_ = other.hostname_; port_ = other.port_; protocol_ = other.protocol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddressData Clone() { return new AddressData(this); } @@ -530,6 +779,7 @@ public AddressData Clone() { public const int SystemFieldNumber = 1; private string system_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string System { get { return system_; } set { @@ -541,6 +791,7 @@ public string System { public const int HostnameFieldNumber = 2; private string hostname_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Hostname { get { return hostname_; } set { @@ -552,6 +803,7 @@ public string Hostname { public const int PortFieldNumber = 3; private uint port_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Port { get { return port_; } set { @@ -563,6 +815,7 @@ public uint Port { public const int ProtocolFieldNumber = 4; private string protocol_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Protocol { get { return protocol_; } set { @@ -571,11 +824,13 @@ public string Protocol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddressData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddressData other) { if (ReferenceEquals(other, null)) { return false; @@ -587,26 +842,61 @@ public bool Equals(AddressData other) { if (Hostname != other.Hostname) return false; if (Port != other.Port) return false; if (Protocol != other.Protocol) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (System.Length != 0) hash ^= System.GetHashCode(); if (Hostname.Length != 0) hash ^= Hostname.GetHashCode(); if (Port != 0) hash ^= Port.GetHashCode(); if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (System.Length != 0) { + output.WriteRawTag(10); + output.WriteString(System); + } + if (Hostname.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Hostname); + } + if (Port != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Port); + } + if (Protocol.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Protocol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (System.Length != 0) { output.WriteRawTag(10); output.WriteString(System); @@ -623,9 +913,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Protocol); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (System.Length != 0) { @@ -640,10 +935,14 @@ public int CalculateSize() { if (Protocol.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddressData other) { if (other == null) { return; @@ -660,15 +959,51 @@ public void MergeFrom(AddressData other) { if (other.Protocol.Length != 0) { Protocol = other.Protocol; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + System = input.ReadString(); + break; + } + case 18: { + Hostname = input.ReadString(); + break; + } + case 24: { + Port = input.ReadUInt32(); + break; + } + case 34: { + Protocol = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { System = input.ReadString(); @@ -689,28 +1024,38 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } /// /// Defines a payload. /// - internal sealed partial class Payload : pb::IMessage { + internal sealed partial class Payload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Payload()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload() { OnConstruction(); } @@ -718,13 +1063,16 @@ public Payload() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload(Payload other) : this() { message_ = other.message_; serializerId_ = other.serializerId_; messageManifest_ = other.messageManifest_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload Clone() { return new Payload(this); } @@ -733,6 +1081,7 @@ public Payload Clone() { public const int MessageFieldNumber = 1; private pb::ByteString message_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Message { get { return message_; } set { @@ -744,6 +1093,7 @@ public Payload Clone() { public const int SerializerIdFieldNumber = 2; private int serializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SerializerId { get { return serializerId_; } set { @@ -755,6 +1105,7 @@ public int SerializerId { public const int MessageManifestFieldNumber = 3; private pb::ByteString messageManifest_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString MessageManifest { get { return messageManifest_; } set { @@ -763,11 +1114,13 @@ public int SerializerId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Payload); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Payload other) { if (ReferenceEquals(other, null)) { return false; @@ -778,25 +1131,56 @@ public bool Equals(Payload other) { if (Message != other.Message) return false; if (SerializerId != other.SerializerId) return false; if (MessageManifest != other.MessageManifest) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Message.Length != 0) hash ^= Message.GetHashCode(); if (SerializerId != 0) hash ^= SerializerId.GetHashCode(); if (MessageManifest.Length != 0) hash ^= MessageManifest.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Message.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Message); + } + if (SerializerId != 0) { + output.WriteRawTag(16); + output.WriteInt32(SerializerId); + } + if (MessageManifest.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(MessageManifest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Message.Length != 0) { output.WriteRawTag(10); output.WriteBytes(Message); @@ -809,9 +1193,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteBytes(MessageManifest); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Message.Length != 0) { @@ -823,10 +1212,14 @@ public int CalculateSize() { if (MessageManifest.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(MessageManifest); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Payload other) { if (other == null) { return; @@ -840,15 +1233,20 @@ public void MergeFrom(Payload other) { if (other.MessageManifest.Length != 0) { MessageManifest = other.MessageManifest; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Message = input.ReadBytes(); @@ -864,26 +1262,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Message = input.ReadBytes(); + break; + } + case 16: { + SerializerId = input.ReadInt32(); + break; + } + case 26: { + MessageManifest = input.ReadBytes(); + break; + } + } + } + } + #endif + } - internal sealed partial class Identify : pb::IMessage { + internal sealed partial class Identify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Identify()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Identify() { OnConstruction(); } @@ -891,11 +1326,14 @@ public Identify() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Identify(Identify other) : this() { - MessageId = other.messageId_ != null ? other.MessageId.Clone() : null; + messageId_ = other.messageId_ != null ? other.messageId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Identify Clone() { return new Identify(this); } @@ -904,6 +1342,7 @@ public Identify Clone() { public const int MessageIdFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload messageId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload MessageId { get { return messageId_; } set { @@ -912,11 +1351,13 @@ public Identify Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Identify); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Identify other) { if (ReferenceEquals(other, null)) { return false; @@ -925,88 +1366,157 @@ public bool Equals(Identify other) { return true; } if (!object.Equals(MessageId, other.MessageId)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (messageId_ != null) hash ^= MessageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (messageId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MessageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (messageId_ != null) { output.WriteRawTag(10); output.WriteMessage(MessageId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (messageId_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Identify other) { if (other == null) { return; } if (other.messageId_ != null) { if (messageId_ == null) { - messageId_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + MessageId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } MessageId.MergeFrom(other.MessageId); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (messageId_ == null) { + MessageId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(MessageId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (messageId_ == null) { - messageId_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + MessageId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(messageId_); + input.ReadMessage(MessageId); break; } } } } + #endif } - internal sealed partial class ActorIdentity : pb::IMessage { + internal sealed partial class ActorIdentity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActorIdentity()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorIdentity() { OnConstruction(); } @@ -1014,12 +1524,15 @@ public ActorIdentity() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorIdentity(ActorIdentity other) : this() { - CorrelationId = other.correlationId_ != null ? other.CorrelationId.Clone() : null; + correlationId_ = other.correlationId_ != null ? other.correlationId_.Clone() : null; path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorIdentity Clone() { return new ActorIdentity(this); } @@ -1028,6 +1541,7 @@ public ActorIdentity Clone() { public const int CorrelationIdFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload correlationId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload CorrelationId { get { return correlationId_; } set { @@ -1039,6 +1553,7 @@ public ActorIdentity Clone() { public const int PathFieldNumber = 2; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -1047,11 +1562,13 @@ public string Path { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActorIdentity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActorIdentity other) { if (ReferenceEquals(other, null)) { return false; @@ -1061,24 +1578,51 @@ public bool Equals(ActorIdentity other) { } if (!object.Equals(CorrelationId, other.CorrelationId)) return false; if (Path != other.Path) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (correlationId_ != null) hash ^= CorrelationId.GetHashCode(); if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (correlationId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CorrelationId); + } + if (Path.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Path); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (correlationId_ != null) { output.WriteRawTag(10); output.WriteMessage(CorrelationId); @@ -1087,9 +1631,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Path); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (correlationId_ != null) { @@ -1098,38 +1647,73 @@ public int CalculateSize() { if (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActorIdentity other) { if (other == null) { return; } if (other.correlationId_ != null) { if (correlationId_ == null) { - correlationId_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + CorrelationId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } CorrelationId.MergeFrom(other.CorrelationId); } if (other.Path.Length != 0) { Path = other.Path; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (correlationId_ == null) { + CorrelationId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(CorrelationId); + break; + } + case 18: { + Path = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (correlationId_ == null) { - correlationId_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + CorrelationId = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(correlationId_); + input.ReadMessage(CorrelationId); break; } case 18: { @@ -1139,25 +1723,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class RemoteWatcherHeartbeatResponse : pb::IMessage { + internal sealed partial class RemoteWatcherHeartbeatResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteWatcherHeartbeatResponse()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteWatcherHeartbeatResponse() { OnConstruction(); } @@ -1165,11 +1759,14 @@ public RemoteWatcherHeartbeatResponse() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteWatcherHeartbeatResponse(RemoteWatcherHeartbeatResponse other) : this() { uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteWatcherHeartbeatResponse Clone() { return new RemoteWatcherHeartbeatResponse(this); } @@ -1178,6 +1775,7 @@ public RemoteWatcherHeartbeatResponse Clone() { public const int UidFieldNumber = 1; private ulong uid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong Uid { get { return uid_; } set { @@ -1186,11 +1784,13 @@ public ulong Uid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteWatcherHeartbeatResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteWatcherHeartbeatResponse other) { if (ReferenceEquals(other, null)) { return false; @@ -1199,39 +1799,71 @@ public bool Equals(RemoteWatcherHeartbeatResponse other) { return true; } if (Uid != other.Uid) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Uid != 0UL) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Uid != 0UL) { output.WriteRawTag(8); output.WriteUInt64(Uid); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Uid != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Uid); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteWatcherHeartbeatResponse other) { if (other == null) { return; @@ -1239,15 +1871,39 @@ public void MergeFrom(RemoteWatcherHeartbeatResponse other) { if (other.Uid != 0UL) { Uid = other.Uid; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Uid = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Uid = input.ReadUInt64(); @@ -1256,25 +1912,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class ExceptionData : pb::IMessage { + internal sealed partial class ExceptionData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExceptionData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExceptionData() { OnConstruction(); } @@ -1282,16 +1948,19 @@ public ExceptionData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExceptionData(ExceptionData other) : this() { typeName_ = other.typeName_; message_ = other.message_; stackTrace_ = other.stackTrace_; source_ = other.source_; - InnerException = other.innerException_ != null ? other.InnerException.Clone() : null; + innerException_ = other.innerException_ != null ? other.innerException_.Clone() : null; customFields_ = other.customFields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExceptionData Clone() { return new ExceptionData(this); } @@ -1300,6 +1969,7 @@ public ExceptionData Clone() { public const int TypeNameFieldNumber = 1; private string typeName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TypeName { get { return typeName_; } set { @@ -1311,6 +1981,7 @@ public string TypeName { public const int MessageFieldNumber = 2; private string message_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { @@ -1322,6 +1993,7 @@ public string Message { public const int StackTraceFieldNumber = 3; private string stackTrace_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StackTrace { get { return stackTrace_; } set { @@ -1333,6 +2005,7 @@ public string StackTrace { public const int SourceFieldNumber = 4; private string source_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Source { get { return source_; } set { @@ -1344,6 +2017,7 @@ public string Source { public const int InnerExceptionFieldNumber = 5; private global::Akka.Remote.Serialization.Proto.Msg.ExceptionData innerException_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ExceptionData InnerException { get { return innerException_; } set { @@ -1354,19 +2028,22 @@ public string Source { /// Field number for the "customFields" field. public const int CustomFieldsFieldNumber = 6; private static readonly pbc::MapField.Codec _map_customFields_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Akka.Remote.Serialization.Proto.Msg.Payload.Parser), 50); + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Akka.Remote.Serialization.Proto.Msg.Payload.Parser), 50); private readonly pbc::MapField customFields_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField CustomFields { get { return customFields_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ExceptionData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExceptionData other) { if (ReferenceEquals(other, null)) { return false; @@ -1380,10 +2057,11 @@ public bool Equals(ExceptionData other) { if (Source != other.Source) return false; if (!object.Equals(InnerException, other.InnerException)) return false; if (!CustomFields.Equals(other.CustomFields)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); @@ -1392,16 +2070,24 @@ public override int GetHashCode() { if (Source.Length != 0) hash ^= Source.GetHashCode(); if (innerException_ != null) hash ^= InnerException.GetHashCode(); hash ^= CustomFields.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (TypeName.Length != 0) { output.WriteRawTag(10); output.WriteString(TypeName); @@ -1423,9 +2109,45 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(InnerException); } customFields_.WriteTo(output, _map_customFields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TypeName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TypeName); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + if (StackTrace.Length != 0) { + output.WriteRawTag(26); + output.WriteString(StackTrace); + } + if (Source.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Source); + } + if (innerException_ != null) { + output.WriteRawTag(42); + output.WriteMessage(InnerException); + } + customFields_.WriteTo(ref output, _map_customFields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (TypeName.Length != 0) { @@ -1444,10 +2166,14 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InnerException); } size += customFields_.CalculateSize(_map_customFields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ExceptionData other) { if (other == null) { return; @@ -1466,20 +2192,25 @@ public void MergeFrom(ExceptionData other) { } if (other.innerException_ != null) { if (innerException_ == null) { - innerException_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + InnerException = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } InnerException.MergeFrom(other.InnerException); } customFields_.Add(other.customFields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { TypeName = input.ReadString(); @@ -1499,9 +2230,9 @@ public void MergeFrom(pb::CodedInputStream input) { } case 42: { if (innerException_ == null) { - innerException_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + InnerException = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } - input.ReadMessage(innerException_); + input.ReadMessage(InnerException); break; } case 50: { @@ -1510,7 +2241,50 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TypeName = input.ReadString(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + case 26: { + StackTrace = input.ReadString(); + break; + } + case 34: { + Source = input.ReadString(); + break; + } + case 42: { + if (innerException_ == null) { + InnerException = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + } + input.ReadMessage(InnerException); + break; + } + case 50: { + customFields_.AddEntriesFrom(ref input, _map_customFields_codec); + break; + } + } + } } + #endif } diff --git a/src/core/Akka.Remote/Serialization/Proto/SystemMessageFormats.g.cs b/src/core/Akka.Remote/Serialization/Proto/SystemMessageFormats.g.cs index 3296a5c2666..7bcf6059dd7 100644 --- a/src/core/Akka.Remote/Serialization/Proto/SystemMessageFormats.g.cs +++ b/src/core/Akka.Remote/Serialization/Proto/SystemMessageFormats.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SystemMessageFormats.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SystemMessageFormats.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -45,36 +47,45 @@ static SystemMessageFormatsReflection() { "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.CreateData), global::Akka.Remote.Serialization.Proto.Msg.CreateData.Parser, new[]{ "Cause" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RecreateData), global::Akka.Remote.Serialization.Proto.Msg.RecreateData.Parser, new[]{ "Cause" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ResumeData), global::Akka.Remote.Serialization.Proto.Msg.ResumeData.Parser, new[]{ "Cause" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.SuperviseData), global::Akka.Remote.Serialization.Proto.Msg.SuperviseData.Parser, new[]{ "Child", "Async" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.WatchData), global::Akka.Remote.Serialization.Proto.Msg.WatchData.Parser, new[]{ "Watchee", "Watcher" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.FailedData), global::Akka.Remote.Serialization.Proto.Msg.FailedData.Parser, new[]{ "Child", "Cause", "Uid" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DeathWatchNotificationData), global::Akka.Remote.Serialization.Proto.Msg.DeathWatchNotificationData.Parser, new[]{ "Actor", "ExistenceConfirmed", "AddressTerminated" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.CreateData), global::Akka.Remote.Serialization.Proto.Msg.CreateData.Parser, new[]{ "Cause" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RecreateData), global::Akka.Remote.Serialization.Proto.Msg.RecreateData.Parser, new[]{ "Cause" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ResumeData), global::Akka.Remote.Serialization.Proto.Msg.ResumeData.Parser, new[]{ "Cause" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.SuperviseData), global::Akka.Remote.Serialization.Proto.Msg.SuperviseData.Parser, new[]{ "Child", "Async" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.WatchData), global::Akka.Remote.Serialization.Proto.Msg.WatchData.Parser, new[]{ "Watchee", "Watcher" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.FailedData), global::Akka.Remote.Serialization.Proto.Msg.FailedData.Parser, new[]{ "Child", "Cause", "Uid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DeathWatchNotificationData), global::Akka.Remote.Serialization.Proto.Msg.DeathWatchNotificationData.Parser, new[]{ "Actor", "ExistenceConfirmed", "AddressTerminated" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class CreateData : pb::IMessage { + internal sealed partial class CreateData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateData() { OnConstruction(); } @@ -82,11 +93,14 @@ public CreateData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateData(CreateData other) : this() { - Cause = other.cause_ != null ? other.Cause.Clone() : null; + cause_ = other.cause_ != null ? other.cause_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateData Clone() { return new CreateData(this); } @@ -95,6 +109,7 @@ public CreateData Clone() { public const int CauseFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ExceptionData cause_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ExceptionData Cause { get { return cause_; } set { @@ -103,11 +118,13 @@ public CreateData Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CreateData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateData other) { if (ReferenceEquals(other, null)) { return false; @@ -116,88 +133,157 @@ public bool Equals(CreateData other) { return true; } if (!object.Equals(Cause, other.Cause)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (cause_ != null) hash ^= Cause.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (cause_ != null) { output.WriteRawTag(10); output.WriteMessage(Cause); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (cause_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Cause); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (cause_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cause); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CreateData other) { if (other == null) { return; } if (other.cause_ != null) { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } Cause.MergeFrom(other.Cause); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } - input.ReadMessage(cause_); + input.ReadMessage(Cause); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (cause_ == null) { + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + } + input.ReadMessage(Cause); + break; + } + } + } + } + #endif + } - internal sealed partial class RecreateData : pb::IMessage { + internal sealed partial class RecreateData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecreateData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RecreateData() { OnConstruction(); } @@ -205,11 +291,14 @@ public RecreateData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RecreateData(RecreateData other) : this() { - Cause = other.cause_ != null ? other.Cause.Clone() : null; + cause_ = other.cause_ != null ? other.cause_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RecreateData Clone() { return new RecreateData(this); } @@ -218,6 +307,7 @@ public RecreateData Clone() { public const int CauseFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ExceptionData cause_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ExceptionData Cause { get { return cause_; } set { @@ -226,11 +316,13 @@ public RecreateData Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RecreateData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RecreateData other) { if (ReferenceEquals(other, null)) { return false; @@ -239,88 +331,157 @@ public bool Equals(RecreateData other) { return true; } if (!object.Equals(Cause, other.Cause)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (cause_ != null) hash ^= Cause.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (cause_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Cause); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (cause_ != null) { output.WriteRawTag(10); output.WriteMessage(Cause); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (cause_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cause); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RecreateData other) { if (other == null) { return; } if (other.cause_ != null) { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } Cause.MergeFrom(other.Cause); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } - input.ReadMessage(cause_); + input.ReadMessage(Cause); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (cause_ == null) { + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + } + input.ReadMessage(Cause); + break; + } + } + } + } + #endif + } - internal sealed partial class ResumeData : pb::IMessage { + internal sealed partial class ResumeData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResumeData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResumeData() { OnConstruction(); } @@ -328,11 +489,14 @@ public ResumeData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResumeData(ResumeData other) : this() { - Cause = other.cause_ != null ? other.Cause.Clone() : null; + cause_ = other.cause_ != null ? other.cause_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResumeData Clone() { return new ResumeData(this); } @@ -341,6 +505,7 @@ public ResumeData Clone() { public const int CauseFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ExceptionData cause_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ExceptionData Cause { get { return cause_; } set { @@ -349,11 +514,13 @@ public ResumeData Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ResumeData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResumeData other) { if (ReferenceEquals(other, null)) { return false; @@ -362,88 +529,157 @@ public bool Equals(ResumeData other) { return true; } if (!object.Equals(Cause, other.Cause)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (cause_ != null) hash ^= Cause.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (cause_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Cause); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (cause_ != null) { output.WriteRawTag(10); output.WriteMessage(Cause); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (cause_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cause); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ResumeData other) { if (other == null) { return; } if (other.cause_ != null) { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } Cause.MergeFrom(other.Cause); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } - input.ReadMessage(cause_); + input.ReadMessage(Cause); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (cause_ == null) { + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + } + input.ReadMessage(Cause); + break; + } + } + } + } + #endif + } - internal sealed partial class SuperviseData : pb::IMessage { + internal sealed partial class SuperviseData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuperviseData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SuperviseData() { OnConstruction(); } @@ -451,12 +687,15 @@ public SuperviseData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SuperviseData(SuperviseData other) : this() { - Child = other.child_ != null ? other.Child.Clone() : null; + child_ = other.child_ != null ? other.child_.Clone() : null; async_ = other.async_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SuperviseData Clone() { return new SuperviseData(this); } @@ -465,6 +704,7 @@ public SuperviseData Clone() { public const int ChildFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData child_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Child { get { return child_; } set { @@ -476,6 +716,7 @@ public SuperviseData Clone() { public const int AsyncFieldNumber = 2; private bool async_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Async { get { return async_; } set { @@ -484,11 +725,13 @@ public bool Async { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SuperviseData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SuperviseData other) { if (ReferenceEquals(other, null)) { return false; @@ -498,24 +741,51 @@ public bool Equals(SuperviseData other) { } if (!object.Equals(Child, other.Child)) return false; if (Async != other.Async) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (child_ != null) hash ^= Child.GetHashCode(); if (Async != false) hash ^= Async.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (child_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Child); + } + if (Async != false) { + output.WriteRawTag(16); + output.WriteBool(Async); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (child_ != null) { output.WriteRawTag(10); output.WriteMessage(Child); @@ -524,9 +794,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteBool(Async); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (child_ != null) { @@ -535,38 +810,47 @@ public int CalculateSize() { if (Async != false) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SuperviseData other) { if (other == null) { return; } if (other.child_ != null) { if (child_ == null) { - child_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Child.MergeFrom(other.Child); } if (other.Async != false) { Async = other.Async; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (child_ == null) { - child_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(child_); + input.ReadMessage(Child); break; } case 16: { @@ -575,26 +859,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (child_ == null) { + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Child); + break; + } + case 16: { + Async = input.ReadBool(); + break; + } + } + } + } + #endif + } - internal sealed partial class WatchData : pb::IMessage { + internal sealed partial class WatchData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WatchData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public WatchData() { OnConstruction(); } @@ -602,12 +922,15 @@ public WatchData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public WatchData(WatchData other) : this() { - Watchee = other.watchee_ != null ? other.Watchee.Clone() : null; - Watcher = other.watcher_ != null ? other.Watcher.Clone() : null; + watchee_ = other.watchee_ != null ? other.watchee_.Clone() : null; + watcher_ = other.watcher_ != null ? other.watcher_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public WatchData Clone() { return new WatchData(this); } @@ -616,6 +939,7 @@ public WatchData Clone() { public const int WatcheeFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData watchee_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Watchee { get { return watchee_; } set { @@ -627,6 +951,7 @@ public WatchData Clone() { public const int WatcherFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData watcher_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Watcher { get { return watcher_; } set { @@ -635,11 +960,13 @@ public WatchData Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as WatchData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(WatchData other) { if (ReferenceEquals(other, null)) { return false; @@ -649,24 +976,51 @@ public bool Equals(WatchData other) { } if (!object.Equals(Watchee, other.Watchee)) return false; if (!object.Equals(Watcher, other.Watcher)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (watchee_ != null) hash ^= Watchee.GetHashCode(); if (watcher_ != null) hash ^= Watcher.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (watchee_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Watchee); + } + if (watcher_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Watcher); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (watchee_ != null) { output.WriteRawTag(10); output.WriteMessage(Watchee); @@ -675,9 +1029,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Watcher); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (watchee_ != null) { @@ -686,72 +1045,120 @@ public int CalculateSize() { if (watcher_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Watcher); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(WatchData other) { if (other == null) { return; } if (other.watchee_ != null) { if (watchee_ == null) { - watchee_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Watchee = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Watchee.MergeFrom(other.Watchee); } if (other.watcher_ != null) { if (watcher_ == null) { - watcher_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Watcher = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Watcher.MergeFrom(other.Watcher); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (watchee_ == null) { + Watchee = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Watchee); + break; + } + case 18: { + if (watcher_ == null) { + Watcher = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Watcher); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (watchee_ == null) { - watchee_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Watchee = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(watchee_); + input.ReadMessage(Watchee); break; } case 18: { if (watcher_ == null) { - watcher_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Watcher = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(watcher_); + input.ReadMessage(Watcher); break; } } } } + #endif } - internal sealed partial class FailedData : pb::IMessage { + internal sealed partial class FailedData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailedData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FailedData() { OnConstruction(); } @@ -759,13 +1166,16 @@ public FailedData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FailedData(FailedData other) : this() { - Child = other.child_ != null ? other.Child.Clone() : null; - Cause = other.cause_ != null ? other.Cause.Clone() : null; + child_ = other.child_ != null ? other.child_.Clone() : null; + cause_ = other.cause_ != null ? other.cause_.Clone() : null; uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FailedData Clone() { return new FailedData(this); } @@ -774,6 +1184,7 @@ public FailedData Clone() { public const int ChildFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData child_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Child { get { return child_; } set { @@ -785,6 +1196,7 @@ public FailedData Clone() { public const int CauseFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.ExceptionData cause_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ExceptionData Cause { get { return cause_; } set { @@ -796,6 +1208,7 @@ public FailedData Clone() { public const int UidFieldNumber = 3; private ulong uid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong Uid { get { return uid_; } set { @@ -804,11 +1217,13 @@ public ulong Uid { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FailedData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FailedData other) { if (ReferenceEquals(other, null)) { return false; @@ -819,25 +1234,34 @@ public bool Equals(FailedData other) { if (!object.Equals(Child, other.Child)) return false; if (!object.Equals(Cause, other.Cause)) return false; if (Uid != other.Uid) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (child_ != null) hash ^= Child.GetHashCode(); if (cause_ != null) hash ^= Cause.GetHashCode(); if (Uid != 0UL) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (child_ != null) { output.WriteRawTag(10); output.WriteMessage(Child); @@ -850,9 +1274,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteUInt64(Uid); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (child_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Child); + } + if (cause_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cause); + } + if (Uid != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (child_ != null) { @@ -864,51 +1315,93 @@ public int CalculateSize() { if (Uid != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Uid); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FailedData other) { if (other == null) { return; } if (other.child_ != null) { if (child_ == null) { - child_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Child.MergeFrom(other.Child); } if (other.cause_ != null) { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } Cause.MergeFrom(other.Cause); } if (other.Uid != 0UL) { Uid = other.Uid; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (child_ == null) { + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Child); + break; + } + case 18: { + if (cause_ == null) { + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + } + input.ReadMessage(Cause); + break; + } + case 24: { + Uid = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (child_ == null) { - child_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Child = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(child_); + input.ReadMessage(Child); break; } case 18: { if (cause_ == null) { - cause_ = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); + Cause = new global::Akka.Remote.Serialization.Proto.Msg.ExceptionData(); } - input.ReadMessage(cause_); + input.ReadMessage(Cause); break; } case 24: { @@ -918,25 +1411,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class DeathWatchNotificationData : pb::IMessage { + internal sealed partial class DeathWatchNotificationData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeathWatchNotificationData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.SystemMessageFormatsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeathWatchNotificationData() { OnConstruction(); } @@ -944,13 +1447,16 @@ public DeathWatchNotificationData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeathWatchNotificationData(DeathWatchNotificationData other) : this() { - Actor = other.actor_ != null ? other.Actor.Clone() : null; + actor_ = other.actor_ != null ? other.actor_.Clone() : null; existenceConfirmed_ = other.existenceConfirmed_; addressTerminated_ = other.addressTerminated_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeathWatchNotificationData Clone() { return new DeathWatchNotificationData(this); } @@ -959,6 +1465,7 @@ public DeathWatchNotificationData Clone() { public const int ActorFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData actor_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Actor { get { return actor_; } set { @@ -970,6 +1477,7 @@ public DeathWatchNotificationData Clone() { public const int ExistenceConfirmedFieldNumber = 2; private bool existenceConfirmed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool ExistenceConfirmed { get { return existenceConfirmed_; } set { @@ -981,6 +1489,7 @@ public bool ExistenceConfirmed { public const int AddressTerminatedFieldNumber = 3; private bool addressTerminated_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool AddressTerminated { get { return addressTerminated_; } set { @@ -989,11 +1498,13 @@ public bool AddressTerminated { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeathWatchNotificationData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeathWatchNotificationData other) { if (ReferenceEquals(other, null)) { return false; @@ -1004,25 +1515,56 @@ public bool Equals(DeathWatchNotificationData other) { if (!object.Equals(Actor, other.Actor)) return false; if (ExistenceConfirmed != other.ExistenceConfirmed) return false; if (AddressTerminated != other.AddressTerminated) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (actor_ != null) hash ^= Actor.GetHashCode(); if (ExistenceConfirmed != false) hash ^= ExistenceConfirmed.GetHashCode(); if (AddressTerminated != false) hash ^= AddressTerminated.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (actor_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Actor); + } + if (ExistenceConfirmed != false) { + output.WriteRawTag(16); + output.WriteBool(ExistenceConfirmed); + } + if (AddressTerminated != false) { + output.WriteRawTag(24); + output.WriteBool(AddressTerminated); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (actor_ != null) { output.WriteRawTag(10); output.WriteMessage(Actor); @@ -1035,9 +1577,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteBool(AddressTerminated); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (actor_ != null) { @@ -1049,17 +1596,21 @@ public int CalculateSize() { if (AddressTerminated != false) { size += 1 + 1; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeathWatchNotificationData other) { if (other == null) { return; } if (other.actor_ != null) { if (actor_ == null) { - actor_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Actor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Actor.MergeFrom(other.Actor); } @@ -1069,21 +1620,56 @@ public void MergeFrom(DeathWatchNotificationData other) { if (other.AddressTerminated != false) { AddressTerminated = other.AddressTerminated; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (actor_ == null) { + Actor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Actor); + break; + } + case 16: { + ExistenceConfirmed = input.ReadBool(); + break; + } + case 24: { + AddressTerminated = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (actor_ == null) { - actor_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Actor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(actor_); + input.ReadMessage(Actor); break; } case 16: { @@ -1097,6 +1683,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } diff --git a/src/core/Akka.Remote/Serialization/Proto/WireFormats.g.cs b/src/core/Akka.Remote/Serialization/Proto/WireFormats.g.cs index e2dedaae083..24bbd26fd4b 100644 --- a/src/core/Akka.Remote/Serialization/Proto/WireFormats.g.cs +++ b/src/core/Akka.Remote/Serialization/Proto/WireFormats.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WireFormats.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WireFormats.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -86,23 +88,23 @@ static WireFormatsReflection() { "ChhESVNBU1NPQ0lBVEVfUVVBUkFOVElORUQQBWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Akka.Remote.Serialization.Proto.Msg.ContainerFormatsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Akka.Remote.Serialization.Proto.Msg.CommandType), }, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AckAndEnvelopeContainer), global::Akka.Remote.Serialization.Proto.Msg.AckAndEnvelopeContainer.Parser, new[]{ "Ack", "Envelope" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope), global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope.Parser, new[]{ "Recipient", "Message", "Sender", "Seq" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo), global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo.Parser, new[]{ "CumulativeAck", "Nacks" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DaemonMsgCreateData), global::Akka.Remote.Serialization.Proto.Msg.DaemonMsgCreateData.Parser, new[]{ "Props", "Deploy", "Path", "Supervisor" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.PropsData), global::Akka.Remote.Serialization.Proto.Msg.PropsData.Parser, new[]{ "Deploy", "Clazz", "Args", "Manifests", "SerializerIds", "HasManifest" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DeployData), global::Akka.Remote.Serialization.Proto.Msg.DeployData.Parser, new[]{ "Path", "Config", "RouterConfig", "Scope", "Dispatcher", "ScopeSerializerId", "ScopeManifest", "ConfigSerializerId", "ConfigManifest", "RouterConfigSerializerId", "RouterConfigManifest" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaProtocolMessage), global::Akka.Remote.Serialization.Proto.Msg.AkkaProtocolMessage.Parser, new[]{ "Payload", "Instruction" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage), global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage.Parser, new[]{ "CommandType", "HandshakeInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo), global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo.Parser, new[]{ "Origin", "Uid", "Cookie" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteScope), global::Akka.Remote.Serialization.Proto.Msg.RemoteScope.Parser, new[]{ "Node" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DefaultResizer), global::Akka.Remote.Serialization.Proto.Msg.DefaultResizer.Parser, new[]{ "LowerBound", "UpperBound", "PressureThreshold", "RampupRate", "BackoffThreshold", "BackoffRate", "MessagesPerResize" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.FromConfig), global::Akka.Remote.Serialization.Proto.Msg.FromConfig.Parser, new[]{ "Resizer", "RouterDispatcher" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool), global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool.Parser, new[]{ "NrOfInstances", "RouterDispatcher", "UsePoolDispatcher", "Resizer" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ScatterGatherPool), global::Akka.Remote.Serialization.Proto.Msg.ScatterGatherPool.Parser, new[]{ "Generic", "Within" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.TailChoppingPool), global::Akka.Remote.Serialization.Proto.Msg.TailChoppingPool.Parser, new[]{ "Generic", "Within", "Interval" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteRouterConfig), global::Akka.Remote.Serialization.Proto.Msg.RemoteRouterConfig.Parser, new[]{ "Local", "Nodes" }, null, null, null) + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Akka.Remote.Serialization.Proto.Msg.CommandType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AckAndEnvelopeContainer), global::Akka.Remote.Serialization.Proto.Msg.AckAndEnvelopeContainer.Parser, new[]{ "Ack", "Envelope" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope), global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope.Parser, new[]{ "Recipient", "Message", "Sender", "Seq" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo), global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo.Parser, new[]{ "CumulativeAck", "Nacks" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DaemonMsgCreateData), global::Akka.Remote.Serialization.Proto.Msg.DaemonMsgCreateData.Parser, new[]{ "Props", "Deploy", "Path", "Supervisor" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.PropsData), global::Akka.Remote.Serialization.Proto.Msg.PropsData.Parser, new[]{ "Deploy", "Clazz", "Args", "Manifests", "SerializerIds", "HasManifest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DeployData), global::Akka.Remote.Serialization.Proto.Msg.DeployData.Parser, new[]{ "Path", "Config", "RouterConfig", "Scope", "Dispatcher", "ScopeSerializerId", "ScopeManifest", "ConfigSerializerId", "ConfigManifest", "RouterConfigSerializerId", "RouterConfigManifest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaProtocolMessage), global::Akka.Remote.Serialization.Proto.Msg.AkkaProtocolMessage.Parser, new[]{ "Payload", "Instruction" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage), global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage.Parser, new[]{ "CommandType", "HandshakeInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo), global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo.Parser, new[]{ "Origin", "Uid", "Cookie" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteScope), global::Akka.Remote.Serialization.Proto.Msg.RemoteScope.Parser, new[]{ "Node" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.DefaultResizer), global::Akka.Remote.Serialization.Proto.Msg.DefaultResizer.Parser, new[]{ "LowerBound", "UpperBound", "PressureThreshold", "RampupRate", "BackoffThreshold", "BackoffRate", "MessagesPerResize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.FromConfig), global::Akka.Remote.Serialization.Proto.Msg.FromConfig.Parser, new[]{ "Resizer", "RouterDispatcher" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool), global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool.Parser, new[]{ "NrOfInstances", "RouterDispatcher", "UsePoolDispatcher", "Resizer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.ScatterGatherPool), global::Akka.Remote.Serialization.Proto.Msg.ScatterGatherPool.Parser, new[]{ "Generic", "Within" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.TailChoppingPool), global::Akka.Remote.Serialization.Proto.Msg.TailChoppingPool.Parser, new[]{ "Generic", "Within", "Interval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Remote.Serialization.Proto.Msg.RemoteRouterConfig), global::Akka.Remote.Serialization.Proto.Msg.RemoteRouterConfig.Parser, new[]{ "Local", "Nodes" }, null, null, null, null) })); } #endregion @@ -130,22 +132,31 @@ internal enum CommandType { #endregion #region Messages - internal sealed partial class AckAndEnvelopeContainer : pb::IMessage { + internal sealed partial class AckAndEnvelopeContainer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AckAndEnvelopeContainer()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AckAndEnvelopeContainer() { OnConstruction(); } @@ -153,12 +164,15 @@ public AckAndEnvelopeContainer() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AckAndEnvelopeContainer(AckAndEnvelopeContainer other) : this() { - Ack = other.ack_ != null ? other.Ack.Clone() : null; - Envelope = other.envelope_ != null ? other.Envelope.Clone() : null; + ack_ = other.ack_ != null ? other.ack_.Clone() : null; + envelope_ = other.envelope_ != null ? other.envelope_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AckAndEnvelopeContainer Clone() { return new AckAndEnvelopeContainer(this); } @@ -167,6 +181,7 @@ public AckAndEnvelopeContainer Clone() { public const int AckFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo ack_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo Ack { get { return ack_; } set { @@ -178,6 +193,7 @@ public AckAndEnvelopeContainer Clone() { public const int EnvelopeFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope envelope_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope Envelope { get { return envelope_; } set { @@ -186,11 +202,13 @@ public AckAndEnvelopeContainer Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AckAndEnvelopeContainer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AckAndEnvelopeContainer other) { if (ReferenceEquals(other, null)) { return false; @@ -200,24 +218,51 @@ public bool Equals(AckAndEnvelopeContainer other) { } if (!object.Equals(Ack, other.Ack)) return false; if (!object.Equals(Envelope, other.Envelope)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (ack_ != null) hash ^= Ack.GetHashCode(); if (envelope_ != null) hash ^= Envelope.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ack_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Ack); + } + if (envelope_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Envelope); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (ack_ != null) { output.WriteRawTag(10); output.WriteMessage(Ack); @@ -226,9 +271,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Envelope); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (ack_ != null) { @@ -237,75 +287,123 @@ public int CalculateSize() { if (envelope_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Envelope); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AckAndEnvelopeContainer other) { if (other == null) { return; } if (other.ack_ != null) { if (ack_ == null) { - ack_ = new global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo(); + Ack = new global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo(); } Ack.MergeFrom(other.Ack); } if (other.envelope_ != null) { if (envelope_ == null) { - envelope_ = new global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope(); + Envelope = new global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope(); } Envelope.MergeFrom(other.Envelope); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (ack_ == null) { + Ack = new global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo(); + } + input.ReadMessage(Ack); + break; + } + case 18: { + if (envelope_ == null) { + Envelope = new global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope(); + } + input.ReadMessage(Envelope); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (ack_ == null) { - ack_ = new global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo(); + Ack = new global::Akka.Remote.Serialization.Proto.Msg.AcknowledgementInfo(); } - input.ReadMessage(ack_); + input.ReadMessage(Ack); break; } case 18: { if (envelope_ == null) { - envelope_ = new global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope(); + Envelope = new global::Akka.Remote.Serialization.Proto.Msg.RemoteEnvelope(); } - input.ReadMessage(envelope_); + input.ReadMessage(Envelope); break; } } } } + #endif } /// /// Defines a remote message. /// - internal sealed partial class RemoteEnvelope : pb::IMessage { + internal sealed partial class RemoteEnvelope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteEnvelope()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteEnvelope() { OnConstruction(); } @@ -313,14 +411,17 @@ public RemoteEnvelope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteEnvelope(RemoteEnvelope other) : this() { - Recipient = other.recipient_ != null ? other.Recipient.Clone() : null; - Message = other.message_ != null ? other.Message.Clone() : null; - Sender = other.sender_ != null ? other.Sender.Clone() : null; + recipient_ = other.recipient_ != null ? other.recipient_.Clone() : null; + message_ = other.message_ != null ? other.message_.Clone() : null; + sender_ = other.sender_ != null ? other.sender_.Clone() : null; seq_ = other.seq_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteEnvelope Clone() { return new RemoteEnvelope(this); } @@ -329,6 +430,7 @@ public RemoteEnvelope Clone() { public const int RecipientFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData recipient_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Recipient { get { return recipient_; } set { @@ -340,6 +442,7 @@ public RemoteEnvelope Clone() { public const int MessageFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.Payload message_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Message { get { return message_; } set { @@ -351,6 +454,7 @@ public RemoteEnvelope Clone() { public const int SenderFieldNumber = 4; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData sender_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Sender { get { return sender_; } set { @@ -362,6 +466,7 @@ public RemoteEnvelope Clone() { public const int SeqFieldNumber = 5; private ulong seq_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong Seq { get { return seq_; } set { @@ -370,11 +475,13 @@ public ulong Seq { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteEnvelope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteEnvelope other) { if (ReferenceEquals(other, null)) { return false; @@ -386,26 +493,61 @@ public bool Equals(RemoteEnvelope other) { if (!object.Equals(Message, other.Message)) return false; if (!object.Equals(Sender, other.Sender)) return false; if (Seq != other.Seq) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (recipient_ != null) hash ^= Recipient.GetHashCode(); if (message_ != null) hash ^= Message.GetHashCode(); if (sender_ != null) hash ^= Sender.GetHashCode(); if (Seq != 0UL) hash ^= Seq.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (recipient_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Recipient); + } + if (message_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Message); + } + if (sender_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Sender); + } + if (Seq != 0UL) { + output.WriteRawTag(41); + output.WriteFixed64(Seq); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (recipient_ != null) { output.WriteRawTag(10); output.WriteMessage(Recipient); @@ -422,9 +564,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(41); output.WriteFixed64(Seq); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (recipient_ != null) { @@ -439,64 +586,113 @@ public int CalculateSize() { if (Seq != 0UL) { size += 1 + 8; } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteEnvelope other) { if (other == null) { return; } if (other.recipient_ != null) { if (recipient_ == null) { - recipient_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Recipient = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Recipient.MergeFrom(other.Recipient); } if (other.message_ != null) { if (message_ == null) { - message_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Message = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Message.MergeFrom(other.Message); } if (other.sender_ != null) { if (sender_ == null) { - sender_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Sender = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Sender.MergeFrom(other.Sender); } if (other.Seq != 0UL) { Seq = other.Seq; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (recipient_ == null) { + Recipient = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Recipient); + break; + } + case 18: { + if (message_ == null) { + Message = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Message); + break; + } + case 34: { + if (sender_ == null) { + Sender = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Sender); + break; + } + case 41: { + Seq = input.ReadFixed64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (recipient_ == null) { - recipient_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Recipient = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(recipient_); + input.ReadMessage(Recipient); break; } case 18: { if (message_ == null) { - message_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Message = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(message_); + input.ReadMessage(Message); break; } case 34: { if (sender_ == null) { - sender_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Sender = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(sender_); + input.ReadMessage(Sender); break; } case 41: { @@ -506,25 +702,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class AcknowledgementInfo : pb::IMessage { + internal sealed partial class AcknowledgementInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcknowledgementInfo()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AcknowledgementInfo() { OnConstruction(); } @@ -532,12 +738,15 @@ public AcknowledgementInfo() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AcknowledgementInfo(AcknowledgementInfo other) : this() { cumulativeAck_ = other.cumulativeAck_; nacks_ = other.nacks_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AcknowledgementInfo Clone() { return new AcknowledgementInfo(this); } @@ -546,6 +755,7 @@ public AcknowledgementInfo Clone() { public const int CumulativeAckFieldNumber = 1; private ulong cumulativeAck_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong CumulativeAck { get { return cumulativeAck_; } set { @@ -559,16 +769,19 @@ public ulong CumulativeAck { = pb::FieldCodec.ForFixed64(18); private readonly pbc::RepeatedField nacks_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Nacks { get { return nacks_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AcknowledgementInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AcknowledgementInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -578,42 +791,75 @@ public bool Equals(AcknowledgementInfo other) { } if (CumulativeAck != other.CumulativeAck) return false; if(!nacks_.Equals(other.nacks_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (CumulativeAck != 0UL) hash ^= CumulativeAck.GetHashCode(); hash ^= nacks_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (CumulativeAck != 0UL) { output.WriteRawTag(9); output.WriteFixed64(CumulativeAck); } nacks_.WriteTo(output, _repeated_nacks_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CumulativeAck != 0UL) { + output.WriteRawTag(9); + output.WriteFixed64(CumulativeAck); + } + nacks_.WriteTo(ref output, _repeated_nacks_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (CumulativeAck != 0UL) { size += 1 + 8; } size += nacks_.CalculateSize(_repeated_nacks_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AcknowledgementInfo other) { if (other == null) { return; @@ -622,15 +868,20 @@ public void MergeFrom(AcknowledgementInfo other) { CumulativeAck = other.CumulativeAck; } nacks_.Add(other.nacks_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { CumulativeAck = input.ReadFixed64(); @@ -643,29 +894,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + CumulativeAck = input.ReadFixed64(); + break; + } + case 18: + case 17: { + nacks_.AddEntriesFrom(ref input, _repeated_nacks_codec); + break; + } + } + } } + #endif } /// /// Defines Akka.Remote.DaemonMsgCreate /// - internal sealed partial class DaemonMsgCreateData : pb::IMessage { + internal sealed partial class DaemonMsgCreateData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DaemonMsgCreateData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DaemonMsgCreateData() { OnConstruction(); } @@ -673,14 +958,17 @@ public DaemonMsgCreateData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DaemonMsgCreateData(DaemonMsgCreateData other) : this() { - Props = other.props_ != null ? other.Props.Clone() : null; - Deploy = other.deploy_ != null ? other.Deploy.Clone() : null; + props_ = other.props_ != null ? other.props_.Clone() : null; + deploy_ = other.deploy_ != null ? other.deploy_.Clone() : null; path_ = other.path_; - Supervisor = other.supervisor_ != null ? other.Supervisor.Clone() : null; + supervisor_ = other.supervisor_ != null ? other.supervisor_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DaemonMsgCreateData Clone() { return new DaemonMsgCreateData(this); } @@ -689,6 +977,7 @@ public DaemonMsgCreateData Clone() { public const int PropsFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.PropsData props_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.PropsData Props { get { return props_; } set { @@ -700,6 +989,7 @@ public DaemonMsgCreateData Clone() { public const int DeployFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.DeployData deploy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.DeployData Deploy { get { return deploy_; } set { @@ -711,6 +1001,7 @@ public DaemonMsgCreateData Clone() { public const int PathFieldNumber = 3; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -722,6 +1013,7 @@ public string Path { public const int SupervisorFieldNumber = 4; private global::Akka.Remote.Serialization.Proto.Msg.ActorRefData supervisor_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.ActorRefData Supervisor { get { return supervisor_; } set { @@ -730,11 +1022,13 @@ public string Path { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DaemonMsgCreateData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DaemonMsgCreateData other) { if (ReferenceEquals(other, null)) { return false; @@ -746,26 +1040,61 @@ public bool Equals(DaemonMsgCreateData other) { if (!object.Equals(Deploy, other.Deploy)) return false; if (Path != other.Path) return false; if (!object.Equals(Supervisor, other.Supervisor)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (props_ != null) hash ^= Props.GetHashCode(); if (deploy_ != null) hash ^= Deploy.GetHashCode(); if (Path.Length != 0) hash ^= Path.GetHashCode(); if (supervisor_ != null) hash ^= Supervisor.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (props_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Props); + } + if (deploy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Deploy); + } + if (Path.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Path); + } + if (supervisor_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Supervisor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (props_ != null) { output.WriteRawTag(10); output.WriteMessage(Props); @@ -782,9 +1111,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(Supervisor); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (props_ != null) { @@ -799,23 +1133,27 @@ public int CalculateSize() { if (supervisor_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Supervisor); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DaemonMsgCreateData other) { if (other == null) { return; } if (other.props_ != null) { if (props_ == null) { - props_ = new global::Akka.Remote.Serialization.Proto.Msg.PropsData(); + Props = new global::Akka.Remote.Serialization.Proto.Msg.PropsData(); } Props.MergeFrom(other.Props); } if (other.deploy_ != null) { if (deploy_ == null) { - deploy_ = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); } Deploy.MergeFrom(other.Deploy); } @@ -824,32 +1162,77 @@ public void MergeFrom(DaemonMsgCreateData other) { } if (other.supervisor_ != null) { if (supervisor_ == null) { - supervisor_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Supervisor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } Supervisor.MergeFrom(other.Supervisor); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (props_ == null) { + Props = new global::Akka.Remote.Serialization.Proto.Msg.PropsData(); + } + input.ReadMessage(Props); + break; + } + case 18: { + if (deploy_ == null) { + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + } + input.ReadMessage(Deploy); + break; + } + case 26: { + Path = input.ReadString(); + break; + } + case 34: { + if (supervisor_ == null) { + Supervisor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + } + input.ReadMessage(Supervisor); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (props_ == null) { - props_ = new global::Akka.Remote.Serialization.Proto.Msg.PropsData(); + Props = new global::Akka.Remote.Serialization.Proto.Msg.PropsData(); } - input.ReadMessage(props_); + input.ReadMessage(Props); break; } case 18: { if (deploy_ == null) { - deploy_ = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); } - input.ReadMessage(deploy_); + input.ReadMessage(Deploy); break; } case 26: { @@ -858,36 +1241,46 @@ public void MergeFrom(pb::CodedInputStream input) { } case 34: { if (supervisor_ == null) { - supervisor_ = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); + Supervisor = new global::Akka.Remote.Serialization.Proto.Msg.ActorRefData(); } - input.ReadMessage(supervisor_); + input.ReadMessage(Supervisor); break; } } } } + #endif } /// /// Serialization of Akka.Actor.Props /// - internal sealed partial class PropsData : pb::IMessage { + internal sealed partial class PropsData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropsData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PropsData() { OnConstruction(); } @@ -895,16 +1288,19 @@ public PropsData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PropsData(PropsData other) : this() { - Deploy = other.deploy_ != null ? other.Deploy.Clone() : null; + deploy_ = other.deploy_ != null ? other.deploy_.Clone() : null; clazz_ = other.clazz_; args_ = other.args_.Clone(); manifests_ = other.manifests_.Clone(); serializerIds_ = other.serializerIds_.Clone(); hasManifest_ = other.hasManifest_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PropsData Clone() { return new PropsData(this); } @@ -913,6 +1309,7 @@ public PropsData Clone() { public const int DeployFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.DeployData deploy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.DeployData Deploy { get { return deploy_; } set { @@ -924,6 +1321,7 @@ public PropsData Clone() { public const int ClazzFieldNumber = 3; private string clazz_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Clazz { get { return clazz_; } set { @@ -940,6 +1338,7 @@ public string Clazz { /// serialized props parameters /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Args { get { return args_; } } @@ -953,6 +1352,7 @@ public string Clazz { /// contains string manifest for each arg /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Manifests { get { return manifests_; } } @@ -966,6 +1366,7 @@ public string Clazz { /// serializer id for each arg /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SerializerIds { get { return serializerIds_; } } @@ -976,16 +1377,19 @@ public string Clazz { = pb::FieldCodec.ForBool(58); private readonly pbc::RepeatedField hasManifest_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField HasManifest { get { return hasManifest_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PropsData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PropsData other) { if (ReferenceEquals(other, null)) { return false; @@ -999,10 +1403,11 @@ public bool Equals(PropsData other) { if(!manifests_.Equals(other.manifests_)) return false; if(!serializerIds_.Equals(other.serializerIds_)) return false; if(!hasManifest_.Equals(other.hasManifest_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (deploy_ != null) hash ^= Deploy.GetHashCode(); @@ -1011,16 +1416,24 @@ public override int GetHashCode() { hash ^= manifests_.GetHashCode(); hash ^= serializerIds_.GetHashCode(); hash ^= hasManifest_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (deploy_ != null) { output.WriteRawTag(18); output.WriteMessage(Deploy); @@ -1033,9 +1446,36 @@ public void WriteTo(pb::CodedOutputStream output) { manifests_.WriteTo(output, _repeated_manifests_codec); serializerIds_.WriteTo(output, _repeated_serializerIds_codec); hasManifest_.WriteTo(output, _repeated_hasManifest_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (deploy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Deploy); + } + if (Clazz.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Clazz); + } + args_.WriteTo(ref output, _repeated_args_codec); + manifests_.WriteTo(ref output, _repeated_manifests_codec); + serializerIds_.WriteTo(ref output, _repeated_serializerIds_codec); + hasManifest_.WriteTo(ref output, _repeated_hasManifest_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (deploy_ != null) { @@ -1048,17 +1488,21 @@ public int CalculateSize() { size += manifests_.CalculateSize(_repeated_manifests_codec); size += serializerIds_.CalculateSize(_repeated_serializerIds_codec); size += hasManifest_.CalculateSize(_repeated_hasManifest_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PropsData other) { if (other == null) { return; } if (other.deploy_ != null) { if (deploy_ == null) { - deploy_ = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); } Deploy.MergeFrom(other.Deploy); } @@ -1069,21 +1513,26 @@ public void MergeFrom(PropsData other) { manifests_.Add(other.manifests_); serializerIds_.Add(other.serializerIds_); hasManifest_.Add(other.hasManifest_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 18: { if (deploy_ == null) { - deploy_ = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); } - input.ReadMessage(deploy_); + input.ReadMessage(Deploy); break; } case 26: { @@ -1110,29 +1559,83 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (deploy_ == null) { + Deploy = new global::Akka.Remote.Serialization.Proto.Msg.DeployData(); + } + input.ReadMessage(Deploy); + break; + } + case 26: { + Clazz = input.ReadString(); + break; + } + case 34: { + args_.AddEntriesFrom(ref input, _repeated_args_codec); + break; + } + case 42: { + manifests_.AddEntriesFrom(ref input, _repeated_manifests_codec); + break; + } + case 50: + case 48: { + serializerIds_.AddEntriesFrom(ref input, _repeated_serializerIds_codec); + break; + } + case 58: + case 56: { + hasManifest_.AddEntriesFrom(ref input, _repeated_hasManifest_codec); + break; + } + } + } } + #endif } /// /// Serialization of akka.actor.Deploy /// - internal sealed partial class DeployData : pb::IMessage { + internal sealed partial class DeployData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployData()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeployData() { OnConstruction(); } @@ -1140,6 +1643,7 @@ public DeployData() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeployData(DeployData other) : this() { path_ = other.path_; config_ = other.config_; @@ -1152,9 +1656,11 @@ public DeployData(DeployData other) : this() { configManifest_ = other.configManifest_; routerConfigSerializerId_ = other.routerConfigSerializerId_; routerConfigManifest_ = other.routerConfigManifest_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeployData Clone() { return new DeployData(this); } @@ -1163,6 +1669,7 @@ public DeployData Clone() { public const int PathFieldNumber = 1; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -1174,6 +1681,7 @@ public string Path { public const int ConfigFieldNumber = 2; private pb::ByteString config_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Config { get { return config_; } set { @@ -1185,6 +1693,7 @@ public string Path { public const int RouterConfigFieldNumber = 3; private pb::ByteString routerConfig_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString RouterConfig { get { return routerConfig_; } set { @@ -1196,6 +1705,7 @@ public string Path { public const int ScopeFieldNumber = 4; private pb::ByteString scope_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Scope { get { return scope_; } set { @@ -1207,6 +1717,7 @@ public string Path { public const int DispatcherFieldNumber = 5; private string dispatcher_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Dispatcher { get { return dispatcher_; } set { @@ -1218,6 +1729,7 @@ public string Dispatcher { public const int ScopeSerializerIdFieldNumber = 6; private int scopeSerializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ScopeSerializerId { get { return scopeSerializerId_; } set { @@ -1229,6 +1741,7 @@ public int ScopeSerializerId { public const int ScopeManifestFieldNumber = 7; private string scopeManifest_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ScopeManifest { get { return scopeManifest_; } set { @@ -1240,6 +1753,7 @@ public string ScopeManifest { public const int ConfigSerializerIdFieldNumber = 8; private int configSerializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ConfigSerializerId { get { return configSerializerId_; } set { @@ -1251,6 +1765,7 @@ public int ConfigSerializerId { public const int ConfigManifestFieldNumber = 9; private string configManifest_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ConfigManifest { get { return configManifest_; } set { @@ -1262,6 +1777,7 @@ public string ConfigManifest { public const int RouterConfigSerializerIdFieldNumber = 10; private int routerConfigSerializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RouterConfigSerializerId { get { return routerConfigSerializerId_; } set { @@ -1273,6 +1789,7 @@ public int RouterConfigSerializerId { public const int RouterConfigManifestFieldNumber = 11; private string routerConfigManifest_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RouterConfigManifest { get { return routerConfigManifest_; } set { @@ -1281,11 +1798,13 @@ public string RouterConfigManifest { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeployData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeployData other) { if (ReferenceEquals(other, null)) { return false; @@ -1304,10 +1823,11 @@ public bool Equals(DeployData other) { if (ConfigManifest != other.ConfigManifest) return false; if (RouterConfigSerializerId != other.RouterConfigSerializerId) return false; if (RouterConfigManifest != other.RouterConfigManifest) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); @@ -1321,16 +1841,24 @@ public override int GetHashCode() { if (ConfigManifest.Length != 0) hash ^= ConfigManifest.GetHashCode(); if (RouterConfigSerializerId != 0) hash ^= RouterConfigSerializerId.GetHashCode(); if (RouterConfigManifest.Length != 0) hash ^= RouterConfigManifest.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); @@ -1375,49 +1903,112 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(90); output.WriteString(RouterConfigManifest); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Path.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + output.WriteRawTag(10); + output.WriteString(Path); } if (Config.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Config); + output.WriteRawTag(18); + output.WriteBytes(Config); } if (RouterConfig.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(RouterConfig); + output.WriteRawTag(26); + output.WriteBytes(RouterConfig); } if (Scope.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Scope); + output.WriteRawTag(34); + output.WriteBytes(Scope); } if (Dispatcher.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Dispatcher); + output.WriteRawTag(42); + output.WriteString(Dispatcher); } if (ScopeSerializerId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScopeSerializerId); + output.WriteRawTag(48); + output.WriteInt32(ScopeSerializerId); } if (ScopeManifest.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ScopeManifest); + output.WriteRawTag(58); + output.WriteString(ScopeManifest); } if (ConfigSerializerId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ConfigSerializerId); + output.WriteRawTag(64); + output.WriteInt32(ConfigSerializerId); } if (ConfigManifest.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigManifest); + output.WriteRawTag(74); + output.WriteString(ConfigManifest); } if (RouterConfigSerializerId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RouterConfigSerializerId); + output.WriteRawTag(80); + output.WriteInt32(RouterConfigSerializerId); } if (RouterConfigManifest.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RouterConfigManifest); + output.WriteRawTag(90); + output.WriteString(RouterConfigManifest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - return size; } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DeployData other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (Config.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Config); + } + if (RouterConfig.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RouterConfig); + } + if (Scope.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Scope); + } + if (Dispatcher.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Dispatcher); + } + if (ScopeSerializerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScopeSerializerId); + } + if (ScopeManifest.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ScopeManifest); + } + if (ConfigSerializerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ConfigSerializerId); + } + if (ConfigManifest.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigManifest); + } + if (RouterConfigSerializerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RouterConfigSerializerId); + } + if (RouterConfigManifest.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RouterConfigManifest); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeployData other) { if (other == null) { return; } @@ -1454,15 +2045,79 @@ public void MergeFrom(DeployData other) { if (other.RouterConfigManifest.Length != 0) { RouterConfigManifest = other.RouterConfigManifest; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + case 18: { + Config = input.ReadBytes(); + break; + } + case 26: { + RouterConfig = input.ReadBytes(); + break; + } + case 34: { + Scope = input.ReadBytes(); + break; + } + case 42: { + Dispatcher = input.ReadString(); + break; + } + case 48: { + ScopeSerializerId = input.ReadInt32(); + break; + } + case 58: { + ScopeManifest = input.ReadString(); + break; + } + case 64: { + ConfigSerializerId = input.ReadInt32(); + break; + } + case 74: { + ConfigManifest = input.ReadString(); + break; + } + case 80: { + RouterConfigSerializerId = input.ReadInt32(); + break; + } + case 90: { + RouterConfigManifest = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); @@ -1511,28 +2166,38 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } /// /// Message format of Akka Protocol. Message contains either a payload or an instruction. /// - internal sealed partial class AkkaProtocolMessage : pb::IMessage { + internal sealed partial class AkkaProtocolMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AkkaProtocolMessage()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaProtocolMessage() { OnConstruction(); } @@ -1540,12 +2205,15 @@ public AkkaProtocolMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaProtocolMessage(AkkaProtocolMessage other) : this() { payload_ = other.payload_; - Instruction = other.instruction_ != null ? other.Instruction.Clone() : null; + instruction_ = other.instruction_ != null ? other.instruction_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaProtocolMessage Clone() { return new AkkaProtocolMessage(this); } @@ -1554,6 +2222,7 @@ public AkkaProtocolMessage Clone() { public const int PayloadFieldNumber = 1; private pb::ByteString payload_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Payload { get { return payload_; } set { @@ -1565,6 +2234,7 @@ public AkkaProtocolMessage Clone() { public const int InstructionFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage instruction_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage Instruction { get { return instruction_; } set { @@ -1573,11 +2243,13 @@ public AkkaProtocolMessage Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AkkaProtocolMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AkkaProtocolMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -1587,24 +2259,51 @@ public bool Equals(AkkaProtocolMessage other) { } if (Payload != other.Payload) return false; if (!object.Equals(Instruction, other.Instruction)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Payload.Length != 0) hash ^= Payload.GetHashCode(); if (instruction_ != null) hash ^= Instruction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Payload.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Payload); + } + if (instruction_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Instruction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Payload.Length != 0) { output.WriteRawTag(10); output.WriteBytes(Payload); @@ -1613,9 +2312,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Instruction); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Payload.Length != 0) { @@ -1624,10 +2328,14 @@ public int CalculateSize() { if (instruction_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Instruction); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AkkaProtocolMessage other) { if (other == null) { return; @@ -1637,19 +2345,24 @@ public void MergeFrom(AkkaProtocolMessage other) { } if (other.instruction_ != null) { if (instruction_ == null) { - instruction_ = new global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage(); + Instruction = new global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage(); } Instruction.MergeFrom(other.Instruction); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Payload = input.ReadBytes(); @@ -1657,36 +2370,72 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (instruction_ == null) { - instruction_ = new global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage(); + Instruction = new global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage(); } - input.ReadMessage(instruction_); + input.ReadMessage(Instruction); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Payload = input.ReadBytes(); + break; + } + case 18: { + if (instruction_ == null) { + Instruction = new global::Akka.Remote.Serialization.Proto.Msg.AkkaControlMessage(); + } + input.ReadMessage(Instruction); + break; + } + } + } + } + #endif + } /// /// Defines some control messages for the remoting /// - internal sealed partial class AkkaControlMessage : pb::IMessage { + internal sealed partial class AkkaControlMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AkkaControlMessage()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaControlMessage() { OnConstruction(); } @@ -1694,20 +2443,24 @@ public AkkaControlMessage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaControlMessage(AkkaControlMessage other) : this() { commandType_ = other.commandType_; - HandshakeInfo = other.handshakeInfo_ != null ? other.HandshakeInfo.Clone() : null; + handshakeInfo_ = other.handshakeInfo_ != null ? other.handshakeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaControlMessage Clone() { return new AkkaControlMessage(this); } /// Field number for the "commandType" field. public const int CommandTypeFieldNumber = 1; - private global::Akka.Remote.Serialization.Proto.Msg.CommandType commandType_ = 0; + private global::Akka.Remote.Serialization.Proto.Msg.CommandType commandType_ = global::Akka.Remote.Serialization.Proto.Msg.CommandType.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.CommandType CommandType { get { return commandType_; } set { @@ -1719,6 +2472,7 @@ public AkkaControlMessage Clone() { public const int HandshakeInfoFieldNumber = 2; private global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo handshakeInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo HandshakeInfo { get { return handshakeInfo_; } set { @@ -1727,11 +2481,13 @@ public AkkaControlMessage Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AkkaControlMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AkkaControlMessage other) { if (ReferenceEquals(other, null)) { return false; @@ -1741,25 +2497,34 @@ public bool Equals(AkkaControlMessage other) { } if (CommandType != other.CommandType) return false; if (!object.Equals(HandshakeInfo, other.HandshakeInfo)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (CommandType != 0) hash ^= CommandType.GetHashCode(); + if (CommandType != global::Akka.Remote.Serialization.Proto.Msg.CommandType.None) hash ^= CommandType.GetHashCode(); if (handshakeInfo_ != null) hash ^= HandshakeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (CommandType != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CommandType != global::Akka.Remote.Serialization.Proto.Msg.CommandType.None) { output.WriteRawTag(8); output.WriteEnum((int) CommandType); } @@ -1767,77 +2532,145 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(HandshakeInfo); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CommandType != global::Akka.Remote.Serialization.Proto.Msg.CommandType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) CommandType); + } + if (handshakeInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(HandshakeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (CommandType != 0) { + if (CommandType != global::Akka.Remote.Serialization.Proto.Msg.CommandType.None) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CommandType); } if (handshakeInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(HandshakeInfo); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AkkaControlMessage other) { if (other == null) { return; } - if (other.CommandType != 0) { + if (other.CommandType != global::Akka.Remote.Serialization.Proto.Msg.CommandType.None) { CommandType = other.CommandType; } if (other.handshakeInfo_ != null) { if (handshakeInfo_ == null) { - handshakeInfo_ = new global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo(); + HandshakeInfo = new global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo(); } HandshakeInfo.MergeFrom(other.HandshakeInfo); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CommandType = (global::Akka.Remote.Serialization.Proto.Msg.CommandType) input.ReadEnum(); + break; + } + case 18: { + if (handshakeInfo_ == null) { + HandshakeInfo = new global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo(); + } + input.ReadMessage(HandshakeInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - commandType_ = (global::Akka.Remote.Serialization.Proto.Msg.CommandType) input.ReadEnum(); + CommandType = (global::Akka.Remote.Serialization.Proto.Msg.CommandType) input.ReadEnum(); break; } case 18: { if (handshakeInfo_ == null) { - handshakeInfo_ = new global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo(); + HandshakeInfo = new global::Akka.Remote.Serialization.Proto.Msg.AkkaHandshakeInfo(); } - input.ReadMessage(handshakeInfo_); + input.ReadMessage(HandshakeInfo); break; } } } } + #endif } - internal sealed partial class AkkaHandshakeInfo : pb::IMessage { + internal sealed partial class AkkaHandshakeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AkkaHandshakeInfo()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaHandshakeInfo() { OnConstruction(); } @@ -1845,13 +2678,16 @@ public AkkaHandshakeInfo() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaHandshakeInfo(AkkaHandshakeInfo other) : this() { - Origin = other.origin_ != null ? other.Origin.Clone() : null; + origin_ = other.origin_ != null ? other.origin_.Clone() : null; uid_ = other.uid_; cookie_ = other.cookie_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AkkaHandshakeInfo Clone() { return new AkkaHandshakeInfo(this); } @@ -1860,6 +2696,7 @@ public AkkaHandshakeInfo Clone() { public const int OriginFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData origin_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Origin { get { return origin_; } set { @@ -1871,6 +2708,7 @@ public AkkaHandshakeInfo Clone() { public const int UidFieldNumber = 2; private ulong uid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong Uid { get { return uid_; } set { @@ -1882,6 +2720,7 @@ public ulong Uid { public const int CookieFieldNumber = 3; private string cookie_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Cookie { get { return cookie_; } set { @@ -1890,11 +2729,13 @@ public string Cookie { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AkkaHandshakeInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AkkaHandshakeInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -1905,25 +2746,34 @@ public bool Equals(AkkaHandshakeInfo other) { if (!object.Equals(Origin, other.Origin)) return false; if (Uid != other.Uid) return false; if (Cookie != other.Cookie) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (origin_ != null) hash ^= Origin.GetHashCode(); if (Uid != 0UL) hash ^= Uid.GetHashCode(); if (Cookie.Length != 0) hash ^= Cookie.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (origin_ != null) { output.WriteRawTag(10); output.WriteMessage(Origin); @@ -1936,9 +2786,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Cookie); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (origin_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Origin); + } + if (Uid != 0UL) { + output.WriteRawTag(17); + output.WriteFixed64(Uid); + } + if (Cookie.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Cookie); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (origin_ != null) { @@ -1950,17 +2827,21 @@ public int CalculateSize() { if (Cookie.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Cookie); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AkkaHandshakeInfo other) { if (other == null) { return; } if (other.origin_ != null) { if (origin_ == null) { - origin_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Origin = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Origin.MergeFrom(other.Origin); } @@ -1970,21 +2851,26 @@ public void MergeFrom(AkkaHandshakeInfo other) { if (other.Cookie.Length != 0) { Cookie = other.Cookie; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (origin_ == null) { - origin_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Origin = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(origin_); + input.ReadMessage(Origin); break; } case 17: { @@ -1997,26 +2883,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (origin_ == null) { + Origin = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Origin); + break; + } + case 17: { + Uid = input.ReadFixed64(); + break; + } + case 26: { + Cookie = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class RemoteScope : pb::IMessage { + internal sealed partial class RemoteScope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteScope()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteScope() { OnConstruction(); } @@ -2024,11 +2950,14 @@ public RemoteScope() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteScope(RemoteScope other) : this() { - Node = other.node_ != null ? other.Node.Clone() : null; + node_ = other.node_ != null ? other.node_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteScope Clone() { return new RemoteScope(this); } @@ -2037,6 +2966,7 @@ public RemoteScope Clone() { public const int NodeFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.AddressData node_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.AddressData Node { get { return node_; } set { @@ -2045,11 +2975,13 @@ public RemoteScope Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteScope); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteScope other) { if (ReferenceEquals(other, null)) { return false; @@ -2058,88 +2990,157 @@ public bool Equals(RemoteScope other) { return true; } if (!object.Equals(Node, other.Node)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (node_ != null) hash ^= Node.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (node_ != null) { output.WriteRawTag(10); output.WriteMessage(Node); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (node_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Node); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (node_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Node); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteScope other) { if (other == null) { return; } if (other.node_ != null) { if (node_ == null) { - node_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Node = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } Node.MergeFrom(other.Node); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (node_ == null) { - node_ = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + Node = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); } - input.ReadMessage(node_); + input.ReadMessage(Node); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (node_ == null) { + Node = new global::Akka.Remote.Serialization.Proto.Msg.AddressData(); + } + input.ReadMessage(Node); + break; + } + } + } + } + #endif + } - internal sealed partial class DefaultResizer : pb::IMessage { + internal sealed partial class DefaultResizer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DefaultResizer()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DefaultResizer() { OnConstruction(); } @@ -2147,6 +3148,7 @@ public DefaultResizer() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DefaultResizer(DefaultResizer other) : this() { lowerBound_ = other.lowerBound_; upperBound_ = other.upperBound_; @@ -2155,9 +3157,11 @@ public DefaultResizer(DefaultResizer other) : this() { backoffThreshold_ = other.backoffThreshold_; backoffRate_ = other.backoffRate_; messagesPerResize_ = other.messagesPerResize_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DefaultResizer Clone() { return new DefaultResizer(this); } @@ -2166,6 +3170,7 @@ public DefaultResizer Clone() { public const int LowerBoundFieldNumber = 1; private uint lowerBound_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint LowerBound { get { return lowerBound_; } set { @@ -2177,6 +3182,7 @@ public uint LowerBound { public const int UpperBoundFieldNumber = 2; private uint upperBound_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint UpperBound { get { return upperBound_; } set { @@ -2188,6 +3194,7 @@ public uint UpperBound { public const int PressureThresholdFieldNumber = 3; private uint pressureThreshold_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PressureThreshold { get { return pressureThreshold_; } set { @@ -2199,6 +3206,7 @@ public uint PressureThreshold { public const int RampupRateFieldNumber = 4; private double rampupRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double RampupRate { get { return rampupRate_; } set { @@ -2210,6 +3218,7 @@ public double RampupRate { public const int BackoffThresholdFieldNumber = 5; private double backoffThreshold_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double BackoffThreshold { get { return backoffThreshold_; } set { @@ -2221,6 +3230,7 @@ public double BackoffThreshold { public const int BackoffRateFieldNumber = 6; private double backoffRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double BackoffRate { get { return backoffRate_; } set { @@ -2232,6 +3242,7 @@ public double BackoffRate { public const int MessagesPerResizeFieldNumber = 7; private uint messagesPerResize_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MessagesPerResize { get { return messagesPerResize_; } set { @@ -2240,11 +3251,13 @@ public uint MessagesPerResize { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DefaultResizer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DefaultResizer other) { if (ReferenceEquals(other, null)) { return false; @@ -2255,33 +3268,80 @@ public bool Equals(DefaultResizer other) { if (LowerBound != other.LowerBound) return false; if (UpperBound != other.UpperBound) return false; if (PressureThreshold != other.PressureThreshold) return false; - if (RampupRate != other.RampupRate) return false; - if (BackoffThreshold != other.BackoffThreshold) return false; - if (BackoffRate != other.BackoffRate) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RampupRate, other.RampupRate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BackoffThreshold, other.BackoffThreshold)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BackoffRate, other.BackoffRate)) return false; if (MessagesPerResize != other.MessagesPerResize) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (LowerBound != 0) hash ^= LowerBound.GetHashCode(); if (UpperBound != 0) hash ^= UpperBound.GetHashCode(); if (PressureThreshold != 0) hash ^= PressureThreshold.GetHashCode(); - if (RampupRate != 0D) hash ^= RampupRate.GetHashCode(); - if (BackoffThreshold != 0D) hash ^= BackoffThreshold.GetHashCode(); - if (BackoffRate != 0D) hash ^= BackoffRate.GetHashCode(); + if (RampupRate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RampupRate); + if (BackoffThreshold != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BackoffThreshold); + if (BackoffRate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BackoffRate); if (MessagesPerResize != 0) hash ^= MessagesPerResize.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LowerBound != 0) { + output.WriteRawTag(8); + output.WriteUInt32(LowerBound); + } + if (UpperBound != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UpperBound); + } + if (PressureThreshold != 0) { + output.WriteRawTag(24); + output.WriteUInt32(PressureThreshold); + } + if (RampupRate != 0D) { + output.WriteRawTag(33); + output.WriteDouble(RampupRate); + } + if (BackoffThreshold != 0D) { + output.WriteRawTag(41); + output.WriteDouble(BackoffThreshold); + } + if (BackoffRate != 0D) { + output.WriteRawTag(49); + output.WriteDouble(BackoffRate); + } + if (MessagesPerResize != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MessagesPerResize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (LowerBound != 0) { output.WriteRawTag(8); output.WriteUInt32(LowerBound); @@ -2310,9 +3370,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(56); output.WriteUInt32(MessagesPerResize); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (LowerBound != 0) { @@ -2336,10 +3401,14 @@ public int CalculateSize() { if (MessagesPerResize != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessagesPerResize); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DefaultResizer other) { if (other == null) { return; @@ -2365,15 +3434,63 @@ public void MergeFrom(DefaultResizer other) { if (other.MessagesPerResize != 0) { MessagesPerResize = other.MessagesPerResize; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LowerBound = input.ReadUInt32(); + break; + } + case 16: { + UpperBound = input.ReadUInt32(); + break; + } + case 24: { + PressureThreshold = input.ReadUInt32(); + break; + } + case 33: { + RampupRate = input.ReadDouble(); + break; + } + case 41: { + BackoffThreshold = input.ReadDouble(); + break; + } + case 49: { + BackoffRate = input.ReadDouble(); + break; + } + case 56: { + MessagesPerResize = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { LowerBound = input.ReadUInt32(); @@ -2406,25 +3523,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class FromConfig : pb::IMessage { + internal sealed partial class FromConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FromConfig()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FromConfig() { OnConstruction(); } @@ -2432,12 +3559,15 @@ public FromConfig() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FromConfig(FromConfig other) : this() { - Resizer = other.resizer_ != null ? other.Resizer.Clone() : null; + resizer_ = other.resizer_ != null ? other.resizer_.Clone() : null; routerDispatcher_ = other.routerDispatcher_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FromConfig Clone() { return new FromConfig(this); } @@ -2446,6 +3576,7 @@ public FromConfig Clone() { public const int ResizerFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload resizer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Resizer { get { return resizer_; } set { @@ -2457,6 +3588,7 @@ public FromConfig Clone() { public const int RouterDispatcherFieldNumber = 2; private string routerDispatcher_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RouterDispatcher { get { return routerDispatcher_; } set { @@ -2465,11 +3597,13 @@ public string RouterDispatcher { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FromConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FromConfig other) { if (ReferenceEquals(other, null)) { return false; @@ -2479,24 +3613,51 @@ public bool Equals(FromConfig other) { } if (!object.Equals(Resizer, other.Resizer)) return false; if (RouterDispatcher != other.RouterDispatcher) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (resizer_ != null) hash ^= Resizer.GetHashCode(); if (RouterDispatcher.Length != 0) hash ^= RouterDispatcher.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (resizer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Resizer); + } + if (RouterDispatcher.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RouterDispatcher); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (resizer_ != null) { output.WriteRawTag(10); output.WriteMessage(Resizer); @@ -2505,9 +3666,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(RouterDispatcher); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (resizer_ != null) { @@ -2516,38 +3682,47 @@ public int CalculateSize() { if (RouterDispatcher.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RouterDispatcher); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FromConfig other) { if (other == null) { return; } if (other.resizer_ != null) { if (resizer_ == null) { - resizer_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Resizer.MergeFrom(other.Resizer); } if (other.RouterDispatcher.Length != 0) { RouterDispatcher = other.RouterDispatcher; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (resizer_ == null) { - resizer_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(resizer_); + input.ReadMessage(Resizer); break; } case 18: { @@ -2556,26 +3731,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (resizer_ == null) { + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Resizer); + break; + } + case 18: { + RouterDispatcher = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class GenericRoutingPool : pb::IMessage { + internal sealed partial class GenericRoutingPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenericRoutingPool()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GenericRoutingPool() { OnConstruction(); } @@ -2583,14 +3794,17 @@ public GenericRoutingPool() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GenericRoutingPool(GenericRoutingPool other) : this() { nrOfInstances_ = other.nrOfInstances_; routerDispatcher_ = other.routerDispatcher_; usePoolDispatcher_ = other.usePoolDispatcher_; - Resizer = other.resizer_ != null ? other.Resizer.Clone() : null; + resizer_ = other.resizer_ != null ? other.resizer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GenericRoutingPool Clone() { return new GenericRoutingPool(this); } @@ -2599,6 +3813,7 @@ public GenericRoutingPool Clone() { public const int NrOfInstancesFieldNumber = 1; private uint nrOfInstances_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NrOfInstances { get { return nrOfInstances_; } set { @@ -2610,6 +3825,7 @@ public uint NrOfInstances { public const int RouterDispatcherFieldNumber = 2; private string routerDispatcher_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RouterDispatcher { get { return routerDispatcher_; } set { @@ -2621,6 +3837,7 @@ public string RouterDispatcher { public const int UsePoolDispatcherFieldNumber = 3; private bool usePoolDispatcher_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool UsePoolDispatcher { get { return usePoolDispatcher_; } set { @@ -2632,6 +3849,7 @@ public bool UsePoolDispatcher { public const int ResizerFieldNumber = 4; private global::Akka.Remote.Serialization.Proto.Msg.Payload resizer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Resizer { get { return resizer_; } set { @@ -2640,11 +3858,13 @@ public bool UsePoolDispatcher { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GenericRoutingPool); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GenericRoutingPool other) { if (ReferenceEquals(other, null)) { return false; @@ -2656,26 +3876,61 @@ public bool Equals(GenericRoutingPool other) { if (RouterDispatcher != other.RouterDispatcher) return false; if (UsePoolDispatcher != other.UsePoolDispatcher) return false; if (!object.Equals(Resizer, other.Resizer)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (NrOfInstances != 0) hash ^= NrOfInstances.GetHashCode(); if (RouterDispatcher.Length != 0) hash ^= RouterDispatcher.GetHashCode(); if (UsePoolDispatcher != false) hash ^= UsePoolDispatcher.GetHashCode(); if (resizer_ != null) hash ^= Resizer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NrOfInstances != 0) { + output.WriteRawTag(8); + output.WriteUInt32(NrOfInstances); + } + if (RouterDispatcher.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RouterDispatcher); + } + if (UsePoolDispatcher != false) { + output.WriteRawTag(24); + output.WriteBool(UsePoolDispatcher); + } + if (resizer_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Resizer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (NrOfInstances != 0) { output.WriteRawTag(8); output.WriteUInt32(NrOfInstances); @@ -2692,9 +3947,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(Resizer); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (NrOfInstances != 0) { @@ -2709,10 +3969,14 @@ public int CalculateSize() { if (resizer_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resizer); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GenericRoutingPool other) { if (other == null) { return; @@ -2728,19 +3992,24 @@ public void MergeFrom(GenericRoutingPool other) { } if (other.resizer_ != null) { if (resizer_ == null) { - resizer_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Resizer.MergeFrom(other.Resizer); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { NrOfInstances = input.ReadUInt32(); @@ -2756,33 +4025,77 @@ public void MergeFrom(pb::CodedInputStream input) { } case 34: { if (resizer_ == null) { - resizer_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(resizer_); + input.ReadMessage(Resizer); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + NrOfInstances = input.ReadUInt32(); + break; + } + case 18: { + RouterDispatcher = input.ReadString(); + break; + } + case 24: { + UsePoolDispatcher = input.ReadBool(); + break; + } + case 34: { + if (resizer_ == null) { + Resizer = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Resizer); + break; + } + } + } + } + #endif + } - internal sealed partial class ScatterGatherPool : pb::IMessage { + internal sealed partial class ScatterGatherPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScatterGatherPool()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ScatterGatherPool() { OnConstruction(); } @@ -2790,12 +4103,15 @@ public ScatterGatherPool() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ScatterGatherPool(ScatterGatherPool other) : this() { - Generic = other.generic_ != null ? other.Generic.Clone() : null; - Within = other.within_ != null ? other.Within.Clone() : null; + generic_ = other.generic_ != null ? other.generic_.Clone() : null; + within_ = other.within_ != null ? other.within_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ScatterGatherPool Clone() { return new ScatterGatherPool(this); } @@ -2804,6 +4120,7 @@ public ScatterGatherPool Clone() { public const int GenericFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool generic_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool Generic { get { return generic_; } set { @@ -2815,6 +4132,7 @@ public ScatterGatherPool Clone() { public const int WithinFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Duration within_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Duration Within { get { return within_; } set { @@ -2823,11 +4141,13 @@ public ScatterGatherPool Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ScatterGatherPool); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ScatterGatherPool other) { if (ReferenceEquals(other, null)) { return false; @@ -2837,24 +4157,33 @@ public bool Equals(ScatterGatherPool other) { } if (!object.Equals(Generic, other.Generic)) return false; if (!object.Equals(Within, other.Within)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (generic_ != null) hash ^= Generic.GetHashCode(); if (within_ != null) hash ^= Within.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (generic_ != null) { output.WriteRawTag(10); output.WriteMessage(Generic); @@ -2863,9 +4192,32 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Within); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (generic_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Generic); + } + if (within_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Within); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (generic_ != null) { @@ -2874,72 +4226,120 @@ public int CalculateSize() { if (within_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Within); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ScatterGatherPool other) { if (other == null) { return; } if (other.generic_ != null) { if (generic_ == null) { - generic_ = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); } Generic.MergeFrom(other.Generic); } if (other.within_ != null) { if (within_ == null) { - within_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); } Within.MergeFrom(other.Within); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (generic_ == null) { + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + } + input.ReadMessage(Generic); + break; + } + case 18: { + if (within_ == null) { + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Within); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (generic_ == null) { - generic_ = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); } - input.ReadMessage(generic_); + input.ReadMessage(Generic); break; } case 18: { if (within_ == null) { - within_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); } - input.ReadMessage(within_); + input.ReadMessage(Within); break; } } } } + #endif } - internal sealed partial class TailChoppingPool : pb::IMessage { + internal sealed partial class TailChoppingPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TailChoppingPool()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TailChoppingPool() { OnConstruction(); } @@ -2947,13 +4347,16 @@ public TailChoppingPool() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TailChoppingPool(TailChoppingPool other) : this() { - Generic = other.generic_ != null ? other.Generic.Clone() : null; - Within = other.within_ != null ? other.Within.Clone() : null; - Interval = other.interval_ != null ? other.Interval.Clone() : null; + generic_ = other.generic_ != null ? other.generic_.Clone() : null; + within_ = other.within_ != null ? other.within_.Clone() : null; + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TailChoppingPool Clone() { return new TailChoppingPool(this); } @@ -2962,6 +4365,7 @@ public TailChoppingPool Clone() { public const int GenericFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool generic_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool Generic { get { return generic_; } set { @@ -2973,6 +4377,7 @@ public TailChoppingPool Clone() { public const int WithinFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Duration within_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Duration Within { get { return within_; } set { @@ -2984,6 +4389,7 @@ public TailChoppingPool Clone() { public const int IntervalFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Duration interval_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Duration Interval { get { return interval_; } set { @@ -2992,11 +4398,13 @@ public TailChoppingPool Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TailChoppingPool); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TailChoppingPool other) { if (ReferenceEquals(other, null)) { return false; @@ -3007,25 +4415,34 @@ public bool Equals(TailChoppingPool other) { if (!object.Equals(Generic, other.Generic)) return false; if (!object.Equals(Within, other.Within)) return false; if (!object.Equals(Interval, other.Interval)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (generic_ != null) hash ^= Generic.GetHashCode(); if (within_ != null) hash ^= Within.GetHashCode(); if (interval_ != null) hash ^= Interval.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (generic_ != null) { output.WriteRawTag(10); output.WriteMessage(Generic); @@ -3038,9 +4455,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Interval); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (generic_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Generic); + } + if (within_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Within); + } + if (interval_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Interval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (generic_ != null) { @@ -3052,85 +4496,140 @@ public int CalculateSize() { if (interval_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TailChoppingPool other) { if (other == null) { return; } if (other.generic_ != null) { if (generic_ == null) { - generic_ = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); } Generic.MergeFrom(other.Generic); } if (other.within_ != null) { if (within_ == null) { - within_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); } Within.MergeFrom(other.Within); } if (other.interval_ != null) { if (interval_ == null) { - interval_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Interval = new global::Google.Protobuf.WellKnownTypes.Duration(); } Interval.MergeFrom(other.Interval); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (generic_ == null) { - generic_ = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); } - input.ReadMessage(generic_); + input.ReadMessage(Generic); break; } case 18: { if (within_ == null) { - within_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); } - input.ReadMessage(within_); + input.ReadMessage(Within); break; } case 26: { if (interval_ == null) { - interval_ = new global::Google.Protobuf.WellKnownTypes.Duration(); + Interval = new global::Google.Protobuf.WellKnownTypes.Duration(); } - input.ReadMessage(interval_); + input.ReadMessage(Interval); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (generic_ == null) { + Generic = new global::Akka.Remote.Serialization.Proto.Msg.GenericRoutingPool(); + } + input.ReadMessage(Generic); + break; + } + case 18: { + if (within_ == null) { + Within = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Within); + break; + } + case 26: { + if (interval_ == null) { + Interval = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Interval); + break; + } + } + } + } + #endif + } - internal sealed partial class RemoteRouterConfig : pb::IMessage { + internal sealed partial class RemoteRouterConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteRouterConfig()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Remote.Serialization.Proto.Msg.WireFormatsReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteRouterConfig() { OnConstruction(); } @@ -3138,12 +4637,15 @@ public RemoteRouterConfig() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteRouterConfig(RemoteRouterConfig other) : this() { - Local = other.local_ != null ? other.Local.Clone() : null; + local_ = other.local_ != null ? other.local_.Clone() : null; nodes_ = other.nodes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteRouterConfig Clone() { return new RemoteRouterConfig(this); } @@ -3152,6 +4654,7 @@ public RemoteRouterConfig Clone() { public const int LocalFieldNumber = 1; private global::Akka.Remote.Serialization.Proto.Msg.Payload local_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Remote.Serialization.Proto.Msg.Payload Local { get { return local_; } set { @@ -3165,16 +4668,19 @@ public RemoteRouterConfig Clone() { = pb::FieldCodec.ForMessage(18, global::Akka.Remote.Serialization.Proto.Msg.AddressData.Parser); private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Nodes { get { return nodes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteRouterConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteRouterConfig other) { if (ReferenceEquals(other, null)) { return false; @@ -3184,68 +4690,106 @@ public bool Equals(RemoteRouterConfig other) { } if (!object.Equals(Local, other.Local)) return false; if(!nodes_.Equals(other.nodes_)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (local_ != null) hash ^= Local.GetHashCode(); hash ^= nodes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (local_ != null) { output.WriteRawTag(10); output.WriteMessage(Local); } nodes_.WriteTo(output, _repeated_nodes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (local_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Local); + } + nodes_.WriteTo(ref output, _repeated_nodes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (local_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Local); } size += nodes_.CalculateSize(_repeated_nodes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteRouterConfig other) { if (other == null) { return; } if (other.local_ != null) { if (local_ == null) { - local_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Local = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } Local.MergeFrom(other.Local); } nodes_.Add(other.nodes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (local_ == null) { - local_ = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + Local = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(local_); + input.ReadMessage(Local); break; } case 18: { @@ -3254,7 +4798,34 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (local_ == null) { + Local = new global::Akka.Remote.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Local); + break; + } + case 18: { + nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec); + break; + } + } + } } + #endif } diff --git a/src/core/Akka.Remote/Transport/DotNetty/DotNettyTransportSettings.cs b/src/core/Akka.Remote/Transport/DotNetty/DotNettyTransportSettings.cs index d680534a1b8..5c8e0753926 100644 --- a/src/core/Akka.Remote/Transport/DotNetty/DotNettyTransportSettings.cs +++ b/src/core/Akka.Remote/Transport/DotNetty/DotNettyTransportSettings.cs @@ -76,9 +76,11 @@ public static DotNettyTransportSettings Create(Config config) var batchWriterSettings = new BatchWriterSettings(config.GetConfig("batching")); + var enableSsl = config.GetBoolean("enable-ssl", false); + return new DotNettyTransportSettings( transportMode: transportMode == "tcp" ? TransportMode.Tcp : TransportMode.Udp, - enableSsl: config.GetBoolean("enable-ssl", false), + enableSsl: enableSsl, connectTimeout: config.GetTimeSpan("connection-timeout", TimeSpan.FromSeconds(15)), hostname: host, publicHostname: !string.IsNullOrEmpty(publicHost) ? publicHost : host, @@ -87,7 +89,7 @@ public static DotNettyTransportSettings Create(Config config) serverSocketWorkerPoolSize: ComputeWorkerPoolSize(config.GetConfig("server-socket-worker-pool")), clientSocketWorkerPoolSize: ComputeWorkerPoolSize(config.GetConfig("client-socket-worker-pool")), maxFrameSize: ToNullableInt(config.GetByteSize("maximum-frame-size", null)) ?? 128000, - ssl: config.HasPath("ssl") ? SslSettings.Create(config.GetConfig("ssl")) : SslSettings.Empty, + ssl: config.HasPath("ssl") && enableSsl ? SslSettings.Create(config.GetConfig("ssl")) : SslSettings.Empty, dnsUseIpv6: config.GetBoolean("dns-use-ipv6", false), tcpReuseAddr: ResolveTcpReuseAddrOption(config.GetString("tcp-reuse-addr", "off-for-windows")), tcpKeepAlive: config.GetBoolean("tcp-keepalive", true), diff --git a/src/core/Akka.Streams.TestKit.Tests/StreamTestDefaultMailbox.cs b/src/core/Akka.Streams.TestKit.Tests/StreamTestDefaultMailbox.cs index 8df87993a89..1e1197182ab 100644 --- a/src/core/Akka.Streams.TestKit.Tests/StreamTestDefaultMailbox.cs +++ b/src/core/Akka.Streams.TestKit.Tests/StreamTestDefaultMailbox.cs @@ -24,6 +24,8 @@ namespace Akka.Streams.TestKit.Tests [InternalApi] public sealed class StreamTestDefaultMailbox : MailboxType, IProducesMessageQueue { + public static Config DefaultConfig => + ConfigurationFactory.FromResource("Akka.Streams.TestKit.Tests.reference.conf"); public override IMessageQueue Create(IActorRef owner, ActorSystem system) { diff --git a/src/core/Akka.Streams.Tests/Dsl/AsyncEnumerableSpec.cs b/src/core/Akka.Streams.Tests/Dsl/AsyncEnumerableSpec.cs index 74ca3f8b3d8..10a1a0a83f7 100644 --- a/src/core/Akka.Streams.Tests/Dsl/AsyncEnumerableSpec.cs +++ b/src/core/Akka.Streams.Tests/Dsl/AsyncEnumerableSpec.cs @@ -10,14 +10,21 @@ using System.Threading; using System.Threading.Tasks; using Akka.Pattern; -using Akka.Routing; using Akka.Streams.Dsl; using Akka.Streams.TestKit; using Akka.TestKit; using FluentAssertions; -using Nito.AsyncEx.Synchronous; using Xunit; using Xunit.Abstractions; +using System.Collections.Generic; +using Akka.Actor; +using Akka.Streams.Actors; +using Akka.Streams.TestKit.Tests; +using Akka.Streams.Tests.Actor; +using Reactive.Streams; +using System.Runtime.CompilerServices; +using Akka.Util; +using FluentAssertions.Extensions; namespace Akka.Streams.Tests.Dsl { @@ -25,14 +32,19 @@ namespace Akka.Streams.Tests.Dsl public class AsyncEnumerableSpec : AkkaSpec { private ActorMaterializer Materializer { get; } - - public AsyncEnumerableSpec(ITestOutputHelper helper) : base(helper) + private ITestOutputHelper _helper; + public AsyncEnumerableSpec(ITestOutputHelper helper) : base( + AkkaSpecConfig.WithFallback(StreamTestDefaultMailbox.DefaultConfig), + helper) { + _helper = helper; var settings = ActorMaterializerSettings.Create(Sys).WithInputBuffer(2, 16); Materializer = ActorMaterializer.Create(Sys, settings); } - [Fact] public async Task RunAsAsyncEnumerable_Uses_CancellationToken() + + [Fact] + public async Task RunAsAsyncEnumerable_Uses_CancellationToken() { var input = Enumerable.Range(1, 6).ToList(); @@ -56,7 +68,7 @@ [Fact] public async Task RunAsAsyncEnumerable_Uses_CancellationToken() caught.ShouldBeTrue(); } - + [Fact] public async Task RunAsAsyncEnumerable_must_return_an_IAsyncEnumerableT_from_a_Source() { @@ -68,7 +80,7 @@ public async Task RunAsAsyncEnumerable_must_return_an_IAsyncEnumerableT_from_a_S (output[0] == a).ShouldBeTrue("Did not get elements in order!"); output = output.Skip(1).ToArray(); } - output.Length.ShouldBe(0,"Did not receive all elements!"); + output.Length.ShouldBe(0, "Did not receive all elements!"); } [Fact] @@ -82,7 +94,7 @@ public async Task RunAsAsyncEnumerable_must_allow_multiple_enumerations() (output[0] == a).ShouldBeTrue("Did not get elements in order!"); output = output.Skip(1).ToArray(); } - output.Length.ShouldBe(0,"Did not receive all elements!"); + output.Length.ShouldBe(0, "Did not receive all elements!"); output = input.ToArray(); await foreach (var a in asyncEnumerable) @@ -90,7 +102,7 @@ public async Task RunAsAsyncEnumerable_must_allow_multiple_enumerations() (output[0] == a).ShouldBeTrue("Did not get elements in order!"); output = output.Skip(1).ToArray(); } - output.Length.ShouldBe(0,"Did not receive all elements in second enumeration!!"); + output.Length.ShouldBe(0, "Did not receive all elements in second enumeration!!"); } @@ -101,7 +113,7 @@ public async Task RunAsAsyncEnumerable_Throws_on_Abrupt_Stream_termination() var probe = this.CreatePublisherProbe(); var task = Source.FromPublisher(probe).RunAsAsyncEnumerable(materializer); - var a = Task.Run( async () => + var a = Task.Run(async () => { await foreach (var notused in task) { @@ -112,19 +124,20 @@ public async Task RunAsAsyncEnumerable_Throws_on_Abrupt_Stream_termination() //we want to send messages so we aren't just waiting forever. probe.SendNext(1); probe.SendNext(2); - bool thrown = false; + var thrown = false; try { await a; } - catch (StreamDetachedException e) - { - thrown = true; - } + catch (StreamDetachedException e) + { + thrown = true; + } catch (AbruptTerminationException e) { thrown = true; } + thrown.ShouldBeTrue(); } @@ -140,16 +153,128 @@ async Task ShouldThrow() { await foreach (var a in task) { - } } await Assert.ThrowsAsync(ShouldThrow); } - + + [Fact] + public void + AsyncEnumerableSource_Must_Complete_Immediately_With_No_elements_When_An_Empty_IAsyncEnumerable_Is_Passed_In() + { + IAsyncEnumerable Range() => RangeAsync(0, 0); + var subscriber = this.CreateManualSubscriberProbe(); + + Source.From(Range) + .RunWith(Sink.FromSubscriber(subscriber), Materializer); + + var subscription = subscriber.ExpectSubscription(); + subscription.Request(100); + subscriber.ExpectComplete(); + } + + [Fact] + public void AsyncEnumerableSource_Must_Process_All_Elements() + { + IAsyncEnumerable Range() => RangeAsync(0, 100); + var subscriber = this.CreateManualSubscriberProbe(); + + Source.From(Range) + .RunWith(Sink.FromSubscriber(subscriber), Materializer); + + var subscription = subscriber.ExpectSubscription(); + subscription.Request(101); + + subscriber.ExpectNextN(Enumerable.Range(0, 100)); + + subscriber.ExpectComplete(); + } + + [Fact] + public void AsyncEnumerableSource_Must_Process_Source_That_Immediately_Throws() + { + IAsyncEnumerable Range() => ThrowingRangeAsync(0, 100, 50); + var subscriber = this.CreateManualSubscriberProbe(); + + Source.From(Range) + .RunWith(Sink.FromSubscriber(subscriber), Materializer); + + var subscription = subscriber.ExpectSubscription(); + subscription.Request(101); + + subscriber.ExpectNextN(Enumerable.Range(0, 50)); + + var exception = subscriber.ExpectError(); + + // Exception should be automatically unrolled, this SHOULD NOT be AggregateException + exception.Should().BeOfType(); + exception.Message.Should().Be("BOOM!"); + } + + [Fact] + public async Task AsyncEnumerableSource_Must_Cancel_Running_Source_If_Downstream_Completes() + { + var latch = new AtomicBoolean(); + IAsyncEnumerable Range() => ProbeableRangeAsync(0, 100, latch); + var subscriber = this.CreateManualSubscriberProbe(); + + Source.From(Range) + .RunWith(Sink.FromSubscriber(subscriber), Materializer); + + var subscription = subscriber.ExpectSubscription(); + subscription.Request(50); + subscriber.ExpectNextN(Enumerable.Range(0, 50)); + subscription.Cancel(); + + // The cancellation token inside the IAsyncEnumerable should be cancelled + await WithinAsync(3.Seconds(), async () => latch.Value); + } + + private static async IAsyncEnumerable RangeAsync(int start, int count, + [EnumeratorCancellation] CancellationToken token = default) + { + foreach (var i in Enumerable.Range(start, count)) + { + await Task.Delay(10, token); + if(token.IsCancellationRequested) + yield break; + yield return i; + } + } + + private static async IAsyncEnumerable ThrowingRangeAsync(int start, int count, int throwAt, + [EnumeratorCancellation] CancellationToken token = default) + { + foreach (var i in Enumerable.Range(start, count)) + { + if(token.IsCancellationRequested) + yield break; + + if (i == throwAt) + throw new TestException("BOOM!"); + + yield return i; + } + } + + private static async IAsyncEnumerable ProbeableRangeAsync(int start, int count, AtomicBoolean latch, + [EnumeratorCancellation] CancellationToken token = default) + { + token.Register(() => + { + latch.GetAndSet(true); + }); + foreach (var i in Enumerable.Range(start, count)) + { + if(token.IsCancellationRequested) + yield break; + + yield return i; + } + } } - #else #endif -} +} \ No newline at end of file diff --git a/src/core/Akka.Streams/Dsl/Source.cs b/src/core/Akka.Streams/Dsl/Source.cs index 1173114c380..f6269ed3626 100644 --- a/src/core/Akka.Streams/Dsl/Source.cs +++ b/src/core/Akka.Streams/Dsl/Source.cs @@ -525,6 +525,22 @@ public static Source Cycle(Func> enumeratorFactory public static Source From(IEnumerable enumerable) => Single(enumerable).SelectMany(x => x).WithAttributes(DefaultAttributes.EnumerableSource); + + /// + /// Helper to create from . + /// Example usage: Source.From(Enumerable.Range(1, 10)) + /// + /// Starts a new from the given . This is like starting from an + /// Enumerator, but every Subscriber directly attached to the Publisher of this + /// stream will see an individual flow of elements (always starting from the + /// beginning) regardless of when they subscribed. + /// + /// TBD + /// TBD + /// TBD + public static Source From(Func> asyncEnumerable) + => FromGraph(new AsyncEnumerable(asyncEnumerable)).WithAttributes(DefaultAttributes.EnumerableSource); + /// /// Create a with one element. /// Every connected of this stream will see an individual stream consisting of one element. diff --git a/src/core/Akka.Streams/Implementation/Fusing/Ops.cs b/src/core/Akka.Streams/Implementation/Fusing/Ops.cs index 70933b45109..d1122b97802 100644 --- a/src/core/Akka.Streams/Implementation/Fusing/Ops.cs +++ b/src/core/Akka.Streams/Implementation/Fusing/Ops.cs @@ -9,6 +9,8 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; +using System.Runtime.CompilerServices; +using System.Threading; using System.Threading.Tasks; using Akka.Annotations; using Akka.Event; @@ -3701,7 +3703,161 @@ public RecoverWith(Func, TMat>> partialFunct /// public override string ToString() => "RecoverWith"; } + /// + /// INTERNAL API + /// + /// The type of IAsyncEnumerable. + /// + //https://github.com/Horusiath/Akka.Persistence.Pulsar/blob/master/Akka.Persistence.Pulsar/AsyncEnumerableSource.cs + [InternalApi] + public sealed class AsyncEnumerable : GraphStage> + { + #region internal classes + + private sealed class Logic : OutGraphStageLogic + { + private readonly IAsyncEnumerable _enumerable; + private readonly Outlet _outlet; + private readonly Action _onSuccess; + private readonly Action _onFailure; + private readonly Action _onComplete; + + private CancellationTokenSource _completionCts; + private IAsyncEnumerator _enumerator; + + public Logic(SourceShape shape, IAsyncEnumerable enumerable) : base(shape) + { + _enumerable = enumerable; + _outlet = shape.Outlet; + _onSuccess = GetAsyncCallback(OnSuccess); + _onFailure = GetAsyncCallback(OnFailure); + _onComplete = GetAsyncCallback(OnComplete); + + SetHandler(_outlet, this); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void OnComplete() => CompleteStage(); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void OnFailure(Exception exception) => FailStage(exception); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void OnSuccess(T element) => Push(_outlet, element); + + public override void PreStart() + { + base.PreStart(); + _completionCts = new CancellationTokenSource(); + _enumerator = _enumerable.GetAsyncEnumerator(_completionCts.Token); + } + + public override void OnPull() + { + var vtask = _enumerator.MoveNextAsync(); + if (vtask.IsCompletedSuccessfully) + { + // When MoveNextAsync returned immediately, we don't need to await. + // We can use fast path instead. + if (vtask.Result) + { + // if result is true, it means we got an element. Push it downstream. + Push(_outlet, _enumerator.Current); + } + else + { + // if result is false, it means enumerator was closed. Complete stage in that case. + CompleteStage(); + } + } + else if (vtask.IsCompleted) // IsCompleted covers Faulted, Cancelled, and RanToCompletion async state + { + // vtask will always contains an exception because we know we're not successful and always throws + try + { + // This does not block because we know that the task already completed + // Using GetAwaiter().GetResult() to automatically unwraps AggregateException inner exception + vtask.GetAwaiter().GetResult(); + } + catch (Exception ex) + { + FailStage(ex); + return; + } + throw new InvalidOperationException("Should never reach this code"); + } + else + { + async Task ProcessTask() + { + // Since this Action is used as task continuation, we cannot safely call corresponding + // OnSuccess/OnFailure/OnComplete methods directly. We need to do that via async callbacks. + try + { + var completed = await vtask.ConfigureAwait(false); + if (completed) + _onSuccess(_enumerator.Current); + else + _onComplete(); + } + catch (Exception ex) + { + _onFailure(ex); + } + } + +#pragma warning disable CS4014 + ProcessTask(); +#pragma warning restore CS4014 + } + } + + public override void OnDownstreamFinish() + { + _completionCts.Cancel(); + _completionCts.Dispose(); + + try + { + _enumerator.DisposeAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) + { + Log.Warning(ex, "Failed to dispose IAsyncEnumerator asynchronously"); + } + finally + { + CompleteStage(); + base.OnDownstreamFinish(); + } + base.OnDownstreamFinish(); + } + + } + + #endregion + private readonly Outlet _outlet = new Outlet("EnumerableSource.out"); + private readonly Func> _factory; + + public AsyncEnumerable(Func> factory) + { + _factory = factory; + Shape = new SourceShape(_outlet); + } + + public override SourceShape Shape { get; } + protected override GraphStageLogic CreateLogic(Attributes inheritedAttributes) => new Logic(Shape, _factory()); + + protected override Attributes InitialAttributes { get; } = DefaultAttributes.EnumerableSource; + + /// + /// Returns a that represents this instance. + /// + /// + /// A that represents this instance. + /// + public override string ToString() => "EnumerableSource"; + } /// /// INTERNAL API /// diff --git a/src/core/Akka.Streams/Serialization/Proto/StreamRefMessages.g.cs b/src/core/Akka.Streams/Serialization/Proto/StreamRefMessages.g.cs index 3854e88d887..bcda8bf845a 100644 --- a/src/core/Akka.Streams/Serialization/Proto/StreamRefMessages.g.cs +++ b/src/core/Akka.Streams/Serialization/Proto/StreamRefMessages.g.cs @@ -1,6 +1,8 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: StreamRefMessages.proto -#pragma warning disable 1591, 0612, 3021 +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StreamRefMessages.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -43,39 +45,48 @@ static StreamRefMessagesReflection() { "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.EventType), global::Akka.Streams.Serialization.Proto.Msg.EventType.Parser, new[]{ "TypeName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SinkRef), global::Akka.Streams.Serialization.Proto.Msg.SinkRef.Parser, new[]{ "TargetRef", "EventType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SourceRef), global::Akka.Streams.Serialization.Proto.Msg.SourceRef.Parser, new[]{ "OriginRef", "EventType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.ActorRef), global::Akka.Streams.Serialization.Proto.Msg.ActorRef.Parser, new[]{ "Path" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.Payload), global::Akka.Streams.Serialization.Proto.Msg.Payload.Parser, new[]{ "EnclosedMessage", "SerializerId", "MessageManifest" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.OnSubscribeHandshake), global::Akka.Streams.Serialization.Proto.Msg.OnSubscribeHandshake.Parser, new[]{ "TargetRef" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.CumulativeDemand), global::Akka.Streams.Serialization.Proto.Msg.CumulativeDemand.Parser, new[]{ "SeqNr" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SequencedOnNext), global::Akka.Streams.Serialization.Proto.Msg.SequencedOnNext.Parser, new[]{ "SeqNr", "Payload" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamFailure), global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamFailure.Parser, new[]{ "Cause" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamCompleted), global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamCompleted.Parser, new[]{ "SeqNr" }, null, null, null) + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.EventType), global::Akka.Streams.Serialization.Proto.Msg.EventType.Parser, new[]{ "TypeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SinkRef), global::Akka.Streams.Serialization.Proto.Msg.SinkRef.Parser, new[]{ "TargetRef", "EventType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SourceRef), global::Akka.Streams.Serialization.Proto.Msg.SourceRef.Parser, new[]{ "OriginRef", "EventType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.ActorRef), global::Akka.Streams.Serialization.Proto.Msg.ActorRef.Parser, new[]{ "Path" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.Payload), global::Akka.Streams.Serialization.Proto.Msg.Payload.Parser, new[]{ "EnclosedMessage", "SerializerId", "MessageManifest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.OnSubscribeHandshake), global::Akka.Streams.Serialization.Proto.Msg.OnSubscribeHandshake.Parser, new[]{ "TargetRef" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.CumulativeDemand), global::Akka.Streams.Serialization.Proto.Msg.CumulativeDemand.Parser, new[]{ "SeqNr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.SequencedOnNext), global::Akka.Streams.Serialization.Proto.Msg.SequencedOnNext.Parser, new[]{ "SeqNr", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamFailure), global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamFailure.Parser, new[]{ "Cause" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamCompleted), global::Akka.Streams.Serialization.Proto.Msg.RemoteStreamCompleted.Parser, new[]{ "SeqNr" }, null, null, null, null) })); } #endregion } #region Messages - internal sealed partial class EventType : pb::IMessage { + internal sealed partial class EventType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventType()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventType() { OnConstruction(); } @@ -83,11 +94,14 @@ public EventType() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventType(EventType other) : this() { typeName_ = other.typeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventType Clone() { return new EventType(this); } @@ -96,6 +110,7 @@ public EventType Clone() { public const int TypeNameFieldNumber = 1; private string typeName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TypeName { get { return typeName_; } set { @@ -104,11 +119,13 @@ public string TypeName { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EventType); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EventType other) { if (ReferenceEquals(other, null)) { return false; @@ -117,39 +134,71 @@ public bool Equals(EventType other) { return true; } if (TypeName != other.TypeName) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TypeName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TypeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (TypeName.Length != 0) { output.WriteRawTag(10); output.WriteString(TypeName); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (TypeName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EventType other) { if (other == null) { return; @@ -157,15 +206,20 @@ public void MergeFrom(EventType other) { if (other.TypeName.Length != 0) { TypeName = other.TypeName; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { TypeName = input.ReadString(); @@ -173,26 +227,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TypeName = input.ReadString(); + break; + } + } + } + } + #endif + } - internal sealed partial class SinkRef : pb::IMessage { + internal sealed partial class SinkRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SinkRef()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinkRef() { OnConstruction(); } @@ -200,12 +283,15 @@ public SinkRef() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinkRef(SinkRef other) : this() { - TargetRef = other.targetRef_ != null ? other.TargetRef.Clone() : null; - EventType = other.eventType_ != null ? other.EventType.Clone() : null; + targetRef_ = other.targetRef_ != null ? other.targetRef_.Clone() : null; + eventType_ = other.eventType_ != null ? other.eventType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinkRef Clone() { return new SinkRef(this); } @@ -214,6 +300,7 @@ public SinkRef Clone() { public const int TargetRefFieldNumber = 1; private global::Akka.Streams.Serialization.Proto.Msg.ActorRef targetRef_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.ActorRef TargetRef { get { return targetRef_; } set { @@ -225,6 +312,7 @@ public SinkRef Clone() { public const int EventTypeFieldNumber = 2; private global::Akka.Streams.Serialization.Proto.Msg.EventType eventType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.EventType EventType { get { return eventType_; } set { @@ -233,11 +321,13 @@ public SinkRef Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SinkRef); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SinkRef other) { if (ReferenceEquals(other, null)) { return false; @@ -247,24 +337,51 @@ public bool Equals(SinkRef other) { } if (!object.Equals(TargetRef, other.TargetRef)) return false; if (!object.Equals(EventType, other.EventType)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (targetRef_ != null) hash ^= TargetRef.GetHashCode(); if (eventType_ != null) hash ^= EventType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (targetRef_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TargetRef); + } + if (eventType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EventType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (targetRef_ != null) { output.WriteRawTag(10); output.WriteMessage(TargetRef); @@ -273,9 +390,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(EventType); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (targetRef_ != null) { @@ -284,72 +406,120 @@ public int CalculateSize() { if (eventType_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventType); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SinkRef other) { if (other == null) { return; } if (other.targetRef_ != null) { if (targetRef_ == null) { - targetRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } TargetRef.MergeFrom(other.TargetRef); } if (other.eventType_ != null) { if (eventType_ == null) { - eventType_ = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); } EventType.MergeFrom(other.EventType); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (targetRef_ == null) { - targetRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } - input.ReadMessage(targetRef_); + input.ReadMessage(TargetRef); break; } case 18: { if (eventType_ == null) { - eventType_ = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); } - input.ReadMessage(eventType_); + input.ReadMessage(EventType); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (targetRef_ == null) { + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + } + input.ReadMessage(TargetRef); + break; + } + case 18: { + if (eventType_ == null) { + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + } + input.ReadMessage(EventType); + break; + } + } + } + } + #endif + } - internal sealed partial class SourceRef : pb::IMessage { + internal sealed partial class SourceRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SourceRef()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SourceRef() { OnConstruction(); } @@ -357,12 +527,15 @@ public SourceRef() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SourceRef(SourceRef other) : this() { - OriginRef = other.originRef_ != null ? other.OriginRef.Clone() : null; - EventType = other.eventType_ != null ? other.EventType.Clone() : null; + originRef_ = other.originRef_ != null ? other.originRef_.Clone() : null; + eventType_ = other.eventType_ != null ? other.eventType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SourceRef Clone() { return new SourceRef(this); } @@ -371,6 +544,7 @@ public SourceRef Clone() { public const int OriginRefFieldNumber = 1; private global::Akka.Streams.Serialization.Proto.Msg.ActorRef originRef_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.ActorRef OriginRef { get { return originRef_; } set { @@ -382,6 +556,7 @@ public SourceRef Clone() { public const int EventTypeFieldNumber = 2; private global::Akka.Streams.Serialization.Proto.Msg.EventType eventType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.EventType EventType { get { return eventType_; } set { @@ -390,11 +565,13 @@ public SourceRef Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SourceRef); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SourceRef other) { if (ReferenceEquals(other, null)) { return false; @@ -404,24 +581,51 @@ public bool Equals(SourceRef other) { } if (!object.Equals(OriginRef, other.OriginRef)) return false; if (!object.Equals(EventType, other.EventType)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (originRef_ != null) hash ^= OriginRef.GetHashCode(); if (eventType_ != null) hash ^= EventType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originRef_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginRef); + } + if (eventType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EventType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (originRef_ != null) { output.WriteRawTag(10); output.WriteMessage(OriginRef); @@ -430,9 +634,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(EventType); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (originRef_ != null) { @@ -441,72 +650,120 @@ public int CalculateSize() { if (eventType_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventType); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SourceRef other) { if (other == null) { return; } if (other.originRef_ != null) { if (originRef_ == null) { - originRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + OriginRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } OriginRef.MergeFrom(other.OriginRef); } if (other.eventType_ != null) { if (eventType_ == null) { - eventType_ = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); } EventType.MergeFrom(other.EventType); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (originRef_ == null) { - originRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + OriginRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } - input.ReadMessage(originRef_); + input.ReadMessage(OriginRef); break; } case 18: { if (eventType_ == null) { - eventType_ = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); } - input.ReadMessage(eventType_); + input.ReadMessage(EventType); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originRef_ == null) { + OriginRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + } + input.ReadMessage(OriginRef); + break; + } + case 18: { + if (eventType_ == null) { + EventType = new global::Akka.Streams.Serialization.Proto.Msg.EventType(); + } + input.ReadMessage(EventType); + break; + } + } + } + } + #endif + } - internal sealed partial class ActorRef : pb::IMessage { + internal sealed partial class ActorRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActorRef()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRef() { OnConstruction(); } @@ -514,11 +771,14 @@ public ActorRef() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRef(ActorRef other) : this() { path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActorRef Clone() { return new ActorRef(this); } @@ -527,6 +787,7 @@ public ActorRef Clone() { public const int PathFieldNumber = 1; private string path_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { @@ -535,11 +796,13 @@ public string Path { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActorRef); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActorRef other) { if (ReferenceEquals(other, null)) { return false; @@ -548,39 +811,71 @@ public bool Equals(ActorRef other) { return true; } if (Path != other.Path) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActorRef other) { if (other == null) { return; @@ -588,15 +883,39 @@ public void MergeFrom(ActorRef other) { if (other.Path.Length != 0) { Path = other.Path; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); @@ -605,25 +924,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class Payload : pb::IMessage { + internal sealed partial class Payload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Payload()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload() { OnConstruction(); } @@ -631,13 +960,16 @@ public Payload() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload(Payload other) : this() { enclosedMessage_ = other.enclosedMessage_; serializerId_ = other.serializerId_; messageManifest_ = other.messageManifest_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload Clone() { return new Payload(this); } @@ -646,6 +978,7 @@ public Payload Clone() { public const int EnclosedMessageFieldNumber = 1; private pb::ByteString enclosedMessage_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString EnclosedMessage { get { return enclosedMessage_; } set { @@ -657,6 +990,7 @@ public Payload Clone() { public const int SerializerIdFieldNumber = 2; private int serializerId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SerializerId { get { return serializerId_; } set { @@ -668,6 +1002,7 @@ public int SerializerId { public const int MessageManifestFieldNumber = 3; private pb::ByteString messageManifest_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString MessageManifest { get { return messageManifest_; } set { @@ -676,11 +1011,13 @@ public int SerializerId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Payload); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Payload other) { if (ReferenceEquals(other, null)) { return false; @@ -691,25 +1028,34 @@ public bool Equals(Payload other) { if (EnclosedMessage != other.EnclosedMessage) return false; if (SerializerId != other.SerializerId) return false; if (MessageManifest != other.MessageManifest) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (EnclosedMessage.Length != 0) hash ^= EnclosedMessage.GetHashCode(); if (SerializerId != 0) hash ^= SerializerId.GetHashCode(); if (MessageManifest.Length != 0) hash ^= MessageManifest.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (EnclosedMessage.Length != 0) { output.WriteRawTag(10); output.WriteBytes(EnclosedMessage); @@ -722,9 +1068,36 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteBytes(MessageManifest); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EnclosedMessage.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(EnclosedMessage); + } + if (SerializerId != 0) { + output.WriteRawTag(16); + output.WriteInt32(SerializerId); + } + if (MessageManifest.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(MessageManifest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (EnclosedMessage.Length != 0) { @@ -736,10 +1109,14 @@ public int CalculateSize() { if (MessageManifest.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(MessageManifest); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Payload other) { if (other == null) { return; @@ -753,15 +1130,47 @@ public void MergeFrom(Payload other) { if (other.MessageManifest.Length != 0) { MessageManifest = other.MessageManifest; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + EnclosedMessage = input.ReadBytes(); + break; + } + case 16: { + SerializerId = input.ReadInt32(); + break; + } + case 26: { + MessageManifest = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { EnclosedMessage = input.ReadBytes(); @@ -778,25 +1187,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class OnSubscribeHandshake : pb::IMessage { + internal sealed partial class OnSubscribeHandshake : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnSubscribeHandshake()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OnSubscribeHandshake() { OnConstruction(); } @@ -804,11 +1223,14 @@ public OnSubscribeHandshake() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OnSubscribeHandshake(OnSubscribeHandshake other) : this() { - TargetRef = other.targetRef_ != null ? other.TargetRef.Clone() : null; + targetRef_ = other.targetRef_ != null ? other.targetRef_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OnSubscribeHandshake Clone() { return new OnSubscribeHandshake(this); } @@ -817,6 +1239,7 @@ public OnSubscribeHandshake Clone() { public const int TargetRefFieldNumber = 1; private global::Akka.Streams.Serialization.Proto.Msg.ActorRef targetRef_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.ActorRef TargetRef { get { return targetRef_; } set { @@ -825,11 +1248,13 @@ public OnSubscribeHandshake Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OnSubscribeHandshake); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OnSubscribeHandshake other) { if (ReferenceEquals(other, null)) { return false; @@ -838,88 +1263,157 @@ public bool Equals(OnSubscribeHandshake other) { return true; } if (!object.Equals(TargetRef, other.TargetRef)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (targetRef_ != null) hash ^= TargetRef.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (targetRef_ != null) { output.WriteRawTag(10); output.WriteMessage(TargetRef); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (targetRef_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TargetRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (targetRef_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRef); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OnSubscribeHandshake other) { if (other == null) { return; } if (other.targetRef_ != null) { if (targetRef_ == null) { - targetRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } TargetRef.MergeFrom(other.TargetRef); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (targetRef_ == null) { + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + } + input.ReadMessage(TargetRef); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (targetRef_ == null) { - targetRef_ = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); + TargetRef = new global::Akka.Streams.Serialization.Proto.Msg.ActorRef(); } - input.ReadMessage(targetRef_); + input.ReadMessage(TargetRef); break; } } } } + #endif } - internal sealed partial class CumulativeDemand : pb::IMessage { + internal sealed partial class CumulativeDemand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CumulativeDemand()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CumulativeDemand() { OnConstruction(); } @@ -927,11 +1421,14 @@ public CumulativeDemand() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CumulativeDemand(CumulativeDemand other) : this() { seqNr_ = other.seqNr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CumulativeDemand Clone() { return new CumulativeDemand(this); } @@ -940,6 +1437,7 @@ public CumulativeDemand Clone() { public const int SeqNrFieldNumber = 1; private long seqNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SeqNr { get { return seqNr_; } set { @@ -948,11 +1446,13 @@ public long SeqNr { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CumulativeDemand); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CumulativeDemand other) { if (ReferenceEquals(other, null)) { return false; @@ -961,39 +1461,71 @@ public bool Equals(CumulativeDemand other) { return true; } if (SeqNr != other.SeqNr) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SeqNr != 0L) hash ^= SeqNr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (SeqNr != 0L) { output.WriteRawTag(8); output.WriteInt64(SeqNr); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SeqNr != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SeqNr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SeqNr != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(SeqNr); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CumulativeDemand other) { if (other == null) { return; @@ -1001,15 +1533,20 @@ public void MergeFrom(CumulativeDemand other) { if (other.SeqNr != 0L) { SeqNr = other.SeqNr; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { SeqNr = input.ReadInt64(); @@ -1017,26 +1554,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SeqNr = input.ReadInt64(); + break; + } + } + } + } + #endif + } - internal sealed partial class SequencedOnNext : pb::IMessage { + internal sealed partial class SequencedOnNext : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SequencedOnNext()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequencedOnNext() { OnConstruction(); } @@ -1044,12 +1610,15 @@ public SequencedOnNext() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequencedOnNext(SequencedOnNext other) : this() { seqNr_ = other.seqNr_; - Payload = other.payload_ != null ? other.Payload.Clone() : null; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequencedOnNext Clone() { return new SequencedOnNext(this); } @@ -1058,6 +1627,7 @@ public SequencedOnNext Clone() { public const int SeqNrFieldNumber = 1; private long seqNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SeqNr { get { return seqNr_; } set { @@ -1069,6 +1639,7 @@ public long SeqNr { public const int PayloadFieldNumber = 2; private global::Akka.Streams.Serialization.Proto.Msg.Payload payload_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Akka.Streams.Serialization.Proto.Msg.Payload Payload { get { return payload_; } set { @@ -1077,11 +1648,13 @@ public long SeqNr { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SequencedOnNext); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SequencedOnNext other) { if (ReferenceEquals(other, null)) { return false; @@ -1091,24 +1664,51 @@ public bool Equals(SequencedOnNext other) { } if (SeqNr != other.SeqNr) return false; if (!object.Equals(Payload, other.Payload)) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SeqNr != 0L) hash ^= SeqNr.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SeqNr != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SeqNr); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (SeqNr != 0L) { output.WriteRawTag(8); output.WriteInt64(SeqNr); @@ -1117,9 +1717,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Payload); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SeqNr != 0L) { @@ -1128,10 +1733,14 @@ public int CalculateSize() { if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SequencedOnNext other) { if (other == null) { return; @@ -1141,19 +1750,24 @@ public void MergeFrom(SequencedOnNext other) { } if (other.payload_ != null) { if (payload_ == null) { - payload_ = new global::Akka.Streams.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Streams.Serialization.Proto.Msg.Payload(); } Payload.MergeFrom(other.Payload); } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { SeqNr = input.ReadInt64(); @@ -1161,33 +1775,69 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (payload_ == null) { - payload_ = new global::Akka.Streams.Serialization.Proto.Msg.Payload(); + Payload = new global::Akka.Streams.Serialization.Proto.Msg.Payload(); } - input.ReadMessage(payload_); + input.ReadMessage(Payload); break; } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SeqNr = input.ReadInt64(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::Akka.Streams.Serialization.Proto.Msg.Payload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + } - internal sealed partial class RemoteStreamFailure : pb::IMessage { + internal sealed partial class RemoteStreamFailure : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteStreamFailure()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamFailure() { OnConstruction(); } @@ -1195,11 +1845,14 @@ public RemoteStreamFailure() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamFailure(RemoteStreamFailure other) : this() { cause_ = other.cause_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamFailure Clone() { return new RemoteStreamFailure(this); } @@ -1208,6 +1861,7 @@ public RemoteStreamFailure Clone() { public const int CauseFieldNumber = 1; private pb::ByteString cause_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString Cause { get { return cause_; } set { @@ -1216,11 +1870,13 @@ public RemoteStreamFailure Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteStreamFailure); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteStreamFailure other) { if (ReferenceEquals(other, null)) { return false; @@ -1229,39 +1885,71 @@ public bool Equals(RemoteStreamFailure other) { return true; } if (Cause != other.Cause) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Cause.Length != 0) hash ^= Cause.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Cause.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Cause); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Cause.Length != 0) { output.WriteRawTag(10); output.WriteBytes(Cause); } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Cause.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Cause); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteStreamFailure other) { if (other == null) { return; @@ -1269,15 +1957,39 @@ public void MergeFrom(RemoteStreamFailure other) { if (other.Cause.Length != 0) { Cause = other.Cause; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Cause = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Cause = input.ReadBytes(); @@ -1286,25 +1998,35 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - internal sealed partial class RemoteStreamCompleted : pb::IMessage { + internal sealed partial class RemoteStreamCompleted : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteStreamCompleted()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Akka.Streams.Serialization.Proto.Msg.StreamRefMessagesReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamCompleted() { OnConstruction(); } @@ -1312,11 +2034,14 @@ public RemoteStreamCompleted() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamCompleted(RemoteStreamCompleted other) : this() { seqNr_ = other.seqNr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteStreamCompleted Clone() { return new RemoteStreamCompleted(this); } @@ -1325,6 +2050,7 @@ public RemoteStreamCompleted Clone() { public const int SeqNrFieldNumber = 1; private long seqNr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long SeqNr { get { return seqNr_; } set { @@ -1333,11 +2059,13 @@ public long SeqNr { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoteStreamCompleted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoteStreamCompleted other) { if (ReferenceEquals(other, null)) { return false; @@ -1346,39 +2074,71 @@ public bool Equals(RemoteStreamCompleted other) { return true; } if (SeqNr != other.SeqNr) return false; - return true; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (SeqNr != 0L) hash ^= SeqNr.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (SeqNr != 0L) { output.WriteRawTag(8); output.WriteInt64(SeqNr); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SeqNr != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SeqNr); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SeqNr != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(SeqNr); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoteStreamCompleted other) { if (other == null) { return; @@ -1386,15 +2146,39 @@ public void MergeFrom(RemoteStreamCompleted other) { if (other.SeqNr != 0L) { SeqNr = other.SeqNr; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SeqNr = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - input.SkipLastField(); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { SeqNr = input.ReadInt64(); @@ -1403,6 +2187,7 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } diff --git a/src/core/Akka.Tests.Shared.Internals/Helpers/FSharpDelegateHelper.cs b/src/core/Akka.Tests.Shared.Internals/Helpers/FSharpDelegateHelper.cs index c684eb0b3e7..4ba8d8d432f 100644 --- a/src/core/Akka.Tests.Shared.Internals/Helpers/FSharpDelegateHelper.cs +++ b/src/core/Akka.Tests.Shared.Internals/Helpers/FSharpDelegateHelper.cs @@ -35,5 +35,13 @@ public static FSharpFunc>> Create { return Create((value2, value3) => func(value1, value2, value3)); }; return FSharpFunc>>.FromConverter(conv); } + + public static FSharpFunc>>> Create( + Func func) + { + Converter>>> conv = + value1 => { return Create((value2, value3, value4) => func(value1, value2, value3, value4)); }; + return FSharpFunc>>>.FromConverter(conv); + } } } diff --git a/src/core/Akka.Tests/Loggers/LoggerStartupSpec.cs b/src/core/Akka.Tests/Loggers/LoggerStartupSpec.cs index 0afa7b3aa48..08fae4e2dc1 100644 --- a/src/core/Akka.Tests/Loggers/LoggerStartupSpec.cs +++ b/src/core/Akka.Tests/Loggers/LoggerStartupSpec.cs @@ -9,47 +9,229 @@ using System.Threading.Tasks; using Akka.Actor; using Akka.Configuration; +using Akka.Dispatch; using Akka.Event; +using Akka.TestKit; using FluentAssertions; using Xunit; +using Xunit.Abstractions; namespace Akka.Tests.Loggers { public class LoggerStartupSpec : TestKit.Xunit2.TestKit { - private const int LoggerResponseDelayMs = 10_000; + private const int LoggerResponseDelayMs = 1_000; + + public LoggerStartupSpec(ITestOutputHelper helper) : base(nameof(LoggerStartupSpec), helper) + { + XUnitOutLogger.Helper = helper; + } - [Fact] - public async Task Logger_async_start_configuration_helps_to_ignore_hanging_loggers() + [Theory(DisplayName = "ActorSystem should start with loggers timing out")] + [InlineData(false)] + [InlineData(true)] + public async Task ActorSystem_should_start_with_loggers_timing_out(bool useAsync) { - var loggerAsyncStartDisabledConfig = ConfigurationFactory.ParseString($"akka.logger-async-start = false"); - var loggerAsyncStartEnabledConfig = ConfigurationFactory.ParseString($"akka.logger-async-start = true"); - - var slowLoggerConfig = ConfigurationFactory.ParseString($"akka.loggers = [\"{typeof(SlowLoggerActor).FullName}, {typeof(SlowLoggerActor).Assembly.GetName().Name}\"]"); + var slowLoggerConfig = ConfigurationFactory.ParseString($@" +akka.loglevel = DEBUG +akka.stdout-logger-class = ""{typeof(XUnitOutLogger).FullName}, {typeof(XUnitOutLogger).Assembly.GetName().Name}"" +akka.loggers = [ + ""Akka.Event.DefaultLogger"", + ""{typeof(SlowLoggerActor).FullName}, {typeof(SlowLoggerActor).Assembly.GetName().Name}"" +] +akka.logger-startup-timeout = 100ms").WithFallback(DefaultConfig); - // Without logger async start, ActorSystem creation will hang - this.Invoking(_ => ActorSystem.Create("handing", slowLoggerConfig.WithFallback(loggerAsyncStartDisabledConfig))).Should() - .Throw("System can not start - logger timed out"); - - // With logger async start, ActorSystem is created without issues - // Created without timeouts - var system = ActorSystem.Create("working", slowLoggerConfig.WithFallback(loggerAsyncStartEnabledConfig)); + var config = ConfigurationFactory.ParseString($"akka.logger-async-start = {(useAsync ? "true" : "false")}") + .WithFallback(slowLoggerConfig); + + ActorSystem sys = null; + try + { + this.Invoking(_ => sys = ActorSystem.Create("test", config)).Should() + .NotThrow("System should not fail to start when a logger timed out"); + var probe = CreateTestProbe(sys); + SlowLoggerActor.Probe = probe; + var logProbe = CreateTestProbe(sys); + sys.EventStream.Subscribe(logProbe, typeof(LogEvent)); + + // Logger actor should eventually initialize + await AwaitAssertAsync(() => + { + var dbg = logProbe.ExpectMsg(); + dbg.Message.ToString().Should().Contain(nameof(SlowLoggerActor)).And.Contain("started"); + }); + + var logger = Logging.GetLogger(sys, this); + logger.Error("TEST"); + await AwaitAssertAsync(() => + { + probe.ExpectMsg().Should().Be("TEST"); + }); + } + finally + { + if(sys != null) + Shutdown(sys); + } + } + + [Theory(DisplayName = "ActorSystem should start with loggers throwing exceptions")] + [InlineData("ctor")] + [InlineData("PreStart")] + [InlineData("Receive")] + public void ActorSystem_should_start_with_logger_exception(string when) + { + var config = ConfigurationFactory.ParseString($@" +akka.loglevel = DEBUG +akka.stdout-logger-class = ""{typeof(XUnitOutLogger).FullName}, {typeof(XUnitOutLogger).Assembly.GetName().Name}"" +akka.loggers = [ + ""Akka.Event.DefaultLogger"", + ""{typeof(ThrowingLogger).FullName}, {typeof(ThrowingLogger).Assembly.GetName().Name}"" +] +akka.logger-startup-timeout = 100ms").WithFallback(DefaultConfig); + + ThrowingLogger.ThrowWhen = when; + ActorSystem sys = null; + try + { + this.Invoking(_ => sys = ActorSystem.Create("test", config)).Should() + .NotThrow("System should not fail to start when a logger throws an exception"); + } + finally + { + if(sys != null) + Shutdown(sys); + } } - public class SlowLoggerActor : ReceiveActor + [Fact(DisplayName = "ActorSystem should throw and fail to start on invalid logger FQCN entry")] + public void ActorSystem_should_fail_on_invalid_logger() { - public SlowLoggerActor() + var config = ConfigurationFactory.ParseString($@" +akka.loglevel = DEBUG +akka.stdout-logger-class = ""{typeof(XUnitOutLogger).FullName}, {typeof(XUnitOutLogger).Assembly.GetName().Name}"" +akka.loggers = [ + ""Akka.Event.InvalidLogger, NonExistantAssembly"" +] +akka.logger-startup-timeout = 100ms").WithFallback(DefaultConfig); + + ActorSystem sys = null; + try + { + this.Invoking(_ => sys = ActorSystem.Create("test", config)).Should() + .ThrowExactly("System should fail to start with invalid logger FQCN"); + } + finally + { + if(sys != null) + Shutdown(sys); + } + } + + private class TestException: Exception + { + public TestException(string message) : base(message) + { } + } + + private class ThrowingLogger : ActorBase, IRequiresMessageQueue + { + public static string ThrowWhen = "Receive"; + + public ThrowingLogger() { - ReceiveAsync(async _ => + if(ThrowWhen == "ctor") + throw new TestException(".ctor BOOM!"); + } + + protected override void PreStart() + { + base.PreStart(); + if(ThrowWhen == "PreStart") + throw new TestException("PreStart BOOM!"); + } + + protected override bool Receive(object message) + { + if(message is InitializeLogger) { - // Ooops... Logger is responding too slow - await Task.Delay(LoggerResponseDelayMs); + if(ThrowWhen == "Receive") + throw new TestException("Receive BOOM!"); + Sender.Tell(new LoggerInitialized()); - }); + return true; + } + + return false; + } + } + + private class SlowLoggerActor : ActorBase, IWithUnboundedStash, IRequiresMessageQueue + { + public static TestProbe Probe; + + public SlowLoggerActor() + { + Become(Starting); } - private void Log(LogLevel level, string str) + private bool Starting(object message) + { + switch (message) + { + case InitializeLogger _: + var sender = Sender; + Task.Delay(LoggerResponseDelayMs).PipeTo(Self, sender, success: () => Done.Instance); + Become(Initializing); + return true; + default: + Stash.Stash(); + return true; + } + } + + private bool Initializing(object message) + { + switch (message) + { + case Done _: + Sender.Tell(new LoggerInitialized()); + Become(Initialized); + Stash.UnstashAll(); + return true; + default: + Stash.Stash(); + return true; + } + } + + private bool Initialized(object message) + { + switch (message) + { + case LogEvent evt: + Probe.Tell(evt.Message.ToString()); + return true; + default: + return false; + } + } + + protected override bool Receive(object message) + { + throw new NotImplementedException(); + } + + public IStash Stash { get; set; } + } + + public class XUnitOutLogger : MinimalLogger + { + public static ITestOutputHelper Helper; + + protected override void Log(object message) { + Helper.WriteLine(message.ToString()); } } } diff --git a/src/core/Akka/Actor/SupervisorStrategy.cs b/src/core/Akka/Actor/SupervisorStrategy.cs index f4b24ae5e71..c6449db6291 100644 --- a/src/core/Akka/Actor/SupervisorStrategy.cs +++ b/src/core/Akka/Actor/SupervisorStrategy.cs @@ -142,9 +142,8 @@ protected virtual void LogFailure(IActorContext context, IActorRef child, Except { if (LoggingEnabled) { - var actorInitializationException = cause as ActorInitializationException; string message; - if (actorInitializationException != null && actorInitializationException.InnerException != null) + if (cause is ActorInitializationException actorInitializationException && actorInitializationException.InnerException != null) message = actorInitializationException.InnerException.Message; else message = cause.Message; @@ -152,7 +151,7 @@ protected virtual void LogFailure(IActorContext context, IActorRef child, Except switch (directive) { case Directive.Resume: - Publish(context, new Warning(child.Path.ToString(), GetType(), message)); + Publish(context, new Warning(cause, child.Path.ToString(), GetType(), message)); break; case Directive.Escalate: //Don't log here @@ -171,7 +170,7 @@ protected virtual void LogFailure(IActorContext context, IActorRef child, Except /// protected bool LoggingEnabled { get; set; } - private void Publish(IActorContext context, LogEvent logEvent) + private static void Publish(IActorContext context, LogEvent logEvent) { try { diff --git a/src/core/Akka/Event/LoggingBus.cs b/src/core/Akka/Event/LoggingBus.cs index fbe8e70149b..b5f9ab8d8c1 100644 --- a/src/core/Akka/Event/LoggingBus.cs +++ b/src/core/Akka/Event/LoggingBus.cs @@ -9,7 +9,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Reflection; using System.Threading; using System.Threading.Tasks; using Akka.Actor; @@ -23,10 +22,28 @@ namespace Akka.Event /// public class LoggingBus : ActorEventBus { + private sealed class LoggerStartInfo + { + private readonly string _name; + + public LoggerStartInfo(string loggerName, Type loggerType, IActorRef actorRef) + { + _name = $"{loggerName} [{loggerType.FullName}]"; + ActorRef = actorRef; + } + + public IActorRef ActorRef { get; } + + public override string ToString() => _name; + } + private static readonly LogLevel[] AllLogLevels = Enum.GetValues(typeof(LogLevel)).Cast().ToArray(); private static int _loggerId; private readonly List _loggers = new List(); + + // Async load support + private readonly CancellationTokenSource _shutdownCts = new CancellationTokenSource(); /// /// The minimum log level that this bus will subscribe to, any LogEvents with a log level below will not be subscribed to. @@ -88,12 +105,13 @@ protected override Type GetClassifier(object @event) internal void StartDefaultLoggers(ActorSystemImpl system) { var logName = SimpleName(this) + "(" + system.Name + ")"; - var logLevel = Logging.LogLevelFor(system.Settings.LogLevel); var loggerTypes = system.Settings.Loggers; var timeout = system.Settings.LoggerStartTimeout; - var asyncStart = system.Settings.LoggerAsyncStart; var shouldRemoveStandardOutLogger = true; + LogLevel = Logging.LogLevelFor(system.Settings.LogLevel); + + var taskInfos = new Dictionary(); foreach (var strLoggerType in loggerTypes) { var loggerType = Type.GetType(strLoggerType); @@ -108,33 +126,24 @@ internal void StartDefaultLoggers(ActorSystemImpl system) continue; } - if (asyncStart) - { - // Not awaiting for result, and not depending on current thread context - Task.Run(() => AddLogger(system, loggerType, logLevel, logName, timeout)) - .ContinueWith(t => - { - if (t.Exception != null) - { - Console.WriteLine($"Logger [{strLoggerType}] specified in config cannot be loaded: {t.Exception}"); - } - }); - } - else + var (task, name) = AddLogger(system, loggerType, logName); + taskInfos[task] = name; + } + + if (!Task.WaitAll(taskInfos.Keys.ToArray(), timeout)) + { + foreach (var kvp in taskInfos) { - try - { - AddLogger(system, loggerType, logLevel, logName, timeout); - } - catch (Exception ex) + if (!kvp.Key.IsCompleted) { - throw new ConfigurationException($"Logger [{strLoggerType}] specified in config cannot be loaded: {ex}", ex); + Publish(new Warning(logName, GetType(), + $"Logger {kvp.Value} did not respond within {timeout} to InitializeLogger(bus), " + + $"{nameof(LoggingBus)} will try and wait until it is ready. Since it start up is delayed, " + + "this logger may not capture all startup events correctly.")); } } } - LogLevel = logLevel; - if (system.Settings.DebugUnhandledMessage) { var forwarder = system.SystemActorOf(Props.Create(typeof(UnhandledMessageForwarder)), "UnhandledMessageForwarder"); @@ -164,46 +173,66 @@ internal void StopDefaultLoggers(ActorSystem system) Publish(new Debug(SimpleName(this), GetType(), $"Shutting down: {Logging.SimpleName(system.Settings.StdoutLogger)} started")); } + // Cancel all pending logger initialization tasks + _shutdownCts.Cancel(false); + _shutdownCts.Dispose(); + + // Stop all currently running loggers foreach (var logger in _loggers) { - if (!(logger is MinimalLogger)) - { - Unsubscribe(logger); - if (logger is IInternalActorRef internalActorRef) - { - internalActorRef.Stop(); - } - } + RemoveLogger(logger); } Publish(new Debug(SimpleName(this), GetType(), "All default loggers stopped")); } - private void AddLogger(ActorSystemImpl system, Type loggerType, LogLevel logLevel, string loggingBusName, TimeSpan timeout) + private void RemoveLogger(IActorRef logger) { - var loggerName = CreateLoggerName(loggerType); - var logger = system.SystemActorOf(Props.Create(loggerType).WithDispatcher(system.Settings.LoggersDispatcher), loggerName); - var askTask = logger.Ask(new InitializeLogger(this), timeout); - - object response = null; - try + if (!(logger is MinimalLogger)) { - response = askTask.Result; - } - catch (Exception ex) when (ex is TaskCanceledException || ex is AskTimeoutException) - { - Publish(new Warning(loggingBusName, GetType(), - string.Format("Logger {0} [{2}] did not respond within {1} to InitializeLogger(bus)", loggerName, timeout, loggerType.FullName))); + Unsubscribe(logger); + if (logger is IInternalActorRef internalActorRef) + { + internalActorRef.Stop(); + } } - - if (!(response is LoggerInitialized)) - throw new LoggerInitializationException($"Logger {loggerName} [{loggerType.FullName}] did not respond with LoggerInitialized, sent instead {response}"); - + } - _loggers.Add(logger); - SubscribeLogLevelAndAbove(logLevel, logger); - Publish(new Debug(loggingBusName, GetType(), $"Logger {loggerName} [{loggerType.Name}] started")); + private (Task task, string name) AddLogger(ActorSystemImpl system, Type loggerType, string loggingBusName) + { + var loggerName = CreateLoggerName(loggerType); + var fullLoggerName = $"{loggerName} [{loggerType.FullName}]"; + var logger = system.SystemActorOf(Props.Create(loggerType).WithDispatcher(system.Settings.LoggersDispatcher), loggerName); + var askTask = logger.Ask(new InitializeLogger(this), Timeout.InfiniteTimeSpan, _shutdownCts.Token); + askTask.ContinueWith(t => + { + // _shutdownCts was cancelled while this logger is still loading + if (t.IsCanceled) + { + Publish(new Warning(loggingBusName, GetType(), + $"Logger {fullLoggerName} startup have been cancelled because of system shutdown. Stopping logger.")); + RemoveLogger(logger); + return; + } + + // Task ran to completion successfully + var response = t.Result; + if (!(response is LoggerInitialized)) + { + // Malformed logger, logger did not send a proper ack. + Publish(new Error(null, loggingBusName, GetType(), + $"Logger {fullLoggerName} did not respond with {nameof(LoggerInitialized)}, sent instead {response.GetType()}. Stopping logger.")); + RemoveLogger(logger); + return; + } + + // Logger initialized successfully + _loggers.Add(logger); + SubscribeLogLevelAndAbove(LogLevel, logger); + Publish(new Debug(loggingBusName, GetType(), $"Logger {fullLoggerName} started")); + }); + return (askTask, fullLoggerName); } private string CreateLoggerName(Type actorClass) @@ -240,7 +269,7 @@ public void SetLogLevel(LogLevel logLevel) foreach (var logger in _loggers) { //subscribe to given log level and above - SubscribeLogLevelAndAbove(logLevel, logger); + SubscribeLogLevelAndAbove(LogLevel, logger); //unsubscribe to all levels below log level foreach (var level in AllLogLevels.Where(l => l < logLevel)) diff --git a/tools/AzCopy/Newtonsoft.Json.dll b/tools/AzCopy/Newtonsoft.Json.dll deleted file mode 100644 index 740086d3fed..00000000000 Binary files a/tools/AzCopy/Newtonsoft.Json.dll and /dev/null differ diff --git a/tools/AzCopy/System.Spatial.dll b/tools/AzCopy/System.Spatial.dll deleted file mode 100644 index 988f60e2350..00000000000 Binary files a/tools/AzCopy/System.Spatial.dll and /dev/null differ diff --git a/tools/AzCopy/Third Party Notice (Microsoft Azure Storage Tools).rtf b/tools/AzCopy/Third Party Notice (Microsoft Azure Storage Tools).rtf deleted file mode 100644 index 5bf6d0bd763..00000000000 Binary files a/tools/AzCopy/Third Party Notice (Microsoft Azure Storage Tools).rtf and /dev/null differ