Esempio n. 1
0
        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.V2.Common.CriterionCategoryChannelAvailability();
                    }
                    input.ReadMessage(Channel);
                    break;
                }

                case 18: {
                    locale_.AddEntriesFrom(input, _repeated_locale_codec);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(CriterionCategoryAvailability other)
 {
     if (other == null)
     {
         return;
     }
     if (other.channel_ != null)
     {
         if (channel_ == null)
         {
             Channel = new global::Google.Ads.GoogleAds.V2.Common.CriterionCategoryChannelAvailability();
         }
         Channel.MergeFrom(other.Channel);
     }
     locale_.Add(other.locale_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }