Exemple #1
0
 public void MergeFrom(TigerResp other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TigerNo != 0)
     {
         TigerNo = other.TigerNo;
     }
     if (other.SeqNo != 0)
     {
         SeqNo = other.SeqNo;
     }
     pos_.Add(other.pos_);
     bonus_.Add(other.bonus_);
     if (other.current_ != null)
     {
         if (current_ == null)
         {
             current_ = new global::Tiger.Proto.TigerCurrent();
         }
         Current.MergeFrom(other.Current);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    TigerNo = input.ReadInt32();
                    break;
                }

                case 16: {
                    SeqNo = input.ReadInt32();
                    break;
                }

                case 26:
                case 24: {
                    pos_.AddEntriesFrom(input, _repeated_pos_codec);
                    break;
                }

                case 34: {
                    bonus_.AddEntriesFrom(input, _repeated_bonus_codec);
                    break;
                }

                case 42: {
                    if (current_ == null)
                    {
                        current_ = new global::Tiger.Proto.TigerCurrent();
                    }
                    input.ReadMessage(current_);
                    break;
                }
                }
            }
        }