public bool Equals(Profession other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (Id != other.Id) { return(false); } if (!requirements_.Equals(other.requirements_)) { return(false); } if (ShowInUi != other.ShowInUi) { return(false); } if (!ProfesionRanksMap.Equals(other.ProfesionRanksMap)) { return(false); } if (!professionTiers_.Equals(other.professionTiers_)) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } hash ^= requirements_.GetHashCode(); if (ShowInUi != false) { hash ^= ShowInUi.GetHashCode(); } hash ^= ProfesionRanksMap.GetHashCode(); hash ^= professionTiers_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }