Ejemplo n.º 1
0
 public void MergeFrom(VersionedEventSource other)
 {
     if (other == null)
     {
         return;
     }
     if (other.version_ != null)
     {
         if (version_ == null)
         {
             version_ = new global::Dolittle.Runtime.Events.Relativity.Protobuf.EventSourceVersion();
         }
         Version.MergeFrom(other.Version);
     }
     if (other.eventSource_ != null)
     {
         if (eventSource_ == null)
         {
             eventSource_ = new global::System.Protobuf.guid();
         }
         EventSource.MergeFrom(other.EventSource);
     }
     if (other.artifact_ != null)
     {
         if (artifact_ == null)
         {
             artifact_ = new global::System.Protobuf.guid();
         }
         Artifact.MergeFrom(other.Artifact);
     }
 }
Ejemplo n.º 2
0
 public void MergeFrom(OpenTunnel other)
 {
     if (other == null)
     {
         return;
     }
     if (other.application_ != null)
     {
         if (application_ == null)
         {
             application_ = new global::System.Protobuf.guid();
         }
         Application.MergeFrom(other.Application);
     }
     if (other.boundedContext_ != null)
     {
         if (boundedContext_ == null)
         {
             boundedContext_ = new global::System.Protobuf.guid();
         }
         BoundedContext.MergeFrom(other.BoundedContext);
     }
     if (other.clientId_ != null)
     {
         if (clientId_ == null)
         {
             clientId_ = new global::System.Protobuf.guid();
         }
         ClientId.MergeFrom(other.ClientId);
     }
     offsets_.Add(other.offsets_);
     events_.Add(other.events_);
 }
Ejemplo n.º 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (tenant_ == null)
                    {
                        tenant_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(tenant_);
                    break;
                }

                case 16: {
                    Offset = input.ReadUInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (id_ == null)
                    {
                        id_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(id_);
                    break;
                }

                case 16: {
                    Generation = input.ReadInt32();
                    break;
                }
                }
            }
        }
Ejemplo n.º 5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (application_ == null)
                    {
                        application_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(application_);
                    break;
                }

                case 18: {
                    if (boundedContext_ == null)
                    {
                        boundedContext_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(boundedContext_);
                    break;
                }

                case 26: {
                    if (tenant_ == null)
                    {
                        tenant_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(tenant_);
                    break;
                }

                case 34: {
                    Environment = input.ReadString();
                    break;
                }

                case 42: {
                    claims_.AddEntriesFrom(input, _repeated_claims_codec);
                    break;
                }

                case 48: {
                    CommitInOrigin = input.ReadUInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 6
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (source_ == null)
                    {
                        source_ = new global::Dolittle.Runtime.Events.Relativity.Protobuf.VersionedEventSource();
                    }
                    input.ReadMessage(source_);
                    break;
                }

                case 16: {
                    Sequence = input.ReadUInt64();
                    break;
                }

                case 26: {
                    if (id_ == null)
                    {
                        id_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(id_);
                    break;
                }

                case 32: {
                    TimeStamp = input.ReadInt64();
                    break;
                }

                case 42: {
                    if (correlationId_ == null)
                    {
                        correlationId_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(correlationId_);
                    break;
                }

                case 50: {
                    events_.AddEntriesFrom(input, _repeated_events_codec);
                    break;
                }
                }
            }
        }
Ejemplo n.º 7
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (application_ == null)
                    {
                        application_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(application_);
                    break;
                }

                case 18: {
                    if (boundedContext_ == null)
                    {
                        boundedContext_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(boundedContext_);
                    break;
                }

                case 26: {
                    if (clientId_ == null)
                    {
                        clientId_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(clientId_);
                    break;
                }

                case 34: {
                    offsets_.AddEntriesFrom(input, _repeated_offsets_codec);
                    break;
                }

                case 42: {
                    events_.AddEntriesFrom(input, _repeated_events_codec);
                    break;
                }
                }
            }
        }
Ejemplo n.º 8
0
 public void MergeFrom(EventMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.eventId_ != null)
     {
         if (eventId_ == null)
         {
             eventId_ = new global::System.Protobuf.guid();
         }
         EventId.MergeFrom(other.EventId);
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::Dolittle.Runtime.Grpc.Interaction.VersionedEventSource();
         }
         Source.MergeFrom(other.Source);
     }
     if (other.correlationId_ != null)
     {
         if (correlationId_ == null)
         {
             correlationId_ = new global::System.Protobuf.guid();
         }
         CorrelationId.MergeFrom(other.CorrelationId);
     }
     if (other.artifact_ != null)
     {
         if (artifact_ == null)
         {
             artifact_ = new global::Dolittle.Runtime.Grpc.Interaction.Artifact();
         }
         Artifact.MergeFrom(other.Artifact);
     }
     if (other.Occurred != 0L)
     {
         Occurred = other.Occurred;
     }
     if (other.originalContext_ != null)
     {
         if (originalContext_ == null)
         {
             originalContext_ = new global::Dolittle.Runtime.Grpc.Interaction.OriginalContext();
         }
         OriginalContext.MergeFrom(other.OriginalContext);
     }
 }
