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(_CLUSTER_FIELD_DESC);
  oprot.writeI64(this.cluster);
  oprot.writeFieldEnd();
  if (this.log_str != null) {
    oprot.writeFieldBegin(_LOG_STR_FIELD_DESC);
    oprot.writeBinary(this.log_str);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}