value_ = value;
}
public void write(TProtocol oprot) throws TException {
if (getSetField() == 0 || getFieldValue() == null) {
throw new TProtocolException("Cannot write a TUnion with no set value!");
}
oprot.writeStructBegin(getStructDesc());
oprot.writeFieldBegin(getFieldDesc(setField_));
writeValue(oprot, (short)setField_, value_);
oprot.writeFieldEnd();