write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
oprot.writeFieldBegin(_ERROR_CODE_FIELD_DESC);
oprot.writeI32(this.error_code);
oprot.writeFieldEnd();
oprot.writeFieldBegin(_LATENCY_IN_US_FIELD_DESC);
oprot.writeI64(this.latency_in_us);
oprot.writeFieldEnd();
if (isSetData()) {
if (this.data != null) {
oprot.writeFieldBegin(_DATA_FIELD_DESC);
this.data?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetSpace_name()) {
if (this.space_name != null) {
oprot.writeFieldBegin(_SPACE_NAME_FIELD_DESC);
oprot.writeBinary(this.space_name);
oprot.writeFieldEnd();
}
}
if (isSetError_msg()) {
if (this.error_msg != null) {
oprot.writeFieldBegin(_ERROR_MSG_FIELD_DESC);
oprot.writeBinary(this.error_msg);
oprot.writeFieldEnd();
}
}
if (isSetPlan_desc()) {
if (this.plan_desc != null) {
oprot.writeFieldBegin(_PLAN_DESC_FIELD_DESC);
this.plan_desc?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetComment()) {
if (this.comment != null) {
oprot.writeFieldBegin(_COMMENT_FIELD_DESC);
oprot.writeBinary(this.comment);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}