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_name != null) {
    oprot.writeFieldBegin(_SPACE_NAME_FIELD_DESC);
    oprot.writeBinary(this.space_name);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_OP_FIELD_DESC);
  oprot.writeI32(this.op);
  oprot.writeFieldEnd();
  if (this.paras != null) {
    oprot.writeFieldBegin(_PARAS_FIELD_DESC);
    {
      oprot.writeListBegin(new TList(TType.STRING, this.paras?.length));
      for (var elem35 in this.paras ?? []) {
        oprot.writeBinary(elem35);
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}