Exemplo n.º 1
0
 public void MergeFrom(ClientWeather other)
 {
     if (other == null)
     {
         return;
     }
     if (other.S2CellId != 0L)
     {
         S2CellId = other.S2CellId;
     }
     if (other.displayWeather_ != null)
     {
         if (displayWeather_ == null)
         {
             DisplayWeather = new global::WUProtos.Data.DisplayWeather();
         }
         DisplayWeather.MergeFrom(other.DisplayWeather);
     }
     if (other.gameplayWeather_ != null)
     {
         if (gameplayWeather_ == null)
         {
             GameplayWeather = new global::WUProtos.Data.GameplayWeather();
         }
         GameplayWeather.MergeFrom(other.GameplayWeather);
     }
     alerts_.Add(other.alerts_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
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 8: {
                    S2CellId = input.ReadInt64();
                    break;
                }

                case 18: {
                    if (displayWeather_ == null)
                    {
                        DisplayWeather = new global::WUProtos.Data.DisplayWeather();
                    }
                    input.ReadMessage(DisplayWeather);
                    break;
                }

                case 26: {
                    if (gameplayWeather_ == null)
                    {
                        GameplayWeather = new global::WUProtos.Data.GameplayWeather();
                    }
                    input.ReadMessage(GameplayWeather);
                    break;
                }

                case 34: {
                    alerts_.AddEntriesFrom(input, _repeated_alerts_codec);
                    break;
                }
                }
            }
        }