public override int GetHashCode() { int hash = 1; if (eventCase_ == EventOneofCase.LoginResult) { hash ^= LoginResult.GetHashCode(); } if (eventCase_ == EventOneofCase.ServerDisconnected) { hash ^= ServerDisconnected.GetHashCode(); } hash ^= (int)eventCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }