Exemplo n.º 1
0
        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_gclid_codec.Read(input);
                    if (gclid_ == null || value != "")
                    {
                        Gclid = value;
                    }
                    break;
                }

                case 26: {
                    if (areaOfInterest_ == null)
                    {
                        areaOfInterest_ = new global::Google.Ads.GoogleAds.V1.Common.ClickLocation();
                    }
                    input.ReadMessage(areaOfInterest_);
                    break;
                }

                case 34: {
                    if (locationOfPresence_ == null)
                    {
                        locationOfPresence_ = new global::Google.Ads.GoogleAds.V1.Common.ClickLocation();
                    }
                    input.ReadMessage(locationOfPresence_);
                    break;
                }

                case 42: {
                    long?value = _single_pageNumber_codec.Read(input);
                    if (pageNumber_ == null || value != 0L)
                    {
                        PageNumber = value;
                    }
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(ClickView other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.gclid_ != null)
     {
         if (gclid_ == null || other.Gclid != "")
         {
             Gclid = other.Gclid;
         }
     }
     if (other.areaOfInterest_ != null)
     {
         if (areaOfInterest_ == null)
         {
             areaOfInterest_ = new global::Google.Ads.GoogleAds.V1.Common.ClickLocation();
         }
         AreaOfInterest.MergeFrom(other.AreaOfInterest);
     }
     if (other.locationOfPresence_ != null)
     {
         if (locationOfPresence_ == null)
         {
             locationOfPresence_ = new global::Google.Ads.GoogleAds.V1.Common.ClickLocation();
         }
         LocationOfPresence.MergeFrom(other.LocationOfPresence);
     }
     if (other.pageNumber_ != null)
     {
         if (pageNumber_ == null || other.PageNumber != 0L)
         {
             PageNumber = other.PageNumber;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }