public void MergeFrom(Response other) { if (other == null) { return; } if (other.Unknown1 != 0) { Unknown1 = other.Unknown1; } if (other.Unknown2 != 0L) { Unknown2 = other.Unknown2; } if (other.ApiUrl.Length != 0) { ApiUrl = other.ApiUrl; } if (other.unknown6_ != null) { if (unknown6_ == null) { unknown6_ = new global::PokeGodar.WebAPI.GeneratedCode.Response.Types.Unknown6(); } Unknown6.MergeFrom(other.Unknown6); } if (other.auth_ != null) { if (auth_ == null) { auth_ = new global::PokeGodar.WebAPI.GeneratedCode.Response.Types.Auth(); } Auth.MergeFrom(other.Auth); } payload_.Add(other.payload_); if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Unknown1 = input.ReadInt32(); break; } case 16: { Unknown2 = input.ReadInt64(); break; } case 26: { ApiUrl = input.ReadString(); break; } case 50: { if (unknown6_ == null) { unknown6_ = new global::PokeGodar.WebAPI.GeneratedCode.Response.Types.Unknown6(); } input.ReadMessage(unknown6_); break; } case 58: { if (auth_ == null) { auth_ = new global::PokeGodar.WebAPI.GeneratedCode.Response.Types.Auth(); } input.ReadMessage(auth_); break; } case 802: { payload_.AddEntriesFrom(input, _repeated_payload_codec); break; } case 810: { ErrorMessage = input.ReadString(); break; } } } }