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();
  }
  if (this.new_encoded_pwd != null) {
    oprot.writeFieldBegin(_NEW_ENCODED_PWD_FIELD_DESC);
    oprot.writeBinary(this.new_encoded_pwd);
    oprot.writeFieldEnd();
  }
  if (this.old_encoded_pwd != null) {
    oprot.writeFieldBegin(_OLD_ENCODED_PWD_FIELD_DESC);
    oprot.writeBinary(this.old_encoded_pwd);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}