Exemplo n.º 1
0
 public void MergeFrom(AdGroupFeed other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.HasFeed)
     {
         Feed = other.Feed;
     }
     if (other.HasAdGroup)
     {
         AdGroup = other.AdGroup;
     }
     placeholderTypes_.Add(other.placeholderTypes_);
     if (other.matchingFunction_ != null)
     {
         if (matchingFunction_ == null)
         {
             MatchingFunction = new global::Google.Ads.GoogleAds.V8.Common.MatchingFunction();
         }
         MatchingFunction.MergeFrom(other.MatchingFunction);
     }
     if (other.Status != global::Google.Ads.GoogleAds.V8.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
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 34:
                case 32: {
                    placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec);
                    break;
                }

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

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

                case 58: {
                    Feed = input.ReadString();
                    break;
                }

                case 66: {
                    AdGroup = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }
Exemplo 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 34:
                case 32: {
                    placeholderTypes_.AddEntriesFrom(ref input, _repeated_placeholderTypes_codec);
                    break;
                }

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

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

                case 58: {
                    Feed = input.ReadString();
                    break;
                }

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