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.old_space_name != null) {
    oprot.writeFieldBegin(_OLD_SPACE_NAME_FIELD_DESC);
    oprot.writeBinary(this.old_space_name);
    oprot.writeFieldEnd();
  }
  if (this.new_space_name != null) {
    oprot.writeFieldBegin(_NEW_SPACE_NAME_FIELD_DESC);
    oprot.writeBinary(this.new_space_name);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldBegin(_IF_NOT_EXISTS_FIELD_DESC);
  oprot.writeBool(this.if_not_exists);
  oprot.writeFieldEnd();
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}