write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.column_names != null) {
oprot.writeFieldBegin(_COLUMN_NAMES_FIELD_DESC);
{
oprot
.writeListBegin(new TList(TType.STRING, this.column_names?.length));
for (var elem24 in this.column_names ?? []) {
oprot.writeBinary(elem24);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.rows != null) {
oprot.writeFieldBegin(_ROWS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.rows?.length));
for (var elem25 in this.rows ?? []) {
elem25.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}