public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (channel_ == null) { Channel = new global::Google.Ads.GoogleAds.V3.Common.CriterionCategoryChannelAvailability(); } input.ReadMessage(Channel); break; } case 18: { locale_.AddEntriesFrom(input, _repeated_locale_codec); break; } } } }
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: { if (channel_ == null) { Channel = new global::Google.Ads.GoogleAds.V3.Common.CriterionCategoryChannelAvailability(); } input.ReadMessage(Channel); break; } case 18: { locale_.AddEntriesFrom(ref input, _repeated_locale_codec); 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: { if (channel_ == null) { Channel = new global::Google.Ads.GoogleAds.V3.Common.CriterionCategoryChannelAvailability(); } input.ReadMessage(Channel); break; } case 18: { locale_.AddEntriesFrom(input, _repeated_locale_codec); break; } } } #endif }
public void MergeFrom(CriterionCategoryAvailability other) { if (other == null) { return; } if (other.channel_ != null) { if (channel_ == null) { Channel = new global::Google.Ads.GoogleAds.V3.Common.CriterionCategoryChannelAvailability(); } Channel.MergeFrom(other.Channel); } locale_.Add(other.locale_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }