Ejemplo n.º 1
0
        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: {
                    string value = _single_feed_codec.Read(input);
                    if (feed_ == null || value != "")
                    {
                        Feed = value;
                    }
                    break;
                }

                case 26: {
                    string value = _single_campaign_codec.Read(input);
                    if (campaign_ == null || value != "")
                    {
                        Campaign = value;
                    }
                    break;
                }

                case 34:
                case 32: {
                    placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec);
                    break;
                }

                case 42: {
                    if (matchingFunction_ == null)
                    {
                        MatchingFunction = new global::Google.Ads.GoogleAds.V3.Common.MatchingFunction();
                    }
                    input.ReadMessage(MatchingFunction);
                    break;
                }

                case 48: {
                    Status = (global::Google.Ads.GoogleAds.V3.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Ejemplo n.º 2
0
 public void MergeFrom(CustomerFeed other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.feed_ != null)
     {
         if (feed_ == null || other.Feed != "")
         {
             Feed = other.Feed;
         }
     }
     placeholderTypes_.Add(other.placeholderTypes_);
     if (other.matchingFunction_ != null)
     {
         if (matchingFunction_ == null)
         {
             MatchingFunction = new global::Google.Ads.GoogleAds.V3.Common.MatchingFunction();
         }
         MatchingFunction.MergeFrom(other.MatchingFunction);
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 3
0
        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: {
                    string value = _single_feed_codec.Read(ref input);
                    if (feed_ == null || value != "")
                    {
                        Feed = value;
                    }
                    break;
                }

                case 26: {
                    string value = _single_campaign_codec.Read(ref input);
                    if (campaign_ == null || value != "")
                    {
                        Campaign = value;
                    }
                    break;
                }

                case 34:
                case 32: {
                    placeholderTypes_.AddEntriesFrom(ref input, _repeated_placeholderTypes_codec);
                    break;
                }

                case 42: {
                    if (matchingFunction_ == null)
                    {
                        MatchingFunction = new global::Google.Ads.GoogleAds.V3.Common.MatchingFunction();
                    }
                    input.ReadMessage(MatchingFunction);
                    break;
                }

                case 48: {
                    Status = (global::Google.Ads.GoogleAds.V3.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 4
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_feed_codec.Read(input);
                    if (feed_ == null || value != "")
                    {
                        Feed = value;
                    }
                    break;
                }

                case 26: {
                    string value = _single_adGroup_codec.Read(input);
                    if (adGroup_ == null || value != "")
                    {
                        AdGroup = value;
                    }
                    break;
                }

                case 34:
                case 32: {
                    placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec);
                    break;
                }

                case 42: {
                    if (matchingFunction_ == null)
                    {
                        MatchingFunction = new global::Google.Ads.GoogleAds.V3.Common.MatchingFunction();
                    }
                    input.ReadMessage(MatchingFunction);
                    break;
                }

                case 48: {
                    Status = (global::Google.Ads.GoogleAds.V3.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 5
0
 public void MergeFrom(CampaignFeed other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.feed_ != null)
     {
         if (feed_ == null || other.Feed != "")
         {
             Feed = other.Feed;
         }
     }
     if (other.campaign_ != null)
     {
         if (campaign_ == null || other.Campaign != "")
         {
             Campaign = other.Campaign;
         }
     }
     placeholderTypes_.Add(other.placeholderTypes_);
     if (other.matchingFunction_ != null)
     {
         if (matchingFunction_ == null)
         {
             MatchingFunction = new global::Google.Ads.GoogleAds.V3.Common.MatchingFunction();
         }
         MatchingFunction.MergeFrom(other.MatchingFunction);
     }
     if (other.Status != global::Google.Ads.GoogleAds.V3.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }