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.src != null) {
    oprot.writeFieldBegin(_SRC_FIELD_DESC);
    this.src?.write(oprot);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_EDGE_TYPE_FIELD_DESC);
  oprot.writeI32(this.edge_type);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_RANKING_FIELD_DESC);
  oprot.writeI64(this.ranking);
  oprot.writeFieldEnd();
  if (this.dst != null) {
    oprot.writeFieldBegin(_DST_FIELD_DESC);
    this.dst?.write(oprot);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}