write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.space_backups != null) {
oprot.writeFieldBegin(_SPACE_BACKUPS_FIELD_DESC);
{
oprot.writeMapBegin(
new TMap(TType.I32, TType.STRUCT, this.space_backups?.length));
for (var elem285 in this.space_backups?.keys ?? <int>[]) {
oprot.writeI32(elem285);
this.space_backups?[elem285]?.write(oprot);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (this.meta_files != null) {
oprot.writeFieldBegin(_META_FILES_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.meta_files?.length));
for (var elem286 in this.meta_files ?? <Int8List>[]) {
oprot.writeBinary(elem286);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (this.backup_name != null) {
oprot.writeFieldBegin(_BACKUP_NAME_FIELD_DESC);
oprot.writeBinary(this.backup_name);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_FULL_FIELD_DESC);
oprot.writeBool(this.full);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_ALL_SPACES_FIELD_DESC);
oprot.writeBool(this.all_spaces);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_CREATE_TIME_FIELD_DESC);
oprot.writeI64(this.create_time);
oprot.writeFieldEnd();
if (this.base_backup_name != null) {
oprot.writeFieldBegin(_BASE_BACKUP_NAME_FIELD_DESC);
oprot.writeBinary(this.base_backup_name);
oprot.writeFieldEnd();
}
if (this.storage_hosts != null) {
oprot.writeFieldBegin(_STORAGE_HOSTS_FIELD_DESC);
{
oprot.writeListBegin(
new TList(TType.STRUCT, this.storage_hosts?.length));
for (var elem287 in this.storage_hosts ?? <t_nebula.HostAddr>[]) {
elem287.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_CLUSTER_ID_FIELD_DESC);
oprot.writeI64(this.cluster_id);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}