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); } }
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; } }
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_); }