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.values != null) {
    oprot.writeFieldBegin(_VALUES_FIELD_DESC);
    {
      oprot.writeSetBegin(new TSet(TType.STRUCT, this.values?.length));
      for (var elem13 in this.values ?? <Value>[]) {
        elem13.write(oprot);
      }
      oprot.writeSetEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}