示例#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 10: {
                    if (no_ == null)
                    {
                        No = new global::Nested.NestedOuter();
                    }
                    input.ReadMessage(No);
                    break;
                }

                case 18: {
                    if (ni_ == null)
                    {
                        Ni = new global::Nested.NestedOuter.Types.NestedInner();
                    }
                    input.ReadMessage(Ni);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(NestedUser other)
 {
     if (other == null)
     {
         return;
     }
     if (other.no_ != null)
     {
         if (no_ == null)
         {
             No = new global::Nested.NestedOuter();
         }
         No.MergeFrom(other.No);
     }
     if (other.ni_ != null)
     {
         if (ni_ == null)
         {
             Ni = new global::Nested.NestedOuter.Types.NestedInner();
         }
         Ni.MergeFrom(other.Ni);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }