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::PokemonGo.RocketAPI.GeneratedCode.EncounterResponse.Types.Unknown6(); } input.ReadMessage(unknown6_); break; } case 58: { if (unknown7_ == null) { unknown7_ = new global::PokemonGo.RocketAPI.GeneratedCode.EncounterResponse.Types.Unknown7(); } input.ReadMessage(unknown7_); break; } case 802: { payload_.AddEntriesFrom(input, _repeated_payload_codec); break; } case 810: { ErrorMessage = input.ReadString(); break; } } } }
public void MergeFrom(EncounterResponse 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::PokemonGo.RocketAPI.GeneratedCode.EncounterResponse.Types.Unknown6(); } Unknown6.MergeFrom(other.Unknown6); } if (other.unknown7_ != null) { if (unknown7_ == null) { unknown7_ = new global::PokemonGo.RocketAPI.GeneratedCode.EncounterResponse.Types.Unknown7(); } Unknown7.MergeFrom(other.Unknown7); } payload_.Add(other.payload_); if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } }