Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 16: {
                    kind_ = (global::SourceCode.Chasm.IO.Proto.Wire.NodeKindWire)input.ReadEnum();
                    break;
                }

                case 26: {
                    if (nodeId_ == null)
                    {
                        nodeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
                    }
                    input.ReadMessage(nodeId_);
                    break;
                }
                }
            }
        }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    parents_.AddEntriesFrom(input, _repeated_parents_codec);
                    break;
                }

                case 18: {
                    if (treeId_ == null)
                    {
                        treeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
                    }
                    input.ReadMessage(treeId_);
                    break;
                }

                case 26: {
                    if (author_ == null)
                    {
                        author_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
                    }
                    input.ReadMessage(author_);
                    break;
                }

                case 34: {
                    if (committer_ == null)
                    {
                        committer_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
                    }
                    input.ReadMessage(committer_);
                    break;
                }

                case 42: {
                    if (message_ == null)
                    {
                        message_ = new global::Google.Protobuf.WellKnownTypes.StringValue();
                    }
                    input.ReadMessage(message_);
                    break;
                }
                }
            }
        }
Beispiel #3
0
 public void MergeFrom(CommitIdWire other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         Id.MergeFrom(other.Id);
     }
 }
Beispiel #4
0
 public void MergeFrom(CommitWire other)
 {
     if (other == null)
     {
         return;
     }
     parents_.Add(other.parents_);
     if (other.treeId_ != null)
     {
         if (treeId_ == null)
         {
             treeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         TreeId.MergeFrom(other.TreeId);
     }
     if (other.author_ != null)
     {
         if (author_ == null)
         {
             author_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Author.MergeFrom(other.Author);
     }
     if (other.committer_ != null)
     {
         if (committer_ == null)
         {
             committer_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Committer.MergeFrom(other.Committer);
     }
     if (other.message_ != null)
     {
         if (message_ == null)
         {
             message_ = new global::Google.Protobuf.WellKnownTypes.StringValue();
         }
         Message.MergeFrom(other.Message);
     }
 }
Beispiel #5
0
 public void MergeFrom(TreeWireNode other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Kind != 0)
     {
         Kind = other.Kind;
     }
     if (other.nodeId_ != null)
     {
         if (nodeId_ == null)
         {
             nodeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         NodeId.MergeFrom(other.NodeId);
     }
 }
Beispiel #6
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::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
                    }
                    input.ReadMessage(id_);
                    break;
                }
                }
            }
        }
Beispiel #7
0
 public void MergeFrom(CommitWire other)
 {
     if (other == null)
     {
         return;
     }
     parents_.Add(other.parents_);
     if (other.treeId_ != null)
     {
         if (treeId_ == null)
         {
             treeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         TreeId.MergeFrom(other.TreeId);
     }
     if (other.author_ != null)
     {
         if (author_ == null)
         {
             author_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Author.MergeFrom(other.Author);
     }
     if (other.committer_ != null)
     {
         if (committer_ == null)
         {
             committer_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Committer.MergeFrom(other.Committer);
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
 }