public void MergeFrom(AdGroupCriterionSimulation other)
        {
            if (other == null)
            {
                return;
            }
            if (other.ResourceName.Length != 0)
            {
                ResourceName = other.ResourceName;
            }
            if (other.adGroupId_ != null)
            {
                if (adGroupId_ == null || other.AdGroupId != 0L)
                {
                    AdGroupId = other.AdGroupId;
                }
            }
            if (other.criterionId_ != null)
            {
                if (criterionId_ == null || other.CriterionId != 0L)
                {
                    CriterionId = other.CriterionId;
                }
            }
            if (other.Type != global::Google.Ads.GoogleAds.V4.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified)
            {
                Type = other.Type;
            }
            if (other.ModificationMethod != global::Google.Ads.GoogleAds.V4.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified)
            {
                ModificationMethod = other.ModificationMethod;
            }
            if (other.startDate_ != null)
            {
                if (startDate_ == null || other.StartDate != "")
                {
                    StartDate = other.StartDate;
                }
            }
            if (other.endDate_ != null)
            {
                if (endDate_ == null || other.EndDate != "")
                {
                    EndDate = other.EndDate;
                }
            }
            switch (other.PointListCase)
            {
            case PointListOneofCase.CpcBidPointList:
                if (CpcBidPointList == null)
                {
                    CpcBidPointList = new global::Google.Ads.GoogleAds.V4.Common.CpcBidSimulationPointList();
                }
                CpcBidPointList.MergeFrom(other.CpcBidPointList);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        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: {
                    long?value = _single_adGroupId_codec.Read(input);
                    if (adGroupId_ == null || value != 0L)
                    {
                        AdGroupId = value;
                    }
                    break;
                }

                case 26: {
                    long?value = _single_criterionId_codec.Read(input);
                    if (criterionId_ == null || value != 0L)
                    {
                        CriterionId = value;
                    }
                    break;
                }

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

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

                case 50: {
                    string value = _single_startDate_codec.Read(input);
                    if (startDate_ == null || value != "")
                    {
                        StartDate = value;
                    }
                    break;
                }

                case 58: {
                    string value = _single_endDate_codec.Read(input);
                    if (endDate_ == null || value != "")
                    {
                        EndDate = value;
                    }
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V4.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V4.Common.CpcBidSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.CpcBidPointList)
                    {
                        subBuilder.MergeFrom(CpcBidPointList);
                    }
                    input.ReadMessage(subBuilder);
                    CpcBidPointList = subBuilder;
                    break;
                }
                }
            }
        }
        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 18: {
                    long?value = _single_adGroupId_codec.Read(ref input);
                    if (adGroupId_ == null || value != 0L)
                    {
                        AdGroupId = value;
                    }
                    break;
                }

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

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

                case 42: {
                    string value = _single_startDate_codec.Read(ref input);
                    if (startDate_ == null || value != "")
                    {
                        StartDate = value;
                    }
                    break;
                }

                case 50: {
                    string value = _single_endDate_codec.Read(ref input);
                    if (endDate_ == null || value != "")
                    {
                        EndDate = value;
                    }
                    break;
                }

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

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

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

                case 90: {
                    global::Google.Ads.GoogleAds.V4.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V4.Common.TargetRoasSimulationPointList();
                    if (pointListCase_ == PointListOneofCase.TargetRoasPointList)
                    {
                        subBuilder.MergeFrom(TargetRoasPointList);
                    }
                    input.ReadMessage(subBuilder);
                    TargetRoasPointList = 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 18: {
                    long?value = _single_adGroupId_codec.Read(input);
                    if (adGroupId_ == null || value != 0L)
                    {
                        AdGroupId = value;
                    }
                    break;
                }

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

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

                case 42: {
                    string value = _single_startDate_codec.Read(input);
                    if (startDate_ == null || value != "")
                    {
                        StartDate = value;
                    }
                    break;
                }

                case 50: {
                    string value = _single_endDate_codec.Read(input);
                    if (endDate_ == null || value != "")
                    {
                        EndDate = value;
                    }
                    break;
                }

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

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

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

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