public override int GetHashCode() { unchecked { var hashCode = ExecutedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (int)ActionType; return(hashCode); } }
public void MergeFrom(ExecutionMessage other) { if (other == null) { return; } if (other.Id != 0L) { Id = other.Id; } if (other.Side != 0) { Side = other.Side; } if (other.Price != 0D) { Price = other.Price; } if (other.Size != 0D) { Size = other.Size; } if (other.executedAt_ != null) { if (executedAt_ == null) { ExecutedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ExecutedAt.MergeFrom(other.ExecutedAt); } if (other.BuyChildOrderAcceptanceId.Length != 0) { BuyChildOrderAcceptanceId = other.BuyChildOrderAcceptanceId; } if (other.SellChildOrderAcceptanceId.Length != 0) { SellChildOrderAcceptanceId = other.SellChildOrderAcceptanceId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Id != 0L) { hash ^= Id.GetHashCode(); } if (Side != 0) { hash ^= Side.GetHashCode(); } if (Price != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price); } if (Size != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Size); } if (executedAt_ != null) { hash ^= ExecutedAt.GetHashCode(); } if (BuyChildOrderAcceptanceId.Length != 0) { hash ^= BuyChildOrderAcceptanceId.GetHashCode(); } if (SellChildOrderAcceptanceId.Length != 0) { hash ^= SellChildOrderAcceptanceId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }