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(_INDEX_ID_FIELD_DESC);
  oprot.writeI32(this.index_id);
  oprot.writeFieldEnd();
  if (this.filter != null) {
    oprot.writeFieldBegin(_FILTER_FIELD_DESC);
    oprot.writeBinary(this.filter);
    oprot.writeFieldEnd();
  }
  if (this.column_hints != null) {
    oprot.writeFieldBegin(_COLUMN_HINTS_FIELD_DESC);
    {
      oprot
          .writeListBegin(new TList(TType.STRUCT, this.column_hints?.length));
      for (var elem195 in this.column_hints ?? []) {
        elem195.write(oprot);
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}