write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  if (this.kill_queries != null) {
    oprot.writeFieldBegin(_KILL_QUERIES_FIELD_DESC);
    {
      oprot.writeMapBegin(
          new TMap(TType.I64, TType.SET, this.kill_queries?.length));
      for (var elem390 in this.kill_queries?.keys ?? <int>[]) {
        oprot.writeI64(elem390);
        {
          oprot.writeSetBegin(
              new TSet(TType.I64, this.kill_queries?[elem390]?.length));
          for (var elem391 in this.kill_queries?[elem390] ?? <int>[]) {
            oprot.writeI64(elem391);
          }
          oprot.writeSetEnd();
        }
      }
      oprot.writeMapEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}