public CompactResult DeepCopy() { var tmp420 = new CompactResult(); if (__isset.cid) { tmp420.Cid = this.Cid; } tmp420.__isset.cid = this.__isset.cid; if (__isset.err) { tmp420.Err = this.Err; } tmp420.__isset.err = this.__isset.err; return(tmp420); }
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try { TField field; await iprot.ReadStructBeginAsync(cancellationToken); while (true) { field = await iprot.ReadFieldBeginAsync(cancellationToken); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { TList _list426 = await iprot.ReadListBeginAsync(cancellationToken); Schemas = new List <Schema>(_list426.Count); for (int _i427 = 0; _i427 < _list426.Count; ++_i427) { Schema _elem428; _elem428 = new Schema(); await _elem428.ReadAsync(iprot, cancellationToken); Schemas.Add(_elem428); } await iprot.ReadListEndAsync(cancellationToken); } } else { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; case 2: if (field.Type == TType.Struct) { Cells = new Cells(); await Cells.ReadAsync(iprot, cancellationToken); } else { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; case 3: if (field.Type == TType.List) { { TList _list429 = await iprot.ReadListBeginAsync(cancellationToken); Compact = new List <CompactResult>(_list429.Count); for (int _i430 = 0; _i430 < _list429.Count; ++_i430) { CompactResult _elem431; _elem431 = new CompactResult(); await _elem431.ReadAsync(iprot, cancellationToken); Compact.Add(_elem431); } await iprot.ReadListEndAsync(cancellationToken); } } else { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; } await iprot.ReadFieldEndAsync(cancellationToken); } await iprot.ReadStructEndAsync(cancellationToken); } finally { iprot.DecrementRecursionDepth(); } }