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: {
                    string value = _single_campaign_codec.Read(input);
                    if (campaign_ == null || value != "")
                    {
                        Campaign = value;
                    }
                    break;
                }

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

                case 34: {
                    double?value = _single_bidModifier_codec.Read(input);
                    if (bidModifier_ == null || value != 0D)
                    {
                        BidModifier = value;
                    }
                    break;
                }

                case 42: {
                    global::Google.Ads.GoogleAds.V1.Common.InteractionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V1.Common.InteractionTypeInfo();
                    if (criterionCase_ == CriterionOneofCase.InteractionType)
                    {
                        subBuilder.MergeFrom(InteractionType);
                    }
                    input.ReadMessage(subBuilder);
                    InteractionType = subBuilder;
                    break;
                }
                }
            }
        }
        public void MergeFrom(CampaignBidModifier other)
        {
            if (other == null)
            {
                return;
            }
            if (other.ResourceName.Length != 0)
            {
                ResourceName = other.ResourceName;
            }
            if (other.campaign_ != null)
            {
                if (campaign_ == null || other.Campaign != "")
                {
                    Campaign = other.Campaign;
                }
            }
            if (other.criterionId_ != null)
            {
                if (criterionId_ == null || other.CriterionId != 0L)
                {
                    CriterionId = other.CriterionId;
                }
            }
            if (other.bidModifier_ != null)
            {
                if (bidModifier_ == null || other.BidModifier != 0D)
                {
                    BidModifier = other.BidModifier;
                }
            }
            switch (other.CriterionCase)
            {
            case CriterionOneofCase.InteractionType:
                if (InteractionType == null)
                {
                    InteractionType = new global::Google.Ads.GoogleAds.V1.Common.InteractionTypeInfo();
                }
                InteractionType.MergeFrom(other.InteractionType);
                break;
            }

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