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 elem67 in this.parts?.keys ?? <int>[]) {
oprot.writeI32(elem67);
{
oprot.writeListBegin(
new TList(TType.STRUCT, this.parts?[elem67]?.length));
for (var elem68 in this.parts?[elem67] ?? <t_nebula.Value>[]) {
elem68.write(oprot);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (this.edge_types != null) {
oprot.writeFieldBegin(_EDGE_TYPES_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.I32, this.edge_types?.length));
for (var elem69 in this.edge_types ?? <int>[]) {
oprot.writeI32(elem69);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (isSetCommon()) {
if (this.common != null) {
oprot.writeFieldBegin(_COMMON_FIELD_DESC);
this.common?.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}