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.V7.Common.MatchingFunction(); } MatchingFunction.MergeFrom(other.MatchingFunction); } if (other.Status != global::Google.Ads.GoogleAds.V7.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { Status = other.Status; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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.V7.Common.MatchingFunction(); } input.ReadMessage(MatchingFunction); break; } case 48: { Status = (global::Google.Ads.GoogleAds.V7.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum(); break; } case 58: { Feed = input.ReadString(); break; } case 66: { AdGroup = input.ReadString(); break; } } } #endif }
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.V7.Common.MatchingFunction(); } input.ReadMessage(MatchingFunction); break; } case 48: { Status = (global::Google.Ads.GoogleAds.V7.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus)input.ReadEnum(); break; } case 58: { Feed = input.ReadString(); break; } case 66: { AdGroup = input.ReadString(); break; } } } }