Example #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: {
                    Error = input.ReadString();
                    break;
                }

                case 18: {
                    Hash = input.ReadString();
                    break;
                }

                case 26: {
                    if (settings_ == null)
                    {
                        settings_ = new global::POGOProtos.Settings.GlobalSettings();
                    }
                    input.ReadMessage(settings_);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(DownloadSettingsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Error.Length != 0)
     {
         Error = other.Error;
     }
     if (other.Hash.Length != 0)
     {
         Hash = other.Hash;
     }
     if (other.settings_ != null)
     {
         if (settings_ == null)
         {
             settings_ = new global::POGOProtos.Settings.GlobalSettings();
         }
         Settings.MergeFrom(other.Settings);
     }
 }