write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (isSetSpaces()) {
if (this.spaces != null) {
oprot.writeFieldBegin(_SPACES_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.spaces?.length));
for (var elem291 in this.spaces ?? []) {
oprot.writeBinary(elem291);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (isSetBase_backup_name()) {
if (this.base_backup_name != null) {
oprot.writeFieldBegin(_BASE_BACKUP_NAME_FIELD_DESC);
oprot.writeBinary(this.base_backup_name);
oprot.writeFieldEnd();
}
}
if (isSetCluster_id()) {
oprot.writeFieldBegin(_CLUSTER_ID_FIELD_DESC);
oprot.writeI64(this.cluster_id);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}