public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { EncounterId = input.ReadFixed64(); break; } case 16: { pokeball_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum(); break; } case 25: { NormalizedReticleSize = input.ReadDouble(); break; } case 34: { SpawnPointId = input.ReadString(); break; } case 40: { HitPokemon = input.ReadBool(); break; } case 49: { SpinModifier = input.ReadDouble(); break; } case 57: { NormalizedHitPosition = input.ReadDouble(); break; } case 66: { if (arPlusValues_ == null) { arPlusValues_ = new global::POGOProtos.Data.ARPlusEncounterValues(); } input.ReadMessage(arPlusValues_); break; } } } }
public void MergeFrom(CatchPokemonMessage other) { if (other == null) { return; } if (other.EncounterId != 0UL) { EncounterId = other.EncounterId; } if (other.Pokeball != 0) { Pokeball = other.Pokeball; } if (other.NormalizedReticleSize != 0D) { NormalizedReticleSize = other.NormalizedReticleSize; } if (other.SpawnPointId.Length != 0) { SpawnPointId = other.SpawnPointId; } if (other.HitPokemon != false) { HitPokemon = other.HitPokemon; } if (other.SpinModifier != 0D) { SpinModifier = other.SpinModifier; } if (other.NormalizedHitPosition != 0D) { NormalizedHitPosition = other.NormalizedHitPosition; } if (other.arPlusValues_ != null) { if (arPlusValues_ == null) { arPlusValues_ = new global::POGOProtos.Data.ARPlusEncounterValues(); } ArPlusValues.MergeFrom(other.ArPlusValues); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }