public override int GetHashCode() { int hash = 1; if (nameCase_ == NameOneofCase.Dns) { hash ^= Dns.GetHashCode(); } if (nameCase_ == NameOneofCase.Uri) { hash ^= Uri.GetHashCode(); } hash ^= (int)nameCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }