write method
Writes the objects out to the oprot
protocol.
Implementation
write(TProtocol oprot) {
validate();
oprot.writeStructBegin(_STRUCT_DESC);
if (isSetNVal()) {
oprot.writeFieldBegin(_N_VAL_FIELD_DESC);
oprot.writeI32(this.nVal);
oprot.writeFieldEnd();
}
if (isSetBVal()) {
oprot.writeFieldBegin(_B_VAL_FIELD_DESC);
oprot.writeBool(this.bVal);
oprot.writeFieldEnd();
}
if (isSetIVal()) {
oprot.writeFieldBegin(_I_VAL_FIELD_DESC);
oprot.writeI64(this.iVal);
oprot.writeFieldEnd();
}
if (isSetFVal()) {
oprot.writeFieldBegin(_F_VAL_FIELD_DESC);
oprot.writeDouble(this.fVal);
oprot.writeFieldEnd();
}
if (isSetSVal()) {
if (this.sVal != null) {
oprot.writeFieldBegin(_S_VAL_FIELD_DESC);
oprot.writeBinary(this.sVal);
oprot.writeFieldEnd();
}
}
if (isSetDVal()) {
if (this.dVal != null) {
oprot.writeFieldBegin(_D_VAL_FIELD_DESC);
this.dVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetTVal()) {
if (this.tVal != null) {
oprot.writeFieldBegin(_T_VAL_FIELD_DESC);
this.tVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetDtVal()) {
if (this.dtVal != null) {
oprot.writeFieldBegin(_DT_VAL_FIELD_DESC);
this.dtVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetVVal()) {
if (this.vVal != null) {
oprot.writeFieldBegin(_V_VAL_FIELD_DESC);
this.vVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetEVal()) {
if (this.eVal != null) {
oprot.writeFieldBegin(_E_VAL_FIELD_DESC);
this.eVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetPVal()) {
if (this.pVal != null) {
oprot.writeFieldBegin(_P_VAL_FIELD_DESC);
this.pVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetLVal()) {
if (this.lVal != null) {
oprot.writeFieldBegin(_L_VAL_FIELD_DESC);
this.lVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetMVal()) {
if (this.mVal != null) {
oprot.writeFieldBegin(_M_VAL_FIELD_DESC);
this.mVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetUVal()) {
if (this.uVal != null) {
oprot.writeFieldBegin(_U_VAL_FIELD_DESC);
this.uVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetGVal()) {
if (this.gVal != null) {
oprot.writeFieldBegin(_G_VAL_FIELD_DESC);
this.gVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetGgVal()) {
if (this.ggVal != null) {
oprot.writeFieldBegin(_GG_VAL_FIELD_DESC);
this.ggVal?.write(oprot);
oprot.writeFieldEnd();
}
}
if (isSetDuVal()) {
if (this.duVal != null) {
oprot.writeFieldBegin(_DU_VAL_FIELD_DESC);
this.duVal?.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}