Esempio n. 1
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: {
                    A = input.ReadInt32();
                    break;
                }

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

                case 26: {
                    if (child_ == null)
                    {
                        child_ = new global::test.st.Types.t();
                    }
                    input.ReadMessage(child_);
                    break;
                }

                case 32: {
                    C = input.ReadInt32();
                    break;
                }

                case 40: {
                    D = input.ReadBool();
                    break;
                }

                case 50: {
                    dict_.AddEntriesFrom(input, _map_dict_codec);
                    break;
                }

                case 58: {
                    ArrayOfBytes = input.ReadBytes();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(st other)
 {
     if (other == null)
     {
         return;
     }
     if (other.A != 0)
     {
         A = other.A;
     }
     if (other.B.Length != 0)
     {
         B = other.B;
     }
     if (other.child_ != null)
     {
         if (child_ == null)
         {
             child_ = new global::test.st.Types.t();
         }
         Child.MergeFrom(other.Child);
     }
     if (other.C != 0)
     {
         C = other.C;
     }
     if (other.D != false)
     {
         D = other.D;
     }
     dict_.Add(other.dict_);
     if (other.ArrayOfBytes.Length != 0)
     {
         ArrayOfBytes = other.ArrayOfBytes;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }