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 24: { FeedItemTargetType = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType)input.ReadEnum(); break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); if (targetCase_ == TargetOneofCase.Keyword) { subBuilder.MergeFrom(Keyword); } input.ReadMessage(subBuilder); Keyword = subBuilder; break; } case 72: { target_ = input.ReadEnum(); targetCase_ = TargetOneofCase.Device; break; } case 82: { global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo(); if (targetCase_ == TargetOneofCase.AdSchedule) { subBuilder.MergeFrom(AdSchedule); } input.ReadMessage(subBuilder); AdSchedule = subBuilder; break; } case 88: { Status = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus)input.ReadEnum(); break; } case 98: { FeedItem = input.ReadString(); break; } case 104: { FeedItemTargetId = input.ReadInt64(); break; } case 114: { Campaign = input.ReadString(); break; } case 122: { AdGroup = input.ReadString(); break; } case 130: { GeoTargetConstant = input.ReadString(); 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 24: { FeedItemTargetType = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType)input.ReadEnum(); break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); if (targetCase_ == TargetOneofCase.Keyword) { subBuilder.MergeFrom(Keyword); } input.ReadMessage(subBuilder); Keyword = subBuilder; break; } case 72: { target_ = input.ReadEnum(); targetCase_ = TargetOneofCase.Device; break; } case 82: { global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo(); if (targetCase_ == TargetOneofCase.AdSchedule) { subBuilder.MergeFrom(AdSchedule); } input.ReadMessage(subBuilder); AdSchedule = subBuilder; break; } case 88: { Status = (global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus)input.ReadEnum(); break; } case 98: { FeedItem = input.ReadString(); break; } case 104: { FeedItemTargetId = input.ReadInt64(); break; } case 114: { Campaign = input.ReadString(); break; } case 122: { AdGroup = input.ReadString(); break; } case 130: { GeoTargetConstant = input.ReadString(); break; } } } #endif }
public void MergeFrom(FeedItemTarget other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.HasFeedItem) { FeedItem = other.FeedItem; } if (other.FeedItemTargetType != global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) { FeedItemTargetType = other.FeedItemTargetType; } if (other.HasFeedItemTargetId) { FeedItemTargetId = other.FeedItemTargetId; } if (other.Status != global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) { Status = other.Status; } switch (other.TargetCase) { case TargetOneofCase.Campaign: Campaign = other.Campaign; break; case TargetOneofCase.AdGroup: AdGroup = other.AdGroup; break; case TargetOneofCase.Keyword: if (Keyword == null) { Keyword = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); } Keyword.MergeFrom(other.Keyword); break; case TargetOneofCase.GeoTargetConstant: GeoTargetConstant = other.GeoTargetConstant; break; case TargetOneofCase.Device: Device = other.Device; break; case TargetOneofCase.AdSchedule: if (AdSchedule == null) { AdSchedule = new global::Google.Ads.GoogleAds.V6.Common.AdScheduleInfo(); } AdSchedule.MergeFrom(other.AdSchedule); 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 26: { global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); if (criterionCase_ == CriterionOneofCase.Keyword) { subBuilder.MergeFrom(Keyword); } input.ReadMessage(subBuilder); Keyword = subBuilder; break; } case 32: { Type = (global::Google.Ads.GoogleAds.V6.Enums.CriterionTypeEnum.Types.CriterionType)input.ReadEnum(); break; } case 42: { global::Google.Ads.GoogleAds.V6.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.YouTubeVideoInfo(); if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { subBuilder.MergeFrom(YoutubeVideo); } input.ReadMessage(subBuilder); YoutubeVideo = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V6.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.YouTubeChannelInfo(); if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { subBuilder.MergeFrom(YoutubeChannel); } input.ReadMessage(subBuilder); YoutubeChannel = subBuilder; break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.PlacementInfo(); if (criterionCase_ == CriterionOneofCase.Placement) { subBuilder.MergeFrom(Placement); } input.ReadMessage(subBuilder); Placement = subBuilder; break; } case 66: { global::Google.Ads.GoogleAds.V6.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.MobileAppCategoryInfo(); if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { subBuilder.MergeFrom(MobileAppCategory); } input.ReadMessage(subBuilder); MobileAppCategory = subBuilder; break; } case 74: { global::Google.Ads.GoogleAds.V6.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.MobileApplicationInfo(); if (criterionCase_ == CriterionOneofCase.MobileApplication) { subBuilder.MergeFrom(MobileApplication); } input.ReadMessage(subBuilder); MobileApplication = subBuilder; break; } case 82: { SharedSet = input.ReadString(); break; } case 88: { CriterionId = input.ReadInt64(); 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 26: { global::Google.Ads.GoogleAds.V6.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); if (criterionCase_ == CriterionOneofCase.Keyword) { subBuilder.MergeFrom(Keyword); } input.ReadMessage(subBuilder); Keyword = subBuilder; break; } case 32: { Type = (global::Google.Ads.GoogleAds.V6.Enums.CriterionTypeEnum.Types.CriterionType)input.ReadEnum(); break; } case 42: { global::Google.Ads.GoogleAds.V6.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.YouTubeVideoInfo(); if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { subBuilder.MergeFrom(YoutubeVideo); } input.ReadMessage(subBuilder); YoutubeVideo = subBuilder; break; } case 50: { global::Google.Ads.GoogleAds.V6.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.YouTubeChannelInfo(); if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { subBuilder.MergeFrom(YoutubeChannel); } input.ReadMessage(subBuilder); YoutubeChannel = subBuilder; break; } case 58: { global::Google.Ads.GoogleAds.V6.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.PlacementInfo(); if (criterionCase_ == CriterionOneofCase.Placement) { subBuilder.MergeFrom(Placement); } input.ReadMessage(subBuilder); Placement = subBuilder; break; } case 66: { global::Google.Ads.GoogleAds.V6.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.MobileAppCategoryInfo(); if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { subBuilder.MergeFrom(MobileAppCategory); } input.ReadMessage(subBuilder); MobileAppCategory = subBuilder; break; } case 74: { global::Google.Ads.GoogleAds.V6.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V6.Common.MobileApplicationInfo(); if (criterionCase_ == CriterionOneofCase.MobileApplication) { subBuilder.MergeFrom(MobileApplication); } input.ReadMessage(subBuilder); MobileApplication = subBuilder; break; } case 82: { SharedSet = input.ReadString(); break; } case 88: { CriterionId = input.ReadInt64(); break; } } } #endif }
public void MergeFrom(SharedCriterion other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.HasSharedSet) { SharedSet = other.SharedSet; } if (other.HasCriterionId) { CriterionId = other.CriterionId; } if (other.Type != global::Google.Ads.GoogleAds.V6.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { Type = other.Type; } switch (other.CriterionCase) { case CriterionOneofCase.Keyword: if (Keyword == null) { Keyword = new global::Google.Ads.GoogleAds.V6.Common.KeywordInfo(); } Keyword.MergeFrom(other.Keyword); break; case CriterionOneofCase.YoutubeVideo: if (YoutubeVideo == null) { YoutubeVideo = new global::Google.Ads.GoogleAds.V6.Common.YouTubeVideoInfo(); } YoutubeVideo.MergeFrom(other.YoutubeVideo); break; case CriterionOneofCase.YoutubeChannel: if (YoutubeChannel == null) { YoutubeChannel = new global::Google.Ads.GoogleAds.V6.Common.YouTubeChannelInfo(); } YoutubeChannel.MergeFrom(other.YoutubeChannel); break; case CriterionOneofCase.Placement: if (Placement == null) { Placement = new global::Google.Ads.GoogleAds.V6.Common.PlacementInfo(); } Placement.MergeFrom(other.Placement); break; case CriterionOneofCase.MobileAppCategory: if (MobileAppCategory == null) { MobileAppCategory = new global::Google.Ads.GoogleAds.V6.Common.MobileAppCategoryInfo(); } MobileAppCategory.MergeFrom(other.MobileAppCategory); break; case CriterionOneofCase.MobileApplication: if (MobileApplication == null) { MobileApplication = new global::Google.Ads.GoogleAds.V6.Common.MobileApplicationInfo(); } MobileApplication.MergeFrom(other.MobileApplication); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }