write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_CODE_FIELD_DESC);
oprot.writeI32(this.code);
oprot.writeFieldEnd();
if (this.leader != null) {
oprot.writeFieldBegin(_LEADER_FIELD_DESC);
this.leader?.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_CLUSTER_ID_FIELD_DESC);
oprot.writeI64(this.cluster_id);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_LAST_UPDATE_TIME_IN_MS_FIELD_DESC);
oprot.writeI64(this.last_update_time_in_ms);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_META_VERSION_FIELD_DESC);
oprot.writeI32(this.meta_version);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}