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(_OP_FIELD_DESC);
  oprot.writeI32(this.op);
  oprot.writeFieldEnd();
  if (this.schema != null) {
    oprot.writeFieldBegin(_SCHEMA_FIELD_DESC);
    this.schema?.write(oprot);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}