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 elem262 in this.parts?.keys ?? <int>[]) {
oprot.writeI32(elem262);
{
oprot.writeListBegin(
new TList(TType.STRING, this.parts?[elem262]?.length));
for (var elem263 in this.parts?[elem262] ?? <Int8List>[]) {
oprot.writeBinary(elem263);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_RETURN_PARTLY_FIELD_DESC);
oprot.writeBool(this.return_partly);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}