Esempio n. 1
0
 public void MergeFrom(VersionedEventSource other)
 {
     if (other == null)
     {
         return;
     }
     if (other.version_ != null)
     {
         if (version_ == null)
         {
             version_ = new global::Dolittle.Runtime.Grpc.Interaction.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);
     }
 }
Esempio n. 2
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.Grpc.Interaction.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;
                }
                }
            }
        }