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.writeListBegin(new TList(TType.I32, this.parts?.length));
for (var elem219 in this.parts ?? []) {
oprot.writeI32(elem219);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.indices != null) {
oprot.writeFieldBegin(_INDICES_FIELD_DESC);
this.indices?.write(oprot);
oprot.writeFieldEnd();
}
if (this.traverse_spec != null) {
oprot.writeFieldBegin(_TRAVERSE_SPEC_FIELD_DESC);
this.traverse_spec?.write(oprot);
oprot.writeFieldEnd();
}
if (isSetCommon()) {
if (this.common != null) {
oprot.writeFieldBegin(_COMMON_FIELD_DESC);
this.common?.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}