write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_SPACE_ID_FIELD_DESC);
oprot.writeI32(this.space_id);
oprot.writeFieldEnd();
if (this.parts != null) {
oprot.writeFieldBegin(_PARTS_FIELD_DESC);
{
oprot
.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts?.length));
for (var elem288 in this.parts?.keys ?? <int>[]) {
oprot.writeI32(elem288);
{
oprot.writeListBegin(
new TList(TType.STRING, this.parts?[elem288]?.length ?? 0));
for (var elem289 in this.parts?[elem288] ?? <Int8List>[]) {
oprot.writeBinary(elem289);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}