write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_PART_ID_FIELD_DESC);
oprot.writeI32(this.part_id);
oprot.writeFieldEnd();
if (this.hosts != null) {
oprot.writeFieldBegin(_HOSTS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.hosts?.length));
for (var elem303 in this.hosts ?? []) {
elem303.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}