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 16: {
                    CampaignId = input.ReadInt64();
                    break;
                }

                case 24: {
                    Type = (global::Google.Ads.GoogleAds.V8.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum();
                    break;
                }

                case 32: {
                    ModificationMethod = (global::Google.Ads.GoogleAds.V8.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod)input.ReadEnum();
                    break;
                }

                case 42: {
                    StartDate = input.ReadString();
                    break;
                }

                case 50: {
                    EndDate = input.ReadString();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V8.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.CpcBidSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.CpcBidPointList)
                    {
                        subBuilder.MergeFrom(CpcBidPointList);
                    }
                    input.ReadMessage(subBuilder);
                    CpcBidPointList = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetCpaSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetCpaPointList)
                    {
                        subBuilder.MergeFrom(TargetCpaPointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetCpaPointList = subBuilder;
                    break;
                }

                case 74: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetRoasSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetRoasPointList)
                    {
                        subBuilder.MergeFrom(TargetRoasPointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetRoasPointList = subBuilder;
                    break;
                }

                case 82: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetImpressionShareSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetImpressionShareSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList)
                    {
                        subBuilder.MergeFrom(TargetImpressionSharePointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetImpressionSharePointList = subBuilder;
                    break;
                }

                case 90: {
                    global::Google.Ads.GoogleAds.V8.Common.BudgetSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.BudgetSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.BudgetPointList)
                    {
                        subBuilder.MergeFrom(BudgetPointList);
                    }
                    input.ReadMessage(subBuilder);
                    BudgetPointList = subBuilder;
                    break;
                }
                }
            }
    #endif
        }
        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 16: {
                    CampaignId = input.ReadInt64();
                    break;
                }

                case 24: {
                    Type = (global::Google.Ads.GoogleAds.V8.Enums.SimulationTypeEnum.Types.SimulationType)input.ReadEnum();
                    break;
                }

                case 32: {
                    ModificationMethod = (global::Google.Ads.GoogleAds.V8.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod)input.ReadEnum();
                    break;
                }

                case 42: {
                    StartDate = input.ReadString();
                    break;
                }

                case 50: {
                    EndDate = input.ReadString();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V8.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.CpcBidSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.CpcBidPointList)
                    {
                        subBuilder.MergeFrom(CpcBidPointList);
                    }
                    input.ReadMessage(subBuilder);
                    CpcBidPointList = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetCpaSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetCpaPointList)
                    {
                        subBuilder.MergeFrom(TargetCpaPointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetCpaPointList = subBuilder;
                    break;
                }

                case 74: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetRoasSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetRoasPointList)
                    {
                        subBuilder.MergeFrom(TargetRoasPointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetRoasPointList = subBuilder;
                    break;
                }

                case 82: {
                    global::Google.Ads.GoogleAds.V8.Common.TargetImpressionShareSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.TargetImpressionShareSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList)
                    {
                        subBuilder.MergeFrom(TargetImpressionSharePointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetImpressionSharePointList = subBuilder;
                    break;
                }

                case 90: {
                    global::Google.Ads.GoogleAds.V8.Common.BudgetSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V8.Common.BudgetSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.BudgetPointList)
                    {
                        subBuilder.MergeFrom(BudgetPointList);
                    }
                    input.ReadMessage(subBuilder);
                    BudgetPointList = subBuilder;
                    break;
                }
                }
            }
        }
        public void MergeFrom(CampaignSimulation other)
        {
            if (other == null)
            {
                return;
            }
            if (other.ResourceName.Length != 0)
            {
                ResourceName = other.ResourceName;
            }
            if (other.CampaignId != 0L)
            {
                CampaignId = other.CampaignId;
            }
            if (other.Type != global::Google.Ads.GoogleAds.V8.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified)
            {
                Type = other.Type;
            }
            if (other.ModificationMethod != global::Google.Ads.GoogleAds.V8.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified)
            {
                ModificationMethod = other.ModificationMethod;
            }
            if (other.StartDate.Length != 0)
            {
                StartDate = other.StartDate;
            }
            if (other.EndDate.Length != 0)
            {
                EndDate = other.EndDate;
            }
            switch (other.PointListCase)
            {
            case PointListOneofCase.CpcBidPointList:
                if (CpcBidPointList == null)
                {
                    CpcBidPointList = new global::Google.Ads.GoogleAds.V8.Common.CpcBidSimulationPointList();
                }
                CpcBidPointList.MergeFrom(other.CpcBidPointList);
                break;

            case PointListOneofCase.TargetCpaPointList:
                if (TargetCpaPointList == null)
                {
                    TargetCpaPointList = new global::Google.Ads.GoogleAds.V8.Common.TargetCpaSimulationPointList();
                }
                TargetCpaPointList.MergeFrom(other.TargetCpaPointList);
                break;

            case PointListOneofCase.TargetRoasPointList:
                if (TargetRoasPointList == null)
                {
                    TargetRoasPointList = new global::Google.Ads.GoogleAds.V8.Common.TargetRoasSimulationPointList();
                }
                TargetRoasPointList.MergeFrom(other.TargetRoasPointList);
                break;

            case PointListOneofCase.TargetImpressionSharePointList:
                if (TargetImpressionSharePointList == null)
                {
                    TargetImpressionSharePointList = new global::Google.Ads.GoogleAds.V8.Common.TargetImpressionShareSimulationPointList();
                }
                TargetImpressionSharePointList.MergeFrom(other.TargetImpressionSharePointList);
                break;

            case PointListOneofCase.BudgetPointList:
                if (BudgetPointList == null)
                {
                    BudgetPointList = new global::Google.Ads.GoogleAds.V8.Common.BudgetSimulationPointList();
                }
                BudgetPointList.MergeFrom(other.BudgetPointList);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }