write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.zone_name != null) {
oprot.writeFieldBegin(_ZONE_NAME_FIELD_DESC);
oprot.writeBinary(this.zone_name);
oprot.writeFieldEnd();
}
if (this.nodes != null) {
oprot.writeFieldBegin(_NODES_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.nodes?.length));
for (var elem253 in this.nodes ?? []) {
elem253.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}