public override int GetHashCode() { int hashcode = 157; unchecked { if ((Range_begin != null) && __isset.range_begin) { hashcode = (hashcode * 397) + Range_begin.GetHashCode(); } if ((Range_end != null) && __isset.range_end) { hashcode = (hashcode * 397) + Range_end.GetHashCode(); } if ((Offset_key != null) && __isset.offset_key) { hashcode = (hashcode * 397) + Offset_key.GetHashCode(); } if (__isset.offset_rev) { hashcode = (hashcode * 397) + Offset_rev.GetHashCode(); } if ((Key_intervals != null) && __isset.key_intervals) { hashcode = (hashcode * 397) + Key_intervals.GetHashCode(); } if ((Values != null) && __isset.values) { hashcode = (hashcode * 397) + Values.GetHashCode(); } if ((Ts_start != null) && __isset.ts_start) { hashcode = (hashcode * 397) + Ts_start.GetHashCode(); } if ((Ts_finish != null) && __isset.ts_finish) { hashcode = (hashcode * 397) + Ts_finish.GetHashCode(); } if ((Flags != null) && __isset.flags) { hashcode = (hashcode * 397) + Flags.GetHashCode(); } if (__isset.options) { hashcode = (hashcode * 397) + Options.GetHashCode(); } if ((Updating != null) && __isset.updating) { hashcode = (hashcode * 397) + Updating.GetHashCode(); } } return(hashcode); }
public override string ToString() { var tmp210 = new StringBuilder("SpecIntervalSerial("); int tmp211 = 0; if ((Range_begin != null) && __isset.range_begin) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Range_begin: "); Range_begin.ToString(tmp210); } if ((Range_end != null) && __isset.range_end) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Range_end: "); Range_end.ToString(tmp210); } if ((Offset_key != null) && __isset.offset_key) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Offset_key: "); Offset_key.ToString(tmp210); } if (__isset.offset_rev) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Offset_rev: "); Offset_rev.ToString(tmp210); } if ((Key_intervals != null) && __isset.key_intervals) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Key_intervals: "); Key_intervals.ToString(tmp210); } if ((Values != null) && __isset.values) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Values: "); Values.ToString(tmp210); } if ((Ts_start != null) && __isset.ts_start) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Ts_start: "); Ts_start.ToString(tmp210); } if ((Ts_finish != null) && __isset.ts_finish) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Ts_finish: "); Ts_finish.ToString(tmp210); } if ((Flags != null) && __isset.flags) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Flags: "); Flags.ToString(tmp210); } if (__isset.options) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Options: "); Options.ToString(tmp210); } if ((Updating != null) && __isset.updating) { if (0 < tmp211++) { tmp210.Append(", "); } tmp210.Append("Updating: "); Updating.ToString(tmp210); } tmp210.Append(')'); return(tmp210.ToString()); }
public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try { var tmp203 = new TStruct("SpecIntervalSerial"); await oprot.WriteStructBeginAsync(tmp203, cancellationToken); var tmp204 = new TField(); if ((Range_begin != null) && __isset.range_begin) { tmp204.Name = "range_begin"; tmp204.Type = TType.List; tmp204.ID = 1; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Range_begin.Count), cancellationToken); foreach (byte[] _iter205 in Range_begin) { await oprot.WriteBinaryAsync(_iter205, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } if ((Range_end != null) && __isset.range_end) { tmp204.Name = "range_end"; tmp204.Type = TType.List; tmp204.ID = 2; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Range_end.Count), cancellationToken); foreach (byte[] _iter206 in Range_end) { await oprot.WriteBinaryAsync(_iter206, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } if ((Offset_key != null) && __isset.offset_key) { tmp204.Name = "offset_key"; tmp204.Type = TType.List; tmp204.ID = 3; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Offset_key.Count), cancellationToken); foreach (byte[] _iter207 in Offset_key) { await oprot.WriteBinaryAsync(_iter207, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } if (__isset.offset_rev) { tmp204.Name = "offset_rev"; tmp204.Type = TType.I64; tmp204.ID = 4; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await oprot.WriteI64Async(Offset_rev, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if ((Key_intervals != null) && __isset.key_intervals) { tmp204.Name = "key_intervals"; tmp204.Type = TType.List; tmp204.ID = 5; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, Key_intervals.Count), cancellationToken); foreach (SpecKeyInterval _iter208 in Key_intervals) { await _iter208.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } if ((Values != null) && __isset.values) { tmp204.Name = "values"; tmp204.Type = TType.List; tmp204.ID = 6; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, Values.Count), cancellationToken); foreach (SpecValueSerial _iter209 in Values) { await _iter209.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } if ((Ts_start != null) && __isset.ts_start) { tmp204.Name = "ts_start"; tmp204.Type = TType.Struct; tmp204.ID = 7; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await Ts_start.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if ((Ts_finish != null) && __isset.ts_finish) { tmp204.Name = "ts_finish"; tmp204.Type = TType.Struct; tmp204.ID = 8; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await Ts_finish.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if ((Flags != null) && __isset.flags) { tmp204.Name = "flags"; tmp204.Type = TType.Struct; tmp204.ID = 9; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await Flags.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if (__isset.options) { tmp204.Name = "options"; tmp204.Type = TType.I32; tmp204.ID = 10; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await oprot.WriteI32Async((int)Options, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if ((Updating != null) && __isset.updating) { tmp204.Name = "updating"; tmp204.Type = TType.Struct; tmp204.ID = 11; await oprot.WriteFieldBeginAsync(tmp204, cancellationToken); await Updating.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } finally { oprot.DecrementRecursionDepth(); } }