public void MergeFrom(StoreItem other) { if (other == null) { return; } if (other.ItemId.Length != 0) { ItemId = other.ItemId; } if (other.IsIap != false) { IsIap = other.IsIap; } if (other.currencyToBuy_ != null) { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } CurrencyToBuy.MergeFrom(other.CurrencyToBuy); } if (other.yieldsCurrency_ != null) { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } YieldsCurrency.MergeFrom(other.YieldsCurrency); } if (other.yieldsItem_ != null) { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Networking.Platform.Responses.GetStoreItemsResponse.Types.StoreItemInfo(); } YieldsItem.MergeFrom(other.YieldsItem); } tags_.Add(other.tags_); if (other.Unknown7 != 0) { Unknown7 = other.Unknown7; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { ItemId = input.ReadString(); break; } case 16: { IsIap = input.ReadBool(); break; } case 26: { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } input.ReadMessage(currencyToBuy_); break; } case 34: { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } input.ReadMessage(yieldsCurrency_); break; } case 42: { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Networking.Platform.Responses.GetStoreItemsResponse.Types.StoreItemInfo(); } input.ReadMessage(yieldsItem_); break; } case 50: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 56: { Unknown7 = input.ReadInt32(); break; } } } }