public void MergeFrom(FeedItemSet other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.Feed.Length != 0) { Feed = other.Feed; } if (other.FeedItemSetId != 0L) { FeedItemSetId = other.FeedItemSetId; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.Status != global::Google.Ads.GoogleAds.V8.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) { Status = other.Status; } switch (other.DynamicSetFilterCase) { case DynamicSetFilterOneofCase.DynamicLocationSetFilter: if (DynamicLocationSetFilter == null) { DynamicLocationSetFilter = new global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter(); } DynamicLocationSetFilter.MergeFrom(other.DynamicLocationSetFilter); break; case DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter: if (DynamicAffiliateLocationSetFilter == null) { DynamicAffiliateLocationSetFilter = new global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter(); } DynamicAffiliateLocationSetFilter.MergeFrom(other.DynamicAffiliateLocationSetFilter); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Feed = input.ReadString(); break; } case 24: { FeedItemSetId = input.ReadInt64(); break; } case 34: { DisplayName = input.ReadString(); break; } case 42: { global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter(); if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { subBuilder.MergeFrom(DynamicLocationSetFilter); } input.ReadMessage(subBuilder); DynamicLocationSetFilter = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter(); if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter); } input.ReadMessage(subBuilder); DynamicAffiliateLocationSetFilter = subBuilder; break; } case 64: { Status = (global::Google.Ads.GoogleAds.V8.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus)input.ReadEnum(); break; } } } }
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: { Feed = input.ReadString(); break; } case 24: { FeedItemSetId = input.ReadInt64(); break; } case 34: { DisplayName = input.ReadString(); break; } case 42: { global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter(); if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { subBuilder.MergeFrom(DynamicLocationSetFilter); } input.ReadMessage(subBuilder); DynamicLocationSetFilter = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter(); if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter); } input.ReadMessage(subBuilder); DynamicAffiliateLocationSetFilter = subBuilder; break; } case 64: { Status = (global::Google.Ads.GoogleAds.V8.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus)input.ReadEnum(); break; } } } #endif }