write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.space != null) {
oprot.writeFieldBegin(_SPACE_FIELD_DESC);
this.space?.write(oprot);
oprot.writeFieldEnd();
}
if (this.host_backups != null) {
oprot.writeFieldBegin(_HOST_BACKUPS_FIELD_DESC);
{
oprot
.writeListBegin(new TList(TType.STRUCT, this.host_backups?.length));
for (var elem273 in this.host_backups ?? []) {
elem273.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}