write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.tag_vertices != null) {
oprot.writeFieldBegin(_TAG_VERTICES_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.STRING, TType.I64, this.tag_vertices?.length));
for (var elem75 in this.tag_vertices?.keys ?? <Int8List>[]) {
oprot.writeBinary(elem75);
oprot.writeI64(this.tag_vertices?[elem75]);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (this.edges != null) {
oprot.writeFieldBegin(_EDGES_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.STRING, TType.I64, this.edges?.length));
for (var elem77 in this.edges?.keys ?? <Int8List>[]) {
oprot.writeBinary(elem77);
oprot.writeI64(this.edges?[elem77]);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_SPACE_VERTICES_FIELD_DESC);
oprot.writeI64(this.space_vertices);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_SPACE_EDGES_FIELD_DESC);
oprot.writeI64(this.space_edges);
oprot.writeFieldEnd();
if (this.positive_part_correlativity != null) {
oprot.writeFieldBegin(_POSITIVE_PART_CORRELATIVITY_FIELD_DESC);
{
oprot.writeMapBegin(new TMap(
TType.I32, TType.LIST, this.positive_part_correlativity?.length));
for (var elem79 in this.positive_part_correlativity?.keys ?? <int>[]) {
oprot.writeI32(elem79);
{
oprot.writeListBegin(new TList(TType.STRUCT,
this.positive_part_correlativity?[elem79]?.length));
for (var elem80 in this.positive_part_correlativity?[elem79] ??
<Correlativity>[]) {
elem80.write(oprot);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (this.negative_part_correlativity != null) {
oprot.writeFieldBegin(_NEGATIVE_PART_CORRELATIVITY_FIELD_DESC);
{
oprot.writeMapBegin(new TMap(
TType.I32, TType.LIST, this.negative_part_correlativity?.length));
for (var elem82 in this.negative_part_correlativity?.keys ?? <int>[]) {
oprot.writeI32(elem82);
{
oprot.writeListBegin(new TList(TType.STRUCT,
this.negative_part_correlativity?[elem82]?.length));
for (var elem83 in this.negative_part_correlativity?[elem82] ??
<Correlativity>[]) {
elem83.write(oprot);
}
oprot.writeListEnd();
}
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_STATUS_FIELD_DESC);
oprot.writeI32(this.status);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}