public override int GetHashCode() { int hash = 1; if (ReportType.Length != 0) { hash ^= ReportType.GetHashCode(); } hash ^= attribute_.GetHashCode(); if (ReportQos != 0) { hash ^= ReportQos.GetHashCode(); } if (reportingAccount_ != null) { hash ^= ReportingAccount.GetHashCode(); } if (reportingGameAccount_ != null) { hash ^= ReportingGameAccount.GetHashCode(); } if (ReportTimestamp != 0UL) { hash ^= ReportTimestamp.GetHashCode(); } return(hash); }
public void MergeFrom(Report other) { if (other == null) { return; } if (other.ReportType.Length != 0) { ReportType = other.ReportType; } attribute_.Add(other.attribute_); if (other.ReportQos != 0) { ReportQos = other.ReportQos; } if (other.reportingAccount_ != null) { if (reportingAccount_ == null) { reportingAccount_ = new Bgs.Protocol.EntityId(); } ReportingAccount.MergeFrom(other.ReportingAccount); } if (other.reportingGameAccount_ != null) { if (reportingGameAccount_ == null) { reportingGameAccount_ = new Bgs.Protocol.EntityId(); } ReportingGameAccount.MergeFrom(other.ReportingGameAccount); } if (other.ReportTimestamp != 0UL) { ReportTimestamp = other.ReportTimestamp; } }