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