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 26: {
                    global::Google.Ads.GoogleAds.V10.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.KeywordInfo();
                    if (criterionCase_ == CriterionOneofCase.Keyword)
                    {
                        subBuilder.MergeFrom(Keyword);
                    }
                    input.ReadMessage(subBuilder);
                    Keyword = subBuilder;
                    break;
                }

                case 32: {
                    Type = (global::Google.Ads.GoogleAds.V10.Enums.CriterionTypeEnum.Types.CriterionType)input.ReadEnum();
                    break;
                }

                case 42: {
                    global::Google.Ads.GoogleAds.V10.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.YouTubeVideoInfo();
                    if (criterionCase_ == CriterionOneofCase.YoutubeVideo)
                    {
                        subBuilder.MergeFrom(YoutubeVideo);
                    }
                    input.ReadMessage(subBuilder);
                    YoutubeVideo = subBuilder;
                    break;
                }

                case 50: {
                    global::Google.Ads.GoogleAds.V10.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.YouTubeChannelInfo();
                    if (criterionCase_ == CriterionOneofCase.YoutubeChannel)
                    {
                        subBuilder.MergeFrom(YoutubeChannel);
                    }
                    input.ReadMessage(subBuilder);
                    YoutubeChannel = subBuilder;
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V10.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.PlacementInfo();
                    if (criterionCase_ == CriterionOneofCase.Placement)
                    {
                        subBuilder.MergeFrom(Placement);
                    }
                    input.ReadMessage(subBuilder);
                    Placement = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V10.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.MobileAppCategoryInfo();
                    if (criterionCase_ == CriterionOneofCase.MobileAppCategory)
                    {
                        subBuilder.MergeFrom(MobileAppCategory);
                    }
                    input.ReadMessage(subBuilder);
                    MobileAppCategory = subBuilder;
                    break;
                }

                case 74: {
                    global::Google.Ads.GoogleAds.V10.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.MobileApplicationInfo();
                    if (criterionCase_ == CriterionOneofCase.MobileApplication)
                    {
                        subBuilder.MergeFrom(MobileApplication);
                    }
                    input.ReadMessage(subBuilder);
                    MobileApplication = subBuilder;
                    break;
                }

                case 82: {
                    SharedSet = input.ReadString();
                    break;
                }

                case 88: {
                    CriterionId = input.ReadInt64();
                    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 26: {
                    global::Google.Ads.GoogleAds.V10.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.KeywordInfo();
                    if (criterionCase_ == CriterionOneofCase.Keyword)
                    {
                        subBuilder.MergeFrom(Keyword);
                    }
                    input.ReadMessage(subBuilder);
                    Keyword = subBuilder;
                    break;
                }

                case 32: {
                    Type = (global::Google.Ads.GoogleAds.V10.Enums.CriterionTypeEnum.Types.CriterionType)input.ReadEnum();
                    break;
                }

                case 42: {
                    global::Google.Ads.GoogleAds.V10.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.YouTubeVideoInfo();
                    if (criterionCase_ == CriterionOneofCase.YoutubeVideo)
                    {
                        subBuilder.MergeFrom(YoutubeVideo);
                    }
                    input.ReadMessage(subBuilder);
                    YoutubeVideo = subBuilder;
                    break;
                }

                case 50: {
                    global::Google.Ads.GoogleAds.V10.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.YouTubeChannelInfo();
                    if (criterionCase_ == CriterionOneofCase.YoutubeChannel)
                    {
                        subBuilder.MergeFrom(YoutubeChannel);
                    }
                    input.ReadMessage(subBuilder);
                    YoutubeChannel = subBuilder;
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V10.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.PlacementInfo();
                    if (criterionCase_ == CriterionOneofCase.Placement)
                    {
                        subBuilder.MergeFrom(Placement);
                    }
                    input.ReadMessage(subBuilder);
                    Placement = subBuilder;
                    break;
                }

                case 66: {
                    global::Google.Ads.GoogleAds.V10.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.MobileAppCategoryInfo();
                    if (criterionCase_ == CriterionOneofCase.MobileAppCategory)
                    {
                        subBuilder.MergeFrom(MobileAppCategory);
                    }
                    input.ReadMessage(subBuilder);
                    MobileAppCategory = subBuilder;
                    break;
                }

                case 74: {
                    global::Google.Ads.GoogleAds.V10.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V10.Common.MobileApplicationInfo();
                    if (criterionCase_ == CriterionOneofCase.MobileApplication)
                    {
                        subBuilder.MergeFrom(MobileApplication);
                    }
                    input.ReadMessage(subBuilder);
                    MobileApplication = subBuilder;
                    break;
                }

                case 82: {
                    SharedSet = input.ReadString();
                    break;
                }

                case 88: {
                    CriterionId = input.ReadInt64();
                    break;
                }
                }
            }
    #endif
        }