public bool Equals(HloProfilePrinterData other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (!computationInfos_.Equals(other.computationInfos_)) { return(false); } if (ProfileCountersSize != other.ProfileCountersSize) { return(false); } if (!ExtraMetrics.Equals(other.ExtraMetrics)) { return(false); } if (EntryComputation != other.EntryComputation) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }
public override int GetHashCode() { int hash = 1; hash ^= computationInfos_.GetHashCode(); if (ProfileCountersSize != 0L) { hash ^= ProfileCountersSize.GetHashCode(); } hash ^= ExtraMetrics.GetHashCode(); if (EntryComputation.Length != 0) { hash ^= EntryComputation.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }