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 32: { Type = (global::Google.Ads.GoogleAds.V5.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum(); break; } case 40: { ModificationMethod = (global::Google.Ads.GoogleAds.V5.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod)input.ReadEnum(); break; } case 66: { global::Google.Ads.GoogleAds.V5.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.CpcBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.CpcBidPointList) { subBuilder.MergeFrom(CpcBidPointList); } input.ReadMessage(subBuilder); CpcBidPointList = subBuilder; break; } case 72: { AdGroupId = input.ReadInt64(); break; } case 80: { CriterionId = input.ReadInt64(); break; } case 90: { StartDate = input.ReadString(); break; } case 98: { EndDate = input.ReadString(); break; } case 106: { global::Google.Ads.GoogleAds.V5.Common.PercentCpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.PercentCpcBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { subBuilder.MergeFrom(PercentCpcBidPointList); } input.ReadMessage(subBuilder); PercentCpcBidPointList = subBuilder; 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 32: { Type = (global::Google.Ads.GoogleAds.V5.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum(); break; } case 40: { ModificationMethod = (global::Google.Ads.GoogleAds.V5.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod)input.ReadEnum(); break; } case 66: { global::Google.Ads.GoogleAds.V5.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.CpcBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.CpcBidPointList) { subBuilder.MergeFrom(CpcBidPointList); } input.ReadMessage(subBuilder); CpcBidPointList = subBuilder; break; } case 72: { AdGroupId = input.ReadInt64(); break; } case 80: { CriterionId = input.ReadInt64(); break; } case 90: { StartDate = input.ReadString(); break; } case 98: { EndDate = input.ReadString(); break; } case 106: { global::Google.Ads.GoogleAds.V5.Common.PercentCpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.PercentCpcBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { subBuilder.MergeFrom(PercentCpcBidPointList); } input.ReadMessage(subBuilder); PercentCpcBidPointList = subBuilder; break; } } } #endif }