public override int GetHashCode() { int hash = 1; if (LedgerId.Length != 0) { hash ^= LedgerId.GetHashCode(); } if (filter_ != null) { hash ^= Filter.GetHashCode(); } if (Verbose != false) { hash ^= Verbose.GetHashCode(); } if (traceContext_ != null) { hash ^= TraceContext.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public int CompareTo(MessageId?other) { if (other is null) { return(1); } var result = LedgerId.CompareTo(other.LedgerId); if (result != 0) { return(result); } result = EntryId.CompareTo(other.EntryId); if (result != 0) { return(result); } result = Partition.CompareTo(other.Partition); if (result != 0) { return(result); } return(BatchIndex.CompareTo(other.BatchIndex)); }
private int Compare(BatchMessageId m) { var ledgercompare = LedgerId.CompareTo(m.LedgerId); if (ledgercompare != 0) { return(ledgercompare); } var entryCompare = EntryId.CompareTo(m.EntryId); if (entryCompare != 0) { return(entryCompare); } var batchCompare = BatchIndex.CompareTo(m.BatchIndex); if (batchCompare != 0) { return(batchCompare); } var partitionCompare = PartitionIndex.CompareTo(m.PartitionIndex); if (partitionCompare != 0) { return(partitionCompare); } return(0); }
public override int GetHashCode() { int hash = 1; if (LedgerId.Length != 0) { hash ^= LedgerId.GetHashCode(); } if (traceContext_ != null) { hash ^= TraceContext.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (LedgerId.Length != 0) { hash ^= LedgerId.GetHashCode(); } if (currentTime_ != null) { hash ^= CurrentTime.GetHashCode(); } if (newTime_ != null) { hash ^= NewTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (LedgerId.Length != 0) { hash ^= LedgerId.GetHashCode(); } if (ApplicationId.Length != 0) { hash ^= ApplicationId.GetHashCode(); } hash ^= parties_.GetHashCode(); if (offset_ != null) { hash ^= Offset.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }