コード例 #1
0
ファイル: Wire.g.cs プロジェクト: jcdickinson/Chasm
        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;
                }
                }
            }
        }
コード例 #2
0
ファイル: Wire.g.cs プロジェクト: jcdickinson/Chasm
 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);
     }
 }
コード例 #3
0
ファイル: CommitWire.g.cs プロジェクト: waffle-iron/Chasm
 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;
     }
 }