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 (isSetNext_cursor()) {
    if (this.next_cursor != null) {
      oprot.writeFieldBegin(_NEXT_CURSOR_FIELD_DESC);
      oprot.writeBinary(this.next_cursor);
      oprot.writeFieldEnd();
    }
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}