public void MergeFrom(AssetSet other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Type != global::Google.Ads.GoogleAds.V9.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { Type = other.Type; } if (other.Status != global::Google.Ads.GoogleAds.V9.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) { Status = other.Status; } if (other.merchantCenterFeed_ != null) { if (merchantCenterFeed_ == null) { MerchantCenterFeed = new global::Google.Ads.GoogleAds.V9.Resources.AssetSet.Types.MerchantCenterFeed(); } MerchantCenterFeed.MergeFrom(other.MerchantCenterFeed); } _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 18: { Name = input.ReadString(); break; } case 24: { Type = (global::Google.Ads.GoogleAds.V9.Enums.AssetSetTypeEnum.Types.AssetSetType)input.ReadEnum(); break; } case 32: { Status = (global::Google.Ads.GoogleAds.V9.Enums.AssetSetStatusEnum.Types.AssetSetStatus)input.ReadEnum(); break; } case 42: { if (merchantCenterFeed_ == null) { MerchantCenterFeed = new global::Google.Ads.GoogleAds.V9.Resources.AssetSet.Types.MerchantCenterFeed(); } input.ReadMessage(MerchantCenterFeed); 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 18: { Name = input.ReadString(); break; } case 24: { Type = (global::Google.Ads.GoogleAds.V9.Enums.AssetSetTypeEnum.Types.AssetSetType)input.ReadEnum(); break; } case 32: { Status = (global::Google.Ads.GoogleAds.V9.Enums.AssetSetStatusEnum.Types.AssetSetStatus)input.ReadEnum(); break; } case 42: { if (merchantCenterFeed_ == null) { MerchantCenterFeed = new global::Google.Ads.GoogleAds.V9.Resources.AssetSet.Types.MerchantCenterFeed(); } input.ReadMessage(MerchantCenterFeed); break; } } } }