public void MergeFrom(CouponCampaignAnalyticsResponse other) { if (other == null) { return; } if (other.Period != global::PKIo.Period.Day) { Period = other.Period; } if (other.Redeemed != 0) { Redeemed = other.Redeemed; } if (other.devices_ != null) { if (devices_ == null) { Devices = new global::PKIo.DeviceBreakdown(); } Devices.MergeFrom(other.Devices); } sources_.Add(other.sources_); data_.Add(other.data_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Period = (global::PKIo.Period)input.ReadEnum(); break; } case 16: { Redeemed = input.ReadUInt32(); break; } case 26: { if (devices_ == null) { Devices = new global::PKIo.DeviceBreakdown(); } input.ReadMessage(Devices); break; } case 34: { sources_.AddEntriesFrom(input, _map_sources_codec); break; } case 42: { data_.AddEntriesFrom(input, _repeated_data_codec); break; } } } }