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.account != null) {
    oprot.writeFieldBegin(_ACCOUNT_FIELD_DESC);
    oprot.writeBinary(this.account);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_IS_LOCK_FIELD_DESC);
  oprot.writeBool(this.is_lock);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MAX_QUERIES_PER_HOUR_FIELD_DESC);
  oprot.writeI32(this.max_queries_per_hour);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MAX_UPDATES_PER_HOUR_FIELD_DESC);
  oprot.writeI32(this.max_updates_per_hour);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MAX_CONNECTIONS_PER_HOUR_FIELD_DESC);
  oprot.writeI32(this.max_connections_per_hour);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_MAX_USER_CONNECTIONS_FIELD_DESC);
  oprot.writeI32(this.max_user_connections);
  oprot.writeFieldEnd();
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}