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.original_zone_name != null) {
    oprot.writeFieldBegin(_ORIGINAL_ZONE_NAME_FIELD_DESC);
    oprot.writeBinary(this.original_zone_name);
    oprot.writeFieldEnd();
  }
  if (this.zone_name != null) {
    oprot.writeFieldBegin(_ZONE_NAME_FIELD_DESC);
    oprot.writeBinary(this.zone_name);
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}