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 24: { Type = (global::Google.Ads.GoogleAds.V5.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum(); break; } case 32: { 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 74: { global::Google.Ads.GoogleAds.V5.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.TargetCpaSimulationPointList(); if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { subBuilder.MergeFrom(TargetCpaPointList); } input.ReadMessage(subBuilder); TargetCpaPointList = subBuilder; break; } case 82: { global::Google.Ads.GoogleAds.V5.Common.CpvBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.CpvBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.CpvBidPointList) { subBuilder.MergeFrom(CpvBidPointList); } input.ReadMessage(subBuilder); CpvBidPointList = subBuilder; break; } case 90: { global::Google.Ads.GoogleAds.V5.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.TargetRoasSimulationPointList(); if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { subBuilder.MergeFrom(TargetRoasPointList); } input.ReadMessage(subBuilder); TargetRoasPointList = subBuilder; break; } case 96: { AdGroupId = input.ReadInt64(); break; } case 106: { StartDate = input.ReadString(); break; } case 114: { EndDate = 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 24: { Type = (global::Google.Ads.GoogleAds.V5.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum(); break; } case 32: { 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 74: { global::Google.Ads.GoogleAds.V5.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.TargetCpaSimulationPointList(); if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { subBuilder.MergeFrom(TargetCpaPointList); } input.ReadMessage(subBuilder); TargetCpaPointList = subBuilder; break; } case 82: { global::Google.Ads.GoogleAds.V5.Common.CpvBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.CpvBidSimulationPointList(); if (pointListCase_ == PointListOneofCase.CpvBidPointList) { subBuilder.MergeFrom(CpvBidPointList); } input.ReadMessage(subBuilder); CpvBidPointList = subBuilder; break; } case 90: { global::Google.Ads.GoogleAds.V5.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V5.Common.TargetRoasSimulationPointList(); if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { subBuilder.MergeFrom(TargetRoasPointList); } input.ReadMessage(subBuilder); TargetRoasPointList = subBuilder; break; } case 96: { AdGroupId = input.ReadInt64(); break; } case 106: { StartDate = input.ReadString(); break; } case 114: { EndDate = input.ReadString(); break; } } } #endif }