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: {
                    Num = input.ReadInt64();
                    break;
                }

                case 18: {
                    if (bar_ == null)
                    {
                        bar_ = new global::Google.Ads.GoogleAds.Tests.Util.Bar();
                    }
                    input.ReadMessage(bar_);
                    break;
                }

                case 26: {
                    bars_.AddEntriesFrom(input, _repeated_bars_codec);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(Foo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Num != 0L)
     {
         Num = other.Num;
     }
     if (other.bar_ != null)
     {
         if (bar_ == null)
         {
             Bar = new global::Google.Ads.GoogleAds.Tests.Util.Bar();
         }
         Bar.MergeFrom(other.Bar);
     }
     bars_.Add(other.bars_);
     if (other.HasText)
     {
         Text = other.Text;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }