public void MergeFrom(EncounterInteractResponse other) { if (other == null) { return; } if (other.status_ != null) { if (status_ == null) { Status = new global::WUProtos.Data.Encounter.EncounterInteractStatus(); } Status.MergeFrom(other.Status); } if (other.stage_ != null) { if (stage_ == null) { Stage = new global::WUProtos.Data.Encounter.EncounterInteractStageResult(); } Stage.MergeFrom(other.Stage); } if (other.EncounterType != 0) { EncounterType = other.EncounterType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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 (status_ == null) { Status = new global::WUProtos.Data.Encounter.EncounterInteractStatus(); } input.ReadMessage(Status); break; } case 18: { if (stage_ == null) { Stage = new global::WUProtos.Data.Encounter.EncounterInteractStageResult(); } input.ReadMessage(Stage); break; } case 24: { EncounterType = (global::WUProtos.Networking.Responses.EncounterInteractResponse.Types.EncounterType)input.ReadEnum(); break; } } } }