write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  oprot.writeFieldBegin(_SESSION_ID_FIELD_DESC);
  oprot.writeI64(this.sessionId);
  oprot.writeFieldEnd();
  if (this.stmt != null) {
    oprot.writeFieldBegin(_STMT_FIELD_DESC);
    oprot.writeBinary(this.stmt);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}