Exemplo 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 (basicConfig_ == null)
                {
                    BasicConfig = new global::BasicConfig();
                }
                input.ReadMessage(BasicConfig);
                break;
            }

            case 18: {
                if (database_ == null)
                {
                    Database = new global::Database();
                }
                input.ReadMessage(Database);
                break;
            }

            case 26: {
                if (serverList_ == null)
                {
                    ServerList = new global::ServerList();
                }
                input.ReadMessage(ServerList);
                break;
            }

            case 34: {
                if (zoneList_ == null)
                {
                    ZoneList = new global::ZoneList();
                }
                input.ReadMessage(ZoneList);
                break;
            }
            }
        }
    }
Exemplo n.º 2
0
 public void MergeFrom(ETCSyncNTF other)
 {
     if (other == null)
     {
         return;
     }
     if (other.basicConfig_ != null)
     {
         if (basicConfig_ == null)
         {
             BasicConfig = new global::BasicConfig();
         }
         BasicConfig.MergeFrom(other.BasicConfig);
     }
     if (other.database_ != null)
     {
         if (database_ == null)
         {
             Database = new global::Database();
         }
         Database.MergeFrom(other.Database);
     }
     if (other.serverList_ != null)
     {
         if (serverList_ == null)
         {
             ServerList = new global::ServerList();
         }
         ServerList.MergeFrom(other.ServerList);
     }
     if (other.zoneList_ != null)
     {
         if (zoneList_ == null)
         {
             ZoneList = new global::ZoneList();
         }
         ZoneList.MergeFrom(other.ZoneList);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }