public override int GetHashCode() { var prime = 31; var result = 1; result = (prime * result) + ((AppId == null) ? 0 : AppId.GetHashCode()); result = (prime * result) + ((ClusterId == null) ? 0 : ClusterId.GetHashCode()); result = (prime * result) + ((ContentEncoding == null) ? 0 : ContentEncoding.GetHashCode()); result = (prime * result) + (int)(ContentLength ^ (ContentLength >> INT_MASK)); result = (prime * result) + ((ContentType == null) ? 0 : ContentType.GetHashCode()); result = (prime * result) + ((CorrelationId == null) ? 0 : CorrelationId.GetHashCode()); result = (prime * result) + ((DeliveryMode == null) ? 0 : DeliveryMode.GetHashCode()); result = (prime * result) + (int)(DeliveryTag ^ (DeliveryTag >> INT_MASK)); result = (prime * result) + ((Expiration == null) ? 0 : Expiration.GetHashCode()); result = (prime * result) + Headers.GetHashCode(); result = (prime * result) + ((MessageCount == null) ? 0 : MessageCount.GetHashCode()); result = (prime * result) + ((MessageId == null) ? 0 : MessageId.GetHashCode()); result = (prime * result) + ((Priority == null) ? 0 : Priority.GetHashCode()); result = (prime * result) + ((ReceivedExchange == null) ? 0 : ReceivedExchange.GetHashCode()); result = (prime * result) + ((ReceivedRoutingKey == null) ? 0 : ReceivedRoutingKey.GetHashCode()); result = (prime * result) + ((Redelivered == null) ? 0 : Redelivered.GetHashCode()); result = (prime * result) + ((ReplyTo == null) ? 0 : ReplyTo.GetHashCode()); result = (prime * result) + ((Timestamp == null) ? 0 : Timestamp.GetHashCode()); result = (prime * result) + ((Type == null) ? 0 : Type.GetHashCode()); result = (prime * result) + ((UserId == null) ? 0 : UserId.GetHashCode()); return(result); }
public override int GetHashCode() { int hash = 1; if (MessageCount != 0) { hash ^= MessageCount.GetHashCode(); } if (BytesCount != 0L) { hash ^= BytesCount.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }