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.column_names != null) {
oprot.writeFieldBegin(_COLUMN_NAMES_FIELD_DESC);
{
oprot
.writeListBegin(new TList(TType.STRING, this.column_names?.length));
for (var elem52 in this.column_names ?? []) {
oprot.writeBinary(elem52);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.parts != null) {
oprot.writeFieldBegin(_PARTS_FIELD_DESC);
{
oprot
.writeMapBegin(new TMap(TType.I32, TType.LIST, this.parts?.length));
for (var elem54 in this.parts?.keys ?? <int>[]) {
oprot.writeI32(elem54);
{
oprot.writeListBegin(
new TList(TType.STRUCT, this.parts?[elem54]?.length));
for (var elem55 in this.parts?[elem54] ?? <t_nebula.Value>[]) {
elem55.write(oprot);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
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();
}