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(_X_FIELD_DESC);
  oprot.writeDouble(this.x);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_Y_FIELD_DESC);
  oprot.writeDouble(this.y);
  oprot.writeFieldEnd();
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}