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: {
                    FeedItemTargetType = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType)input.ReadEnum();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo();
                    if (targetCase_ == TargetOneofCase.Keyword)
                    {
                        subBuilder.MergeFrom(Keyword);
                    }
                    input.ReadMessage(subBuilder);
                    Keyword = subBuilder;
                    break;
                }

                case 72: {
                    target_     = input.ReadEnum();
                    targetCase_ = TargetOneofCase.Device;
                    break;
                }

                case 82: {
                    global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo();
                    if (targetCase_ == TargetOneofCase.AdSchedule)
                    {
                        subBuilder.MergeFrom(AdSchedule);
                    }
                    input.ReadMessage(subBuilder);
                    AdSchedule = subBuilder;
                    break;
                }

                case 88: {
                    Status = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus)input.ReadEnum();
                    break;
                }

                case 98: {
                    FeedItem = input.ReadString();
                    break;
                }

                case 104: {
                    FeedItemTargetId = input.ReadInt64();
                    break;
                }

                case 114: {
                    Campaign = input.ReadString();
                    break;
                }

                case 122: {
                    AdGroup = input.ReadString();
                    break;
                }

                case 130: {
                    GeoTargetConstant = 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: {
                    FeedItemTargetType = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType)input.ReadEnum();
                    break;
                }

                case 58: {
                    global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo();
                    if (targetCase_ == TargetOneofCase.Keyword)
                    {
                        subBuilder.MergeFrom(Keyword);
                    }
                    input.ReadMessage(subBuilder);
                    Keyword = subBuilder;
                    break;
                }

                case 72: {
                    target_     = input.ReadEnum();
                    targetCase_ = TargetOneofCase.Device;
                    break;
                }

                case 82: {
                    global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo();
                    if (targetCase_ == TargetOneofCase.AdSchedule)
                    {
                        subBuilder.MergeFrom(AdSchedule);
                    }
                    input.ReadMessage(subBuilder);
                    AdSchedule = subBuilder;
                    break;
                }

                case 88: {
                    Status = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus)input.ReadEnum();
                    break;
                }

                case 98: {
                    FeedItem = input.ReadString();
                    break;
                }

                case 104: {
                    FeedItemTargetId = input.ReadInt64();
                    break;
                }

                case 114: {
                    Campaign = input.ReadString();
                    break;
                }

                case 122: {
                    AdGroup = input.ReadString();
                    break;
                }

                case 130: {
                    GeoTargetConstant = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }