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);
  if (this.space != null) {
    oprot.writeFieldBegin(_SPACE_FIELD_DESC);
    oprot.writeBinary(this.space);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_MODULE_FIELD_DESC);
  oprot.writeI32(this.module);
  oprot.writeFieldEnd();
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}