Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    type_ = (global::Generated.Protobuf.Response.Types.Type)input.ReadEnum();
                    break;
                }

                case 18: {
                    Error = input.ReadString();
                    break;
                }

                case 26: {
                    if (match_ == null)
                    {
                        match_ = new global::Generated.Protobuf.MatchDTO();
                    }
                    input.ReadMessage(match_);
                    break;
                }

                case 34: {
                    matchList_.AddEntriesFrom(input, _repeated_matchList_codec);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(Response other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.Error.Length != 0)
     {
         Error = other.Error;
     }
     if (other.match_ != null)
     {
         if (match_ == null)
         {
             match_ = new global::Generated.Protobuf.MatchDTO();
         }
         Match.MergeFrom(other.Match);
     }
     matchList_.Add(other.matchList_);
 }