public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } hash ^= privilege_.GetHashCode(); hash ^= assignableRole_.GetHashCode(); if (Required != false) { hash ^= Required.GetHashCode(); } if (Unique != false) { hash ^= Unique.GetHashCode(); } if (RelegationRole != 0) { hash ^= RelegationRole.GetHashCode(); } hash ^= attribute_.GetHashCode(); hash ^= kickableRole_.GetHashCode(); hash ^= removableRole_.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = 1; if (HasName) { hash ^= Name.GetHashCode(); } hash ^= assignableRole_.GetHashCode(); if (HasRequired) { hash ^= Required.GetHashCode(); } if (HasUnique) { hash ^= Unique.GetHashCode(); } if (HasRelegationRole) { hash ^= RelegationRole.GetHashCode(); } hash ^= kickableRole_.GetHashCode(); hash ^= removableRole_.GetHashCode(); hash ^= mentionableRole_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }