예제 #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_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.V5.Common.MatchingFunction();
                    }
                    input.ReadMessage(MatchingFunction);
                    break;
                }

                case 48: {
                    Status = (global::Google.Ads.GoogleAds.V5.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
예제 #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.V5.Common.MatchingFunction();
         }
         MatchingFunction.MergeFrom(other.MatchingFunction);
     }
     if (other.Status != global::Google.Ads.GoogleAds.V5.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #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_adGroup_codec.Read(ref input);
                    if (adGroup_ == null || value != "")
                    {
                        AdGroup = 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.V5.Common.MatchingFunction();
                    }
                    input.ReadMessage(MatchingFunction);
                    break;
                }

                case 48: {
                    Status = (global::Google.Ads.GoogleAds.V5.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }