write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.update_edge_request != null) {
oprot.writeFieldBegin(_UPDATE_EDGE_REQUEST_FIELD_DESC);
this.update_edge_request?.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_TERM_FIELD_DESC);
oprot.writeI64(this.term);
oprot.writeFieldEnd();
if (isSetEdge_version()) {
oprot.writeFieldBegin(_EDGE_VERSION_FIELD_DESC);
oprot.writeI64(this.edge_version);
oprot.writeFieldEnd();
}
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 elem345 in this.parts ?? []) {
oprot.writeI32(elem345);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}