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