Ejemplo n.º 9
0
 public void MergeFrom(ExecutionContext other)
 {
     if (other == null)
     {
         return;
     }
     if (other.application_ != null)
     {
         if (application_ == null)
         {
             application_ = new global::System.Protobuf.guid();
         }
         Application.MergeFrom(other.Application);
     }
     if (other.boundedContext_ != null)
     {
         if (boundedContext_ == null)
         {
             boundedContext_ = new global::System.Protobuf.guid();
         }
         BoundedContext.MergeFrom(other.BoundedContext);
     }
     if (other.tenant_ != null)
     {
         if (tenant_ == null)
         {
             tenant_ = new global::System.Protobuf.guid();
         }
         Tenant.MergeFrom(other.Tenant);
     }
     if (other.correlationId_ != null)
     {
         if (correlationId_ == null)
         {
             correlationId_ = new global::System.Protobuf.guid();
         }
         CorrelationId.MergeFrom(other.CorrelationId);
     }
     if (other.Environment.Length != 0)
     {
         Environment = other.Environment;
     }
     claims_.Add(other.claims_);
     if (other.Culture.Length != 0)
     {
         Culture = other.Culture;
     }
 }
Ejemplo n.º 10
0
 public void MergeFrom(TenantOffset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.tenant_ != null)
     {
         if (tenant_ == null)
         {
             tenant_ = new global::System.Protobuf.guid();
         }
         Tenant.MergeFrom(other.Tenant);
     }
     if (other.Offset != 0UL)
     {
         Offset = other.Offset;
     }
 }
Ejemplo n.º 11
0
 public void MergeFrom(Artifact other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::System.Protobuf.guid();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.Generation != 0)
     {
         Generation = other.Generation;
     }
 }
Ejemplo n.º 12
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (version_ == null)
                    {
                        version_ = new global::Dolittle.Runtime.Events.Relativity.Protobuf.EventSourceVersion();
                    }
                    input.ReadMessage(version_);
                    break;
                }

                case 18: {
                    if (eventSource_ == null)
                    {
                        eventSource_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(eventSource_);
                    break;
                }

                case 26: {
                    if (artifact_ == null)
                    {
                        artifact_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(artifact_);
                    break;
                }
                }
            }
        }
Ejemplo n.º 13
0
 public void MergeFrom(OriginalContext other)
 {
     if (other == null)
     {
         return;
     }
     if (other.application_ != null)
     {
         if (application_ == null)
         {
             application_ = new global::System.Protobuf.guid();
         }
         Application.MergeFrom(other.Application);
     }
     if (other.boundedContext_ != null)
     {
         if (boundedContext_ == null)
         {
             boundedContext_ = new global::System.Protobuf.guid();
         }
         BoundedContext.MergeFrom(other.BoundedContext);
     }
     if (other.tenant_ != null)
     {
         if (tenant_ == null)
         {
             tenant_ = new global::System.Protobuf.guid();
         }
         Tenant.MergeFrom(other.Tenant);
     }
     if (other.Environment.Length != 0)
     {
         Environment = other.Environment;
     }
     claims_.Add(other.claims_);
     if (other.CommitInOrigin != 0UL)
     {
         CommitInOrigin = other.CommitInOrigin;
     }
 }
Ejemplo n.º 14
0
 public void MergeFrom(CommittedEventStream other)
 {
     if (other == null)
     {
         return;
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::Dolittle.Runtime.Events.Relativity.Protobuf.VersionedEventSource();
         }
         Source.MergeFrom(other.Source);
     }
     if (other.Sequence != 0UL)
     {
         Sequence = other.Sequence;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::System.Protobuf.guid();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.TimeStamp != 0L)
     {
         TimeStamp = other.TimeStamp;
     }
     if (other.correlationId_ != null)
     {
         if (correlationId_ == null)
         {
             correlationId_ = new global::System.Protobuf.guid();
         }
         CorrelationId.MergeFrom(other.CorrelationId);
     }
     events_.Add(other.events_);
 }
Ejemplo n.º 15
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (eventId_ == null)
                    {
                        eventId_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(eventId_);
                    break;
                }

                case 18: {
                    if (source_ == null)
                    {
                        source_ = new global::Dolittle.Runtime.Grpc.Interaction.VersionedEventSource();
                    }
                    input.ReadMessage(source_);
                    break;
                }

                case 26: {
                    if (correlationId_ == null)
                    {
                        correlationId_ = new global::System.Protobuf.guid();
                    }
                    input.ReadMessage(correlationId_);
                    break;
                }

                case 34: {
                    if (artifact_ == null)
                    {
                        artifact_ = new global::Dolittle.Runtime.Grpc.Interaction.Artifact();
                    }
                    input.ReadMessage(artifact_);
                    break;
                }

                case 40: {
                    Occurred = input.ReadInt64();
                    break;
                }

                case 50: {
                    if (originalContext_ == null)
                    {
                        originalContext_ = new global::Dolittle.Runtime.Grpc.Interaction.OriginalContext();
                    }
                    input.ReadMessage(originalContext_);
                    break;
                }
                }
            }
        }