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: { ResourceName = input.ReadString(); break; } case 18: { string value = _single_adGroup_codec.Read(input); if (adGroup_ == null || value != "") { AdGroup = value; } break; } case 26: { long?value = _single_criterionId_codec.Read(input); if (criterionId_ == null || value != 0L) { CriterionId = value; } break; } case 34: { double?value = _single_bidModifier_codec.Read(input); if (bidModifier_ == null || value != 0D) { BidModifier = value; } break; } case 42: { global::Google.Ads.GoogleAds.V2.Common.HotelDateSelectionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.HotelDateSelectionTypeInfo(); if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { subBuilder.MergeFrom(HotelDateSelectionType); } input.ReadMessage(subBuilder); HotelDateSelectionType = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V2.Common.HotelAdvanceBookingWindowInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.HotelAdvanceBookingWindowInfo(); if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { subBuilder.MergeFrom(HotelAdvanceBookingWindow); } input.ReadMessage(subBuilder); HotelAdvanceBookingWindow = subBuilder; break; } case 58: { global::Google.Ads.GoogleAds.V2.Common.HotelLengthOfStayInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.HotelLengthOfStayInfo(); if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { subBuilder.MergeFrom(HotelLengthOfStay); } input.ReadMessage(subBuilder); HotelLengthOfStay = subBuilder; break; } case 66: { global::Google.Ads.GoogleAds.V2.Common.HotelCheckInDayInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.HotelCheckInDayInfo(); if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { subBuilder.MergeFrom(HotelCheckInDay); } input.ReadMessage(subBuilder); HotelCheckInDay = subBuilder; break; } case 74: { string value = _single_baseAdGroup_codec.Read(input); if (baseAdGroup_ == null || value != "") { BaseAdGroup = value; } break; } case 80: { BidModifierSource = (global::Google.Ads.GoogleAds.V2.Enums.BidModifierSourceEnum.Types.BidModifierSource)input.ReadEnum(); break; } case 90: { global::Google.Ads.GoogleAds.V2.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.DeviceInfo(); if (criterionCase_ == CriterionOneofCase.Device) { subBuilder.MergeFrom(Device); } input.ReadMessage(subBuilder); Device = subBuilder; break; } case 98: { global::Google.Ads.GoogleAds.V2.Common.PreferredContentInfo subBuilder = new global::Google.Ads.GoogleAds.V2.Common.PreferredContentInfo(); if (criterionCase_ == CriterionOneofCase.PreferredContent) { subBuilder.MergeFrom(PreferredContent); } input.ReadMessage(subBuilder); PreferredContent = subBuilder; break; } } } }