public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { RechargeItem _inst = (RechargeItem)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Sid = input.ReadInt32(); break; } case 16: { _inst.CurTimes = input.ReadInt32(); break; } case 24: { _inst.MaxTimes = input.ReadInt32(); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { GCRechargeItemInfo _inst = (GCRechargeItemInfo)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 10: { RechargeItem subBuilder = new RechargeItem(); input.ReadMessage(subBuilder); _inst.AddRechargeItemList(subBuilder); break; } } } return(_inst); }
public void AddRechargeItemList(RechargeItem value) { rechargeItemList_.Add(value); }