write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.space_ids != null) {
oprot.writeFieldBegin(_SPACE_IDS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.I32, this.space_ids?.length));
for (var elem297 in this.space_ids ?? []) {
oprot.writeI32(elem297);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.name != null) {
oprot.writeFieldBegin(_NAME_FIELD_DESC);
oprot.writeBinary(this.name);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}