Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.
a union field index
a UnionInfo
the ConstantInfo, free it with g_base_info_unref when done.
g_base_info_unref