write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (this.host != null) {
oprot.writeFieldBegin(_HOST_FIELD_DESC);
this.host?.write(oprot);
oprot.writeFieldEnd();
}
if (isSetUser()) {
if (this.user != null) {
oprot.writeFieldBegin(_USER_FIELD_DESC);
oprot.writeBinary(this.user);
oprot.writeFieldEnd();
}
}
if (isSetPwd()) {
if (this.pwd != null) {
oprot.writeFieldBegin(_PWD_FIELD_DESC);
oprot.writeBinary(this.pwd);
oprot.writeFieldEnd();
}
}
if (isSetConn_type()) {
if (this.conn_type != null) {
oprot.writeFieldBegin(_CONN_TYPE_FIELD_DESC);
oprot.writeBinary(this.conn_type);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}