void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { ResourceName = input.ReadString(); break; } case 42: { global::Google.Ads.GoogleAds.V6.Common.HotelDateSelectionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelDateSelectionTypeInfo(); if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { subBuilder.MergeFrom(HotelDateSelectionType); } input.ReadMessage(subBuilder); HotelDateSelectionType = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V6.Common.HotelAdvanceBookingWindowInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelAdvanceBookingWindowInfo(); if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { subBuilder.MergeFrom(HotelAdvanceBookingWindow); } input.ReadMessage(subBuilder); HotelAdvanceBookingWindow = subBuilder; break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.HotelLengthOfStayInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelLengthOfStayInfo(); if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { subBuilder.MergeFrom(HotelLengthOfStay); } input.ReadMessage(subBuilder); HotelLengthOfStay = subBuilder; break; } case 66: { global::Google.Ads.GoogleAds.V6.Common.HotelCheckInDayInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelCheckInDayInfo(); if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { subBuilder.MergeFrom(HotelCheckInDay); } input.ReadMessage(subBuilder); HotelCheckInDay = subBuilder; break; } case 80: { BidModifierSource = (global::Google.Ads.GoogleAds.V6.Enums.BidModifierSourceEnum.Types.BidModifierSource)input.ReadEnum(); break; } case 90: { global::Google.Ads.GoogleAds.V6.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.DeviceInfo(); if (criterionCase_ == CriterionOneofCase.Device) { subBuilder.MergeFrom(Device); } input.ReadMessage(subBuilder); Device = subBuilder; break; } case 98: { global::Google.Ads.GoogleAds.V6.Common.PreferredContentInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.PreferredContentInfo(); if (criterionCase_ == CriterionOneofCase.PreferredContent) { subBuilder.MergeFrom(PreferredContent); } input.ReadMessage(subBuilder); PreferredContent = subBuilder; break; } case 106: { AdGroup = input.ReadString(); break; } case 112: { CriterionId = input.ReadInt64(); break; } case 121: { BidModifier = input.ReadDouble(); break; } case 130: { BaseAdGroup = input.ReadString(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ResourceName = input.ReadString(); break; } case 42: { global::Google.Ads.GoogleAds.V6.Common.HotelDateSelectionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelDateSelectionTypeInfo(); if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { subBuilder.MergeFrom(HotelDateSelectionType); } input.ReadMessage(subBuilder); HotelDateSelectionType = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V6.Common.HotelAdvanceBookingWindowInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelAdvanceBookingWindowInfo(); if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { subBuilder.MergeFrom(HotelAdvanceBookingWindow); } input.ReadMessage(subBuilder); HotelAdvanceBookingWindow = subBuilder; break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.HotelLengthOfStayInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelLengthOfStayInfo(); if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { subBuilder.MergeFrom(HotelLengthOfStay); } input.ReadMessage(subBuilder); HotelLengthOfStay = subBuilder; break; } case 66: { global::Google.Ads.GoogleAds.V6.Common.HotelCheckInDayInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.HotelCheckInDayInfo(); if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { subBuilder.MergeFrom(HotelCheckInDay); } input.ReadMessage(subBuilder); HotelCheckInDay = subBuilder; break; } case 80: { BidModifierSource = (global::Google.Ads.GoogleAds.V6.Enums.BidModifierSourceEnum.Types.BidModifierSource)input.ReadEnum(); break; } case 90: { global::Google.Ads.GoogleAds.V6.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.DeviceInfo(); if (criterionCase_ == CriterionOneofCase.Device) { subBuilder.MergeFrom(Device); } input.ReadMessage(subBuilder); Device = subBuilder; break; } case 98: { global::Google.Ads.GoogleAds.V6.Common.PreferredContentInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.PreferredContentInfo(); if (criterionCase_ == CriterionOneofCase.PreferredContent) { subBuilder.MergeFrom(PreferredContent); } input.ReadMessage(subBuilder); PreferredContent = subBuilder; break; } case 106: { AdGroup = input.ReadString(); break; } case 112: { CriterionId = input.ReadInt64(); break; } case 121: { BidModifier = input.ReadDouble(); break; } case 130: { BaseAdGroup = input.ReadString(); break; } } } #endif